资源描述:
《matlab图像处理-常用函数列表》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、附录MATLAB图像处理工具箱函数表1通用函数函数功能语法colorbar显示颜色条colorbarcolorbar(.../peeraxes_handle)colorbar(axes_handle)colorba^location1)colorbar(.../PropertyName*,propertyvalue)cbar_axes=colorbar(…)getimage从坐标轴取得图像数据A=getimage(h)[x,y,A]=getimage(h)[...,A,flag]=getimage(h)[...]=getimageimage创建并显示图像对象image(C)ima
2、ge(x,y,C)image(.../PropertyNamePropertyValue,...)image(,PropertyNamePropertyValue,...)Formalsyntax-PN/PVonlyhandle=image(…)imagesc按图像显示数据矩阵imagesc(C)imagesc(x,y,C)imagesc(…Qims)h=imagesc(...)imshow显示图像imshow(I,n)imshow(IJlowhigh])imshow(BW)imshow(X,map)imshow(RGB)imshow(…,display_option)imsh
3、ow(x,yA…)imshowfilenameh=imshow(…)imview利川图像浏览器显示图像imview(I)imview(RGB)imview(X,map)imview(I,range)imview(filename)imview(.../InitialMagnificationinitial_mag)h=imview(…)imviewcloseallmontage在矩形框中同时显示多帧图像montage(I)montage(BW)montage(X,map)montage(RGB)h=montage(.^)immovie创建多帧索引色图像的电影动画mov=immov
4、ie(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(I5n)warp(BW)warp(RGB)warp(z,...)warp(x,y,z,…)h=warp(...)zoomonzoomof
5、fzoomoutzoom缩放图像或图形zoomresetzoomzoomxonzoomyonzoom(factor)zoom(fig,option)表2图像文件I/O函数函数功能语法imfinfo返回图像文件信息info=imfinfo(filename5fmt)info=imfinfo(filename)imread从图像文件中读取图像A=imread(filename,fmt)[X,map]=imread(filename,fmt)[...]=imread(filename)[...]=imread(URL,...)[…]=imread(...,idx)(CUR,GIF,ICO
6、,andTIFFonly)=imread(...,'PixelRegion',{ROWS,COLS))(TIFFonly)[...]=imread(.../framesidx)(GIFonly)[...]=imread(...,ref)(HDFonly)[...]=imread(.../BackgroundColorBG)(PNGonly)[A,map,alpha]=imread(…)(ICO,CUR,andPNGonly)imwrite把图像写入图像文件中imwrite(A,filename,fmt)imwrite(X,map,filename,fmt)imwrite(...
7、,filename)imwrite(…,Param1,Vallfaram2,Val2…)表3空间变换函数函数功能语法findbounds为空间变换寻找输出边界outbounds=findbounds(TFORM,inbounds)fliptform切换空间变换结构的输入和输出角色TFLIP=fliptform(T)imcrop剪切图像12=imcrop(I)X2=imcrop(X,map)RGB2=imcrop(RGB)12=imcrop(I,rect)X2=imcr