I am trying to figure out why my black and white image, with values from 0-1.0 won't be scaled correctly by an image(my_img) call.
I have tried the following:
- Setting colormap([0:0.0039:1; 0:0.0039:1; 0:0.0039:1]')
- Setting clim for the gca to [0 1]
- Setting DataAspectRatio to [1 1 1]
- Changing ClimMode and DataAspectRatioMode to manual
What am I doing wrong? Matlab documentation states that images can be from [0 1.0]... Why won't image() display it correctly?
Imshow works great BUT I am trying to achieve the same image as imshow for my own personal reasons using the image function.
Constantin