MATLAB Answers

Translated by

이 페이지의 내용은 영어에서 자동 번역되었습니다. 자동 번역 기능을 해제하려면 "<a class="turn_off_mt" href="#">여기</a>"를 클릭하십시오.


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

Asked by hana razak on 6 Sep 2018
Latest activity Edited by hana razak on 6 Sep 2018
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, ...
minibatch = preview(augimds);
Hope someone can help me with this matters.
Thank you so much
Hana Razak


Sign in to comment.

0 Answers

Translated by