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

博文

图像类型转换---grayslice函数(将灰度图像转换为索引图像)

已有 16550 次阅读 2011-11-10 22:40 |个人分类:图像分析(matlab,PDE)|系统分类:科研笔记| screen, title, figure, displaying

>> I=imread('moon.tif');
>> X=grayslice(I,64);
>> figure(1);
>> imshow(I);
Warning: Image is too big to fit on screen; displaying at 75% scale.
> In truesize>Resize1 at 308
  In truesize at 44
  In imshow at 161
>> title('原始图像');
>> figure(2);
>> imshow(X,jet(64));
Warning: Image is too big to fit on screen; displaying at 75% scale.
> In truesize>Resize1 at 308
  In truesize at 44
  In imshow at 161
>> title('索引图像');


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

上一篇:图像类型转换---grey2ind函数(将灰度图像转换为索引图像)
下一篇:图像类型转换---im2bw函数(将图像转换为二值图像)
收藏 IP: 121.33.190.*| 热度|

0

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

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

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

GMT+8, 2024-11-26 21:20

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部