Hi, I would like to convert grey scale images to [227 227 3]. I'm able to adjust the size using "auimds = augmentedImageSource(imageSize, trainingImages); " but I'm having trouble with converting to RGB (for use with Alex Net).
I've tried:
%grayimg=repmat(grayimg, 1, 1, 3);
%auimds = cat(3, auimds, auimds, auimds);
%auimds(:,:,[1 1 1]);
%RGB = auimds(3, auimds, auimds, auimds);
and the grey2rgb() method
Any suggestions?
2 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/636760-grey-scale-rgb-images-from-augmentedimagesource#comment_1137003
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/636760-grey-scale-rgb-images-from-augmentedimagesource#comment_1137003
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/636760-grey-scale-rgb-images-from-augmentedimagesource#comment_1137303
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/636760-grey-scale-rgb-images-from-augmentedimagesource#comment_1137303
Sign in to comment.