MATLAB图像处理工具箱函数

上传人:人*** 文档编号:485193262 上传时间:2023-11-14 格式:DOC 页数:10 大小:114.51KB
返回 下载 相关 举报
MATLAB图像处理工具箱函数_第1页
第1页 / 共10页
MATLAB图像处理工具箱函数_第2页
第2页 / 共10页
MATLAB图像处理工具箱函数_第3页
第3页 / 共10页
MATLAB图像处理工具箱函数_第4页
第4页 / 共10页
MATLAB图像处理工具箱函数_第5页
第5页 / 共10页
点击查看更多>>
资源描述

《MATLAB图像处理工具箱函数》由会员分享,可在线阅读,更多相关《MATLAB图像处理工具箱函数(10页珍藏版)》请在金锄头文库上搜索。

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,low high)Imshow(BW)Imshow(X,map)Imshow(RGB)Imshow(,display_option)Imshow(x,y,A,)

2、Imshow filenameH= 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)True

3、size(fig)Warp将图像显示到纹理映射表面Warp(X,map)Warp(I,n)Warp(z,)Warp(x,y,z,)H=warp()Zoom缩放图像Zoom on Zoom offZoom outZoom resetzoomzoom xonzoom yonzoom(factor)zoom(fig,option)表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

4、,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,)=im

5、read(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,)表A-4线性滤波函数函数

6、功能语法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=filter2(h,x)Y=filter2(h,X,shape)Fspecial创建预定义过滤器H=fspecial(type)H=fspecial(type,parameters)表A-5像素和统计处理函数函数功能语法Corr2计算两个矩阵的二维相关

7、系数R=corr2(A,B)Imcontour创建图像数据的轮廓图Imcontour(I,n)Imcontour(I,v)Imcontour(x,y,)Imcontour(,lineSpec)C,h=imcontour()Imfeature计算图像区域的特征尺寸Stats=imfeature(L,measurements)Stats=imfeature(L,measurements,n)Imhist显示图像数据的柱状图Imhist(I,n)Imhist(X,map)count,X=imhist()Impixel确定像素颜色值P=impixel(I)P=impixel(X,map)P=impix

8、el(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=improfileC=improfile(n)C=improfile(I,xi,yi)C=improfile(I,xi,yi,n)cx, cy, c=improfile()cx, cy, c,xi,yi =impro

9、file()=improfile(x,y,I,xi,yi,)=improfile(x,y,I,xi,yi,n)=improfile(,method)Mean2计算矩阵元素的平均值B=mean2(A)Pixval显示图像像素信息Pixval onStd2计算矩阵元素的标准偏移B=std2(A)表A-6图像增强函数函数功能语法Histeq用柱状图均衡化增强对比J=histeq(I,hgram)J=histeq(I,n)J,T=histeq(I,)Newmap=histeq(X,map,hgram)Newmap=histeq(X,map)newmap,T=histeq(X,)Imadjust调整图像

10、灰度值或颜色映射表J=imadjust(I,low_in high_in,low_out high_out,gamma)Newmap=imadjust(map,low_in high_in,low_out high_out,gamma)RGB2=imadjust(RGB1,)Imnoise增强图像渲染效果J=imnoise(I,type)J=imnoise(I,type,parameters)Medfilt2进行二维中值过滤B=medfilt2(A,m,n)B=medfilt2(A)B=medfilt2(A,indexed,)Ordfilt2进行二维统计顺序过滤B=ordfilt2(A,ord

11、er,domain)B=ordfilt2(A,order,domain,S)B=ordfilt2(,padopt)Wiener2进行二维适应性去噪过滤处理J=wiener2(I,m,n,noise)J,noise=wiener2(I,m,n)表A-7图像分析函数函数功能语法Edge识别强度图像中的边界BW=edge(I,sobel)BW=edge(I,sobel,thresh)BW=edge(I,sobel,thresh,direction)BW,thresh=edge(I,sobel,)BW=edge(I,prewitt)BW=edge(I,prewitt,thresh)BW=edge(I,

12、prewitt,thresh,direction)BW,thresh=edge(I,prewitt,)BW=edge(I,roberts)BW=edge(I,roberts,thresh)BW,thresh=edge(I,roberts,)BW=edge(I,log)BW=edge(I,log,thresh)BW=edge(I,log,thresh,sigma)BW,thresh=edge(I,log,)BW=edge(I,zerocross,thresh,h)BW,thresh=edge(I,zerocross,)BW=edge(I,canny)BW=edge(I,canny,thresh)

13、BW=edge(I,canny,thresh,sigma)BW,threshold=edge(I,canny,)Qtgetblk获取四叉树中的块值vals,r,c=qtgetblk(I,S,dim)vals,idx=qtgetblk(I,S,dim)Qtsetblk设置四叉树中的块值J=qtsetblk(I,S,dim,vals)表A-8线性二维滤波设计函数函数功能语法Frespace确定二维频率响应频率空间f1,f2=freqspace(n)f1,f2=freqspace(m,n)x1,y1freqspace(,meshgrid)F=freqspace(N)F=freqspace(N,whole)Freqz2计算二维频率响应H,f1,f2=freqz2(h,n1,n2)H,f1,f2=freqz2(h,n2,n1)H,f1,f2=freqz2(h,f1,f2)H,f1,f2=freqz2(h)=freqz2(h,dx,dy)=freqz2(h,dx)Freqz2()Fsamp2用频率采样法设计二维FIR过滤器H=fsamp2(Hd)H=fsamp2(f1,f2,Hd,m,n)Ftrans2通过频率转换设计二维FIR过滤器

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 中学教育 > 试题/考题 > 初中试题/考题

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号