When I call IMWRITE without displaying the image first, a blank figure window is created:
ima = imread('rice.tif');imwrite(ima ,gray, 'newrice.bmp')
If I use the IMSHOW command before the IMWRITE command or if I don't specify a colormap, the figure window does not appear.
Best Answer