标签:
imshow
Description
For binary images, imshow displays pixels with the value 0 (zero) as black and 1 as white.
imshow optimizes figure, axes, and image object properties for image display.
The value low (and any value less than low) displays as black and the value high (and any value greater than high) displays as white.
imshow displays values in between as intermediate(中间的) shades of gray.
(本博客系原创,转载请注明出处:http://www.cnblogs.com/pfli1995/p/4658677.html)
(博主cnds中对应文章:http://blog.csdn.net/xuexiyanjiusheng/article/details/46956635)
注意:
因此,matlab读入图像的数据是uint8,而matlab中数值一般采用double型(64位)存储和运算。所以要先将图像转为double格式的才能运算。
索引图像的显示:
Display Indexed Image
Read a sample indexed image, corn.tif, into the workspace, and then display it.
[X,map] = imread(‘corn.tif‘); imshow(X,map)
标签:
原文地址:http://www.cnblogs.com/pfli1995/p/4658677.html