Image resizing using augmentedImageDatastore
Show older comments
i tried to resize the image stored in the following path. C:\Users\manjurama\Desktop\study\PG\PROJECT\finger vein database\database_10
imagefolder = 'C:\Users\manjurama\Desktop\study\PG\PROJECT\finger vein database\database_10';
imds = imageDatastore(imagefolder,'IncludeSubfolders',true,'LabelSource','foldernames');
veinimage = augmentedImageDatastore([227 227],imds)
numTrainFiles = 0.75;
[TrainImages, TestImages] = splitEachLabel(veinimage, numTrainFiles,'randomize'); % this is the line 14 error shown here.
But i got this error
Check for missing argument or incorrect argument data type in call to function 'splitEachLabel'.
Error in Classification (line 14)
[TrainImages, TestImages] = splitEachLabel(veinimage, numTrainFiles,'randomize');
Could you please let me know about the problem in my code. Thanks.
Accepted Answer
More Answers (1)
Mohammad Sami
on 9 Sep 2020
0 votes
The last argument to split each label is not spelled correctly. It's
splitEachLabel(___,'randomized').
Categories
Find more on Read, Write, and Modify Image in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!