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

1 次查看(过去 30 天)
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.

回答(1 个)

Walter Roberson
Walter Roberson 2013-9-11
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.

类别

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