I want to create an image like this: From an image like this:
It looks like the 3rd plot is the reverse of the 2nd above.
One thing to consider is what you are using for draw image image()
imagesc()
or imshow()
imagesc()
does auto scaling and imshow()
will use a color map.
Another thing to consider is the input image itself. Does it range from 0 - 255, 0 - 1.0 or RGB? Depending on what it is, the reverse would be different.