colormap of a rgb image
4 次查看(过去 30 天)
显示 更早的评论
can anyone help with getting colormap of a image?
0 个评论
采纳的回答
Walter Roberson
2012-6-23
The colormap of an RGB image is, by convention, [] (the empty array)
If you need to convert an RGB image to a pseudocolor image, use the two-output version of rgb2ind()
2 个评论
Image Analyst
2012-6-24
You can't do that. With rgb2gray, there are many colors that would give the same gray level. you'd need to do this with rgb2ind which gives you the colormap. But then if you displayed that with a gray colormap, it would look bizarre so you'd have to keep both the rgb2gray image hanging around as well as the rgb2ind image hanging around. I say why even bother with all that when you still have the original rgb image that you used to convert into gray or indexed?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Red 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!