表A-1 通用函数 函数 功能 语法 Colorbar 显示颜色条 colorbar colorbar(‘Vert’) colorbar(‘horiz’) colorbar(h_ h=colorbar(… … ) colorbar(… ,’peer’,axes_handle) Getimage 从坐标轴取得图形数据 A=getimage(h) [x,y,A]=getimage(h) [… ,A,flag]=getimage(h) [… ]=getimage Imshow 显示图像 Imshow(I,n) Imshow(I,[low high]) Imshow(BW) Imshow(X,map) Imshow(RGB) Imshow(… ,display_option) Imshow(x,y,A,… ) Imshow filename H= 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(…) Truesize 调整图像显示尺寸 Truesize(fig,[mrows mcols]) Truesize(fig) Warp 将图像显示到纹理映射表面 Warp(X,map) Warp(I,n) Warp(z,…) Warp(x,y,z,…) H=warp(…) Zoom 缩放图像 Zoom on 表A-2 几何操作函数 函数 功能 语法 Imcrop 剪切图像 I2=imcrop(I) X2=imcrop(X,map) RGB2=imcrop(RGB) I2=imcrop(I,rect) 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=imrea(filename,fmt) [X,map]=imrea(filename,fmt) […]=imread(filename) […]=imread(URL,…) […]=imread(…idx) (CUR,ICO,and TIFF only) […]=imread(…,’frames’,idx) (GIF only) […]=imread(…,ref) (HDF only) […]=imread(…,’backGrounColor’,BG) (PNG only) [A,map,alpha]=imread( … ) (ICO,CUR and PNG only) Imwrite 把图像写入图形文件中 Imwrite(A,filename,fnt) Imwrite(X,map,filename,fmt) Imwrite(…,filename) Imwrite(…,Param1,Val1,Param2,Val2,…) Zoom off Zoom out Zoom reset...