Filter löschen
Filter löschen

How to convert gray scale image into colored RGB image?

1 Ansicht (letzte 30 Tage)
New Innovations
New Innovations am 14 Dez. 2014
Kommentiert: Image Analyst am 15 Nov. 2018
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.....

Antworten (1)

Image Analyst
Image Analyst am 14 Dez. 2014
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 Kommentare
Ridhi Arora
Ridhi Arora am 14 Nov. 2018
Bearbeitet: Ridhi Arora am 14 Nov. 2018
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??
Image Analyst
Image Analyst am 15 Nov. 2018
Uh, did you try the superpixel() function?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by