フィルターのクリア

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

1 回表示 (過去 30 日間)
learningmat
learningmat 2013 年 9 月 11 日
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 件のコメント
Image Analyst
Image Analyst 2013 年 9 月 11 日
Your duplicate question is in http://www.mathworks.com/matlabcentral/answers/86854-how-to-convert-a-gray-scale-image-to-color-image-using-matlab - don't forget to look at the answers there. By the way, why did you want answers to be split across two different, yet identical, postings?

サインインしてコメントする。

回答 (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 Center および File ExchangeConvert Image Type についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by