How to convert gray scale image into colored RGB image?

1 次查看(过去 30 天)
To process the image I changed image to gray scale.Now I want the image back after the processing in color,I don't get the image in color it's still gray .What should I do?I'm a beginner in MATLAB.Please help.....

回答(1 个)

Image Analyst
Image Analyst 2014-12-14
Don't you still have the original rgb image? If not, why not? Once you throw away color information you can't get it back unless you've somehow saved it. Like, you could do
grayImage = rgbImage;
but why? If you do that you still have the RGB image so what's the point of stuffing it into your grayscale variable?
If you want to assign different colors than the original, you can use ind2rgb(), but it doesn't sound like you wanted that.
  2 个评论
Ridhi Arora
Ridhi Arora 2018-11-14
编辑:Ridhi Arora 2018-11-14
I need to do superpixel segmentation on mammograms but I am unable to do it at the moment. Do you have any suggestions on how to do it??

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by