I have created an grayscale image:
A=repmat(-100:100,100,1);figure(1)imshow(A,[])
I save this image to a file using IMWRITE as a 16bit image and it becomes black and white:
imwrite(A,'myimage.png','BitDepth',16)figure(2)imshow('myimage.png')
Best Answer