Can I restore the original matrix back from its gray scale image?

1 view (last 30 days)
Please I have converted a matrix with floating numbers into gray scale(normalized the intensity values to 0-1) but I want to convert this gray scale mat file back to the original matrix. Can someone help please? I am quite new in Matlab please.
  2 Comments
Geoff Hayes
Geoff Hayes on 20 Dec 2014
Folake - what is the code that you used to convert the matrix? Did you use a particular function or something that you wrote?
Image Analyst
Image Analyst on 20 Dec 2014
Is it color or gray scale to begin with? What happened to the original matrix? How did you "lose" it? Just keep track of it, save it somehow, and then you'll always have it and not need to try to recreate it from partial information.

Sign in to comment.

Accepted Answer

Thorsten
Thorsten on 20 Dec 2014
Edited: Thorsten on 20 Dec 2014
If you have normalized the values there is no way back to the original values, because if a matrix M results in image I when normalized, all matrices s*I for any s except 0 would result in the same image I. If you have only I, it's impossible to dcecide from which of the infinite set of matrices s*M the image resulted.

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!