matlab的数据类型 对比 OpenCV
2014-04-10 09:30
302 查看
matlab 中
数据类型
double
single
unit8
unit16
Logical
常见转化: im2double()等4个
默认读入图片是unit8类型的,一般数据处理先将变为double();
Intendity:灰度范围 命令: imagesc(),axis,colormap();
Binary:bwlabel(),bwmorph(),bwdist();%用于mask时
indexed:region
3D Matrix
RGB rgb2grey();
常见I/O操作:
imread imwrite %读入图片,读出图片
im2farm()%图片转电影
movie2avi()%保存电影
aviread()%
mmread()
mmreader()/VideoReader()
movie() %show movie
Matrix access
sub
Image Manipulation
常见命令:
imcrop()%针对图片的某个区域处理
imrotate()%旋转图片
imfilter()%用变化核去convolve/correlation 卷积,联系
nlfilter()%
blkproc()%
fspecial() %自己去定义变化核
imresize()%预处理,将图片变化尺寸
kron()%Kronecker tensor product 外积
padarray()%
colfilt()%按列堆积图片
imfreehand()%用鼠标选取一定区域
MEX 实现C,C++编译
P文件(保密文件)
matlab 调用C C再调用exe
数据呈现
scatter()%在图里画点
Imagesc()%2D数据
print()%
常见的问题:
避免循环
管理内存(没用的变 量删了)
数据类型
double
single
unit8
unit16
Logical
常见转化: im2double()等4个
默认读入图片是unit8类型的,一般数据处理先将变为double();
Intendity:灰度范围 命令: imagesc(),axis,colormap();
Binary:bwlabel(),bwmorph(),bwdist();%用于mask时
indexed:region
3D Matrix
RGB rgb2grey();
常见I/O操作:
imread imwrite %读入图片,读出图片
im2farm()%图片转电影
movie2avi()%保存电影
aviread()%
mmread()
mmreader()/VideoReader()
movie() %show movie
Matrix access
sub
Image Manipulation
常见命令:
imcrop()%针对图片的某个区域处理
imrotate()%旋转图片
imfilter()%用变化核去convolve/correlation 卷积,联系
nlfilter()%
blkproc()%
fspecial() %自己去定义变化核
imresize()%预处理,将图片变化尺寸
kron()%Kronecker tensor product 外积
padarray()%
colfilt()%按列堆积图片
imfreehand()%用鼠标选取一定区域
MEX 实现C,C++编译
P文件(保密文件)
matlab 调用C C再调用exe
数据呈现
scatter()%在图里画点
Imagesc()%2D数据
print()%
常见的问题:
避免循环
管理内存(没用的变 量删了)
相关文章推荐
- 图像数据类型的转换 matlab opencv
- ENVI数据类型和MATLAB数据类型对比
- opencv和matlab矩阵类型数据相互传递
- MATLAB和Opencv中数据类型转换
- OpenCV图像中的数据类型
- OpenCv学习笔记(三)---OpenCv中基本数据类型--Point,Size,Rect,Scalar,Vec3b类类型的详细解释及其OpenCv中源代码的详细分析
- C#与Java对比学习:数据类型、集合类、栈与队列、迭达、可变参数、枚举
- Matlab 读混合数据类型文件 textscan
- MATLAB 数据类型
- c和c++的数据类型对比
- 【MFC】指纹类型识别(OpenCV + MATLAB混合编程)
- linux下32位机与64位机基本数据类型长度对比
- MySQL数据类型对比
- 流行编程语言的详细对比(3)--基本数据类型和字符串处理
- 【OpenCV】基本数据类型、IplImage数据结构
- opencv中的数据类型
- 关于OpenCV中利用函数cvConvert实现图像数据类型转换(8U->16S)
- powerDisgner 数据类型对比
- VC下使用OpenCV最好先修改一下结构体IplImage中的数据指针imageData的类型...
- opencv里的数据类型