augmentedI​mageDatast​oreで画像のサイズ​が変更後の画像の表示​について

1 回表示 (過去 30 日間)
NicknameAlpha
NicknameAlpha 2018 年 12 月 22 日
回答済み: Tohru Kikawada 2018 年 12 月 24 日
AlexNet を使用した転移学習のWebページ(https://jp.mathworks.com/help/deeplearning/examples/transfer-learning-using-alexnet.html)で,
227 x 227 x 3 の入力イメージへ拡張イメージ データストアを使用して学習イメージのサイズを自動的にこのようなので変更しているようですが,
pixelRange = [-30 30];
imageAugmenter = imageDataAugmenter( ...
'RandXReflection',true, ...
'RandXTranslation',pixelRange, ...
'RandYTranslation',pixelRange);
augimdsTrain = augmentedImageDatastore(inputSize(1:2),imdsTrain, ...
'DataAugmentation',imageAugmenter);
このサイズがaugmentedImageDatastoreが使われて自動的に変更された後の画像をMATLAB上で画面に表示させるような方法については何かありそうですか?

採用された回答

Tohru Kikawada
Tohru Kikawada 2018 年 12 月 24 日
augmentedImageDatastore のドキュメント下部に下記の記述で可視化できると記載があります。
ご参考なれば幸いです。
minibatch = read(auimds);
imshow(imtile(minibatch.input))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!