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 CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!