augmentedImageDatastoreのDataAugmentationについて
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Takeda Ryutaro
il 25 Gen 2021
Modificato: Takeda Ryutaro
il 3 Feb 2021
augmentedImageDatastoreでOutputsizeを指定し、DataAugmentationも行っていますが、
ImageAugmenterで指定したRandXTranslationやRandYTranslationの数値は、Outputsizeに対応するものですか?
それともaugmentationされる前の画像サイズでの平行移動でしょうか?
0 Commenti
Risposta accettata
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
Più risposte (0)
Vedere anche
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!