error using rgb2gray
1 view (last 30 days)
Show older comments
IP student ;(
on 5 Mar 2019
Commented: IP student ;(
on 5 Mar 2019
image is in png format.
my code:
C= imread(rgb2gray(I));
error:
Error using rgb2gray>parse_inputs (line 80)
MAP must be a m x 3 array.
Error in rgb2gray (line 52)
isRGB = parse_inputs(X);
Error in DroseyeSvm (line 6)
C=imread(rgb2gray(B));
0 Comments
Accepted Answer
Walter Roberson
on 5 Mar 2019
C = rgb2gray( imread(FileNameGoesHere));
Or if you already have an image array in I then just
C = rgb2gray(I);
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!