How to get all images to be augmented with both properties of rotating and shifting?

1 回表示 (過去 30 日間)
hana razak
hana razak 2018 年 9 月 6 日
編集済み: hana razak 2018 年 9 月 6 日
Hi everyone,
I've tried image augmentation on my data and I've found two problems;
1. It worked quite well but only for the first 8 images instead of all images in the same folder (80 images).
2. The augmented images only rotated on the sides. I wish to have the variety of augmented images with some images been shifted horizontally, shifted vertically, and some images have both properties of rotating and shifting.
Here is the code I've been running,
imds = imageDatastore ({'Z:\inputData\*.jpg'});
imageAugmenter = imageDataAugmenter( ...
'RandRotation',[-80,80], ...
'RandXTranslation',[-50 50], ...
'RandYTranslation',[-30 30])
imageSize = [150 150 3];
augimds = augmentedImageDatastore(imageSize,imds, ...
'DataAugmentation',imageAugmenter);
minibatch = preview(augimds);
montage(minibatch.input)
Hope someone can help me with this matters.
Thank you so much
Regards,
Hana Razak

回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by