How to get back Color image from gray scale image?

As I take Color image as input for processing in MATLAB, I have to convert my color image into gray image. Now, after applying various transformation how can I get Color Image from Gray image(The Image which I got after processing)?

Antworten (1)

Sean de Wolski
Sean de Wolski am 31 Okt. 2014

0 Stimmen

You could use rgb2ind with an applicable map. This will color based on the map though, not based on the original colors.
Your best bet to retain original colors is to index or do arithmetic with your original rgb image with whatever new information you've gotten from the grayscale analyses. It's impossible to get the original colors back otherwise, 3 unknowns, 1 equation.

Kategorien

Mehr zu Modify Image Colors finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 31 Okt. 2014

Beantwortet:

am 31 Okt. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by