How can I recover to original image after i changed to gray level ?
1 view (last 30 days)
Show older comments
Alhanouf Alshahrani
on 18 Sep 2015
Commented: Alhanouf Alshahrani
on 19 Sep 2015
Img=imread('image1.jpg');
Gray=rgb2gray(img);
How convert Gray to original color now????
0 Comments
Accepted Answer
More Answers (1)
Walter Roberson
on 18 Sep 2015
If you are using uint8 RGB, then there are 256^3 different RGB combinations and they must map to 256 values. On average, each gray level must correspond to 256^2 = 65536 different RGB combinations. So given only the gray level, how can you possibly know which of the 65536 it "really" is?
0 Comments
See Also
Categories
Find more on Red in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!