MATLAB中imshow()函数支持输入类型
来源:互联网 发布:java ishexdigit 编辑:程序博客网 时间:2024/06/11 22:55
本文只记录double 与uint8 类型的图像显示
============================================================================
double类型
double类型的图像显示时认为数据在[0,1]的范围,大于1的全部显示为白色;
(所以,图像显示为全白色时,可能你的数据为double类型,而且没有进行归一化到[0,1]之间)
uint8 类型
uint8类型的图像显示时认为数据在[0,255]范围。
double类型与uint8类型之间的转换
image=double(image);
image=uint8(image);
============================================================================
到MATLAB中查找imshow()函数的使用
运行语句:open imshow
函数体中给出的注释
% Class Support
% -------------
% A truecolor image can be uint8, uint16, single, or double. An indexed
% image can be logical, uint8, single, or double. A grayscale image can
% be any numeric datatype. A binary image is of class logical.
%
% If your grayscale image is single or double, the default display range is
% [0 1]. If your image's data range is much larger or smaller than the default
% display range, you may need to experiment with setting the display range to
% see features in the image that would not be visible using the default
% display range. For all grayscale images having integer types, the default
% display range is [intmin(class(I)) intmax(class(I))].
%
% If your image is int8, int16, uint32, int32, or single, the CData in
% the resulting image object will be double. For all other classes, the
% CData matches the input image class.
============================================================================
Reference:
1:http://blog.sina.com.cn/s/blog_6796863701012ipt.html
- MATLAB中imshow()函数支持输入类型
- MATLAB函数imshow简介
- matlab中imshow
- Matlab中image、imagesc和imshow函数用法解析
- Matlab中image、imagesc和imshow函数用法解析
- Matlab中image、imagesc和imshow函数用法解析
- Matlab中image、imagesc和imshow函数用法解析
- Matlab中image、imagesc和imshow函数用法解析
- Matlab中image、imagesc和imshow函数用法解析
- Matlab中image、imagesc和imshow函数用法解析
- matlab中的imshow函数使用
- matlab中的imshow函数使用
- matlab 中imshow的用法
- MATLAB中imshow()显示问题
- matlab中imshow()出错问题
- matlab中用imshow()显示double类型图像中出现的问题
- matlab imshow函数的具体解释
- matlab中的imshow函数的问题
- Linux常用命令全集及Shell(脚本)编程入门
- 第十三周 项目二:成绩处理
- 自定义u-boot启动logo的方法
- 第十三周OJ项目数组逆序输出
- 工业相机
- MATLAB中imshow()函数支持输入类型
- NSString的一些方法
- Failed to install*.apk on device '': timeout解决方法
- 第13周项目1数组中元素值为3的倍数的数和下标为3的倍数的数
- Duilib学习笔记《01》— duilib整体框架认识
- 合理设置max_user_connections以避免MySQL宕机
- SharePoint 2013 Silverlight中使用Net客户端对象模型
- [Phonegap+Sencha Touch] 移动开发38 sencha 2.3.2+ 在 安卓2.3上使用报错 - has no method 'bind'
- 第十三周项目一(1) 数组简单试