资源描述:
《matlab图像处理工具箱函数》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、表A-1通用函数函数功能语法Colorbar显示颜色条colorbarcolorbar(‘Vert’)colorbar(‘horiz’)colorbar(h_h=colorbar(……)colorbar(…,’peer’,axes_handle)Getimage从坐标轴取得图形数据A=getimage(h)[x,y,A]=getimage(h)[…,A,flag]=getimage(h)[…]=getimageImshow显示图像Imshow(I,n)Imshow(I,[lowhigh])Imshow(BW)Imshow(X,map)Imshow(RGB)Imshow(…
2、,display_option)Imshow(x,y,A,…)ImshowfilenameH=Imshow(…)Montage在矩形框中同时显示多幅图像montage(I)montage(BW)montage(X,map)montage(RGB)h=montage(…)Immovie创建多帧索引色图像的电影动画mov=immovie(X,map)mov=immovie(RGB)Subimage在一幅图中显示多个图像Subimage(X,map)Subimage(I)Subimage(BW)Subimage(RGB)Subimage(x,y,…)H=subimage(…)T
3、ruesize调整图像显示尺寸Truesize(fig,[mrowsmcols])Truesize(fig)Warp将图像显示到纹理映射表面Warp(X,map)Warp(I,n)Warp(z,…)Warp(x,y,z,…)H=warp(…)Zoom缩放图像ZoomonZoomoffZoomoutZoomresetzoomzoomxonzoomyonzoom(factor)zoom(fig,option)表A-2几何操作函数函数功能语法Imcrop剪切图像I2=imcrop(I)X2=imcrop(X,map)RGB2=imcrop(RGB)I2=imcrop(I,rec
4、t)RGB2=imcrop(RGB,rect)[…]=imcrop(x,y,…)[A,rect]=imcrop(…)[x,y,A,rect]=imcrop(…)Imresize改变图像大小B=imresize(A,m,method)Imrotate旋转图像B=imrotate(A,angel,method)B=imrotate(A,angel,method,’crop’)表A-3图像文件I/O函数函数功能语法Imfinfo返回图形文件信息Info=imfinfo(filename,fmt)Info=imfinfo(filename)Imread从图形文件中读取图像A=im
5、rea(filename,fmt)[X,map]=imrea(filename,fmt)[…]=imread(filename)[…]=imread(URL,…)[…]=imread(…idx)(CUR,ICO,andTIFFonly)[…]=imread(…,’frames’,idx)(GIFonly)[…]=imread(…,ref)(HDFonly)[…]=imread(…,’backGrounColor’,BG)(PNGonly)[A,map,alpha]=imread(…)(ICO,CURandPNGonly)Imwrite把图像写入图形文件中Imwrite(A
6、,filename,fnt)Imwrite(X,map,filename,fmt)Imwrite(…,filename)Imwrite(…,Param1,Val1,Param2,Val2,…)表A-4线性滤波函数函数功能语法Conv2进行二维卷积操作C=conv2(A,B)C=conv2(hcol,hrow,A)C=conv2(…,’shape’)Convmtx2计算二维卷积矩阵T=convmtx2(H,m,n)T=convmtx2(H,[m,n])Convn计算n维卷积C=convn(A,B)C=convn(A,B,’shape’)Filter2进行二维线性过滤操作Y=
7、filter2(h,x)Y=filter2(h,X,shape)Fspecial创建预定义过滤器H=fspecial(type)H=fspecial(type,parameters)表A-5像素和统计处理函数函数功能语法Corr2计算两个矩阵的二维相关系数R=corr2(A,B)Imcontour创建图像数据的轮廓图Imcontour(I,n)Imcontour(I,v)Imcontour(x,y,…)Imcontour(…,lineSpec)[C,h]=imcontour(…)Imfeature计算图像区域的特征尺寸Stat