Hi Professionals,
I am trying to perform tranformations on a small dataset of 40 images, is there a method to pass all of the images into the function so that it transform all the images
simultaneously?
I am interested in the affine2d random method and the imwarp!!
I lack the knowledge of how to code this!
ERROR: everytime I try my to pass in my data set the system prompts with an error!!
Error using imwarp>parseInputs (line 342)
The value of 'InputImage' is invalid. Expected input number 1, A, to be one of these types:
logical, uint8, uint16, uint32, int8, int16, int32, single, double
Instead its type was table.
Error in imwarp (line 190)
parsedInputs = parseInputs(varargin{:});
Error in test15 (line 85)
augimdsTrainwarp = imwarp(SgTruth,tform1)
>>
Can a professional assist me with gaining the knowledge on how to go about coding this example?
I have tried the singe image and it worked! what i am trying to do is get the function to accpet all 40 images and present them in their new transformed state!!
SgTruth is my data set of 40 images!!!
pixelRange = [-30 30];
[imdsTrain,imdsValidation] = digitTrain4DArrayData;
imageAugmenter = imageDataAugmenter('RandRotation',[-180 180],...
'RandXReflection',true,...
'RandYReflection',true,...
'RandXShear',pixelRange,...
'RandYShear',pixelRange,...
'RandXTranslation',pixelRange, ...
'RandYTranslation',pixelRange)
augimdsTrain = augmentedImageSource(inputSize(1:2),imdsTrain,imdsValidation,...
'DataAugmentation',imageAugmenter)
augimdsTrain.MiniBatchSize = 16
augimdsTrain.reset()