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

1 回表示 (過去 30 日間)
Takeda Ryutaro
Takeda Ryutaro 2021 年 1 月 25 日
編集済み: Takeda Ryutaro 2021 年 2 月 3 日
augmentedImageDatastoreでOutputsizeを指定し、DataAugmentationも行っていますが、
ImageAugmenterで指定したRandXTranslationやRandYTranslationの数値は、Outputsizeに対応するものですか?
それともaugmentationされる前の画像サイズでの平行移動でしょうか?

採用された回答

Kenta
Kenta 2021 年 1 月 31 日
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 件のコメント
Takeda Ryutaro
Takeda Ryutaro 2021 年 2 月 3 日
編集済み: Takeda Ryutaro 2021 年 2 月 3 日
検証いただき、ありがとうございました。スッキリしました。
今後は自分で解決できるよう精進します。

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!