转换为灰度图像rgb
843(30天)
显示旧的评论
接受的答案
图像分析
2013年3月14日
如果你有一个彩色地图——一个映射的强度应该去什么颜色,像imread()或rgb2ind()可以给你,然后您可以使用ind2rgb。
rgbImage = ind2rgb (grayImage colormap);
否则使用
rgbImage =猫(3 grayImage grayImage grayImage);
grayImage需要在0 - 255范围uint8如果你想显示它。