I have a .png image that has been created from some grayscale numbers using Matlab's imagesc tool using the standard color map. For some reason, I am unable to recover the raw data. Is there a way of recovering the raw data from the image? I tried rgb2gray which more or less worked, but if I replug the new image into imagesc, it gives me a slightly different result. Also, the pixel with the most intensity differs in both images.
So, to clarify: I would love to know, how Matlab applies the rgb colormap to the grayscale values, when using the standard colormap.
This is the image we are talking about: http://imgur.com/qFsGrWw.png
Thank you!
doublethen this is not possible since a PNG will discard your 64-bit floating point data in favor of an 8-bit integer datatype. Alsorgb2graydoesn't inversely map a colormap, but rather just converts it to grayscale. If you tell us what you're actually trying to accomplish maybe we can provide more help - Suever.matfile rather than trying to take a screenshot and save it as an RGB png. - Suever