Why is greyscale yellow and blue?
14 views (last 30 days)
Show older comments
Marcin Zyskowski
on 23 Oct 2016
Answered: Image Analyst
on 23 Oct 2016
I got rid of the third dimension in the array, but now when I display grayscale picture using command:
image(Obrazek)
I get this:
Why is supposed grayscale picture yellow-blue, instead of gray?
0 Comments
Accepted Answer
Image Analyst
on 23 Oct 2016
It looks like a colormap is being applied without your knowledge. I'd use imshow() instead of image. Otherwise you can set the colormap to gray(256);
colormap(handleToAxes, gray(256));
0 Comments
More Answers (0)
See Also
Categories
Find more on Image Processing Toolbox 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!