Filter löschen
Filter löschen

convertion of rgb 2 gray from the gray image, how to retrieve the original image

1 Ansicht (letzte 30 Tage)
Hi all, I want to convert to a RGB image into grayscale image.and i want to get back the original image. How should I get back the original image from the grayscale image. For example, A=imread('bird.png'); B=rgb2gray(A);
Now i want to get back the the image A from B.

Antworten (1)

Walter Roberson
Walter Roberson am 11 Sep. 2013
You cannot do that if all you have is the grayscale image. If you are using 8 bits per channel for your images, then there are 65536 different color combinations that match any one grayscale level, so you do not know which of the 65536 possibilities to map any given grayscale level back into.

Kategorien

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

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by