MATLAB图像处理工具箱常用函数列表Word文档格式.docx
- 文档编号:14103323
- 上传时间:2022-10-18
- 格式:DOCX
- 页数:25
- 大小:29.17KB
MATLAB图像处理工具箱常用函数列表Word文档格式.docx
《MATLAB图像处理工具箱常用函数列表Word文档格式.docx》由会员分享,可在线阅读,更多相关《MATLAB图像处理工具箱常用函数列表Word文档格式.docx(25页珍藏版)》请在冰豆网上搜索。
image(x,y,C)image(...,'
PropertyValue,...)image('
PropertyValue,...)Formalsyntax-PN/PVonly
handle=image(...)
imagesc
按图像显示数据矩阵
imagesc(C)imagesc(x,y,C)imagesc(...,clims)h=imagesc(...)
imshow
显示图像
imshow(I,n)imshow(I,[lowhigh])imshow(BW)imshow(X,map)
imshow(RGB)
imshow(…,display_option)imshow(x,y,A,…)imshowfilenameh=imshow(…)
imview
利用图像浏览器显示图像
imview(I)imview(RGB)imview(X,map)imview(I,range)imview(filename)imview(...,'
lnitialMagnification'
initial_mag)h=imview(...)imviewcloseall
montage
在矩形框中同时显示多帧图
像
montage(I)
montage(BW)montage(X,map)montage(RGB)h=montage(...)
immovie
创建多帧索引色图像的电影
动画
mov=immovie(X,map)
mov=immovie(RGB)
subimage
在一个图形中显示多个图
像,结合函数subplot使用
subimage(X,map)subimage(I)subimage(BW)subimage(RGB)subimage(x,y,...)h=subimage(...)
truesize
调整图像显示尺寸
truesize(fig,[mrowsmcols])
truesize(fig)
wrap
将图像显示到纹理映射表面
warp(X,map)warp(I,n)warp(BW)warp(RGB)warp(z,...)warp(x,y,z,...)h=warp(...)
zoomon
zoomoff
zoomout
zoomreset
zoom
zoomxon
zoomyonzoom(factor)zoom(fig,option)
表2图像文件I/O函数
imfinfo
返回图像文件信息
info=imfinfo(filename,fmt)
info=imfinfo(filename)
imread
从图像文件中读取图像
A=imread(filename,fmt)
[X,map]=imread(filename,fmt)
[...]=imread(filename)
[...]=imread(URL,...)
[...]=imread(...,idx)
(CUR,GIF,ICO,andTIFFonly)
[...]=imread(...,'
PixelRegion'
{ROWS,
COLS})(TIFFonly)
[...]=imread(...,'
frames'
idx)(GIFonly)
[...]=imread(...,ref)(HDFonly)
BackgroundColor'
BG)
(PNGonly)
[A,map,alpha]=imread(...)
(ICO,CUR,andPNGonly)
imwrite
把图像写入图像文件中
imwrite(A,filename,fmt)
imwrite(X,map,filename,fmt)
imwrite(...,filename)
imwrite(...,Param1,Val1,Param2,Val2...)
表3空间变换函数
findbounds
为空间变换寻找输岀边界
outbounds=findbounds(TFORM,inbounds)
fliptform
切换空间变换结构的输入和
输岀角色
TFLIP=fliptform(T)
imcrop
剪切图像
12=imcrop(I)
X2=imcrop(X,map)
RGB2=imcrop(RGB)
I2=imcrop(I,rect)
X2=imcrop(X,map,rect)
RGB2=imcrop(RGB,rect)[...]=imcrop(x,y,...)[A,rect]=imcrop(...)[x,y,A,rect]=imcrop(...)
imresize
图像缩放
B=imresize(A,m)
B=imresize(A,m,method)
B=imresize(A,[mrowsncols],method)
B=imresize(...,method,n)
B=imresize(...,method,h)
imrotate
图像旋转
B=imrotate(A,angle)
B=imrotate(A,angle,method)
B=imrotate(A,angle,method,bbox)
interp2
2-D数据插值
ZI=interp2(X,Y,Z,XI,YI)
ZI=interp2(Z,XI,YI)
ZI=interp2(Z,ntimes)
ZI=interp2(X,Y,Z,XI,YI,method)
imtransform
对图像进行2-D空间变换
B=imtransform(A,TFORM)
B=imtransform(A,TFORM,INTERP)
[B,XDATA,YDATA]=imtransform(...)
[B,XDATA,YDATA]=imtransform(...,
param1,val1,param2,val2,...)
makeresampler
生成重采样结构
R=makeresampler(interpolant,padmethod)
maketform
生成几何变换结构
T=maketform(transformtype,...)
tformarray
多维数组的空间变换
B=tformarray(A,T,R,TDIMS_A,
TDIMS_B,TSIZE_B,TMAP_B,F)
tformfwd
正向空间变换
[X,Y]=tformfwd(T,U,V)
[X1,X2,X3,…]=tformfwd(T,U1,U2,U3,..J
X=tformfwd(T,U)
[X1,X2,X3,…]=tformfwd(T,U)
X=tformfwd(T,U1,U2,U3,...)
tforminv
逆向空间变换
U=tforminv(X,T)
表4像素和统计处理函数
corr2
计算两个矩阵的2-D相关系
数
r=corr2(A,B)
imcontour
创建图像的轮廓图
imcontour(I)
imcontour(I,n)
imcontour(l,v)
imcontour(x,y,...)
imcontour(...,LineSpec)
[C,h]=imcontour(...)
imhist
显示图像的直方图
imhist(I,n)
imhist(X,map)
[counts,x]=imhist(...)
impixel
确定像素颜色值
P=impixel(I)
P=impixel(X,map)
P=impixel(RGB)
P=impixel(I,c,r)
P=impixel(X,map,c,r)
P=impixel(RGB,c,r)
[c,r,P]=impixel(...)
P=impixel(x,y,I,xi,yi)
P=impixel(x,y,X,map,xi,yi)
P=impixel(x,y,RGB,xi,yi)
[xi,yi,P]=impixel(x,y,...)
improfile
沿线段计算剖面图的像素值
c=improfile
c=improfile(n)
c=improfile(I,xi,yi)
c=improfile(I,xi,yi,n)
[cx,cy,c]=improfile(...)[cx,cy,c,xi,yi]=improfile(...)[...]=improfile(x,y,I,xi,yi)[...]=improfile(x,y,I,xi,yi,n)[...]=improfile(...,method)
mean2
求矩阵元素平均值
B=mean2(A)
pixval
显示图像像素信息
pixvalon
pixvaloff
pixvalpixval(fig,option)pixval(ax,option)pixval(H,option)
regionprops
得到图像区域属性
STATS=regionprops(L,properties)
std2
计算矩阵元素的标准偏移
b=std2(A)
表5图像分析函数
edge
识别灰度图像中的边界
BW=edge(l,'
sobel'
)
thresh)
thresh,direction)
[BW,thresh]=edge(l,'
...)
BW=edge(I,'
prewitt'
thresh,direction)
[BW,thresh]=edge(I,'
roberts'
rob
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- MATLAB 图像 处理 工具箱 常用 函数 列表