The Cozy Hut of Dr. Zhang分享 http://blog.sciencenet.cn/u/zjzhang

博文

imagesc函数显示图像和image函数显示图像的比较

已有 6485 次阅读 2011-11-10 12:40 |个人分类:图像分析(matlab,PDE)|系统分类:科研笔记| imagesc

imagesc函数具有对显示的数据进行自动缩放的功能。
 
>> I=rand(256);
>> map=gray(256);
>> subplot(2,2,1);
>> image(I);colormap(map);
>> title('image(I)');
>> subplot(2,2,2);
>> imagesc(I);colormap(map);
>> title('imagesc(I)');
>> subplot(2,2,3);
>> image(im2uint8(I));colormap(map);
>> title('image(im2uint8(I))');


https://blog.sciencenet.cn/blog-287000-506523.html

上一篇:image函数的应用
下一篇:灰度图像的显示
收藏 IP: 121.33.190.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-7-19 14:12

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部