Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How can i know that dataaugmentation works correctly ? this function will do that ?

조회 수: 1 (최근 30일)
Afaf Saad
Afaf Saad 2018년 9월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
imageAugmenter = imageDataAugmenter( ... 'RandRotation',[90 270], ... 'RandXReflection',true)
Iam trying to rotate my images to 90, 180, 270.
  댓글 수: 2
Afaf Saad
Afaf Saad 2018년 9월 22일
I don’t understand I want to rotate every image 90 degree and 180 degree and 270 degree

답변 (1개)

Image Analyst
Image Analyst 2018년 9월 22일
Help says:
Range of rotation, in degrees, applied to the input image, specified as one of the following.
2-element numeric vector. The second element must be larger than or equal to the first element. The rotation angle is picked randomly from a continuous uniform distribution within the specified interval.
function handle. The function must accept no input arguments and return the rotation angle as a numeric scalar. Use a function handle to pick rotation angles from a disjoint interval or using a nonuniform probability distribution. For more information about function handles, see Create Function Handle (MATLAB).
So you need to supply a function handle instead of a 2-element range. Your function should randomly give one of the 3 values you want.
  댓글 수: 1
Walter Roberson
Walter Roberson 2018년 9월 22일
And if each image is to be rotated by each of those three values exactly once, then you should not use imageDataAugmenter, which is for making random changes.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by