augmentedI​mageDatast​oreのDataAu​gmentation​について

1 visualizzazione (ultimi 30 giorni)
augmentedImageDatastoreでOutputsizeを指定し、DataAugmentationも行っていますが、
ImageAugmenterで指定したRandXTranslationやRandYTranslationの数値は、Outputsizeに対応するものですか?
それともaugmentationされる前の画像サイズでの平行移動でしょうか?

Risposta accettata

Kenta
Kenta il 31 Gen 2021
clear;clc;close all
[XTrain,YTrain] = digitTrain4DArrayData;
imageAugmenter = imageDataAugmenter( ...
'RandRotation',[-20,20], ...
'RandXTranslation',[15 15], ...
'RandYTranslation',[-3 3]);
imageSize = [280 280 1];
augimds = augmentedImageDatastore(imageSize,XTrain,YTrain,'DataAugmentation',imageAugmenter);
I=read(augimds);
figure;imagesc(I{1,1}{1})
こんにちは、ドキュメントを見ても書いていなかったように思います。ただおそらく、inputのスケールでの移動と思います。たとえば上のようなコードを打つと、数字が画像からほとんどフレームアウトしてしまうことが確認できると思います。
ここでは、15ピクセル右に移動するだけですが、outputsizeは280なので、outputのサイズでの移動であれば、フレームアウトはしないはずです。
  1 Commento
Takeda Ryutaro
Takeda Ryutaro il 3 Feb 2021
Modificato: Takeda Ryutaro il 3 Feb 2021
検証いただき、ありがとうございました。スッキリしました。
今後は自分で解決できるよう精進します。

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!