rgb2gray not in bw
Show older comments
When I use rgb2gray on a jpg file it becomes red with some yellow, blue and green.
what am I doing wrong?
Answers (1)
Image Analyst
on 20 May 2013
Do whos on it and tell us what it says:
whos yourGrayImage
If it says it's a 2D uint8 image, then perhaps you have some kind of colormap applied. Issue the "colorbar" command to check.
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!