ImageVerifierCode 换一换
格式:DOCX , 页数:26 ,大小:21.39KB ,
资源ID:6517957      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/6517957.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(MATLAB图像处理工具箱常用函数列表.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

MATLAB图像处理工具箱常用函数列表.docx

1、MATLAB图像处理工具箱常用函数列表附录 MATLAB图像处理工具箱函数 表1 通用函数函数功能语法colorbar显示颜色条colorbarcolorbar(.,peer,axes_handle)colorbar(axes_handle)colorbar(location)colorbar(.,PropertyName,propertyvalue)cbar_axes = colorbar(.)getimage从坐标轴取得图像数据A = getimage(h)x,y,A = getimage(h).,A,flag = getimage(h). = getimageimage创建并显示图像对象

2、image(C)image(x,y,C)image(.,PropertyName,PropertyValue,.)image(PropertyName,PropertyValue,.) Formal syntax - PN/PV onlyhandle = image(.)imagesc按图像显示数据矩阵imagesc(C)imagesc(x,y,C)imagesc(.,clims)h = imagesc(.)imshow显示图像imshow(I,n)imshow(I,low high)imshow(BW)imshow(X,map)imshow(RGB)imshow(,display_optio

3、n)imshow(x,y,A,)imshow filenameh = imshow()imview利用图像浏览器显示图像imview(I)imview(RGB)imview(X,map)imview(I,range)imview(filename)imview(.,InitialMagnification,initial_mag)h = imview(.)imview close allmontage在矩形框中同时显示多帧图像montage(I)montage(BW)montage(X,map)montage(RGB)h = montage(.)immovie创建多帧索引色图像的电影动画mov

4、 = 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,mrows mcols)truesize(fig)wrap将图像显示到纹理映射表面warp(X,map)warp(I,n)warp(BW)warp(RGB)warp(z,.)warp(x,y,z,.)h = warp(.)zoom缩放图像或图

5、形zoom on zoom offzoom outzoom resetzoomzoom xonzoom yonzoom(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, GI

6、F, ICO, and TIFF only). = imread(., PixelRegion, ROWS, COLS ) (TIFF only). = imread(.,frames,idx) (GIF only). = imread(.,ref) (HDF only). = imread(.,BackgroundColor,BG) (PNG only)A,map,alpha = imread(.) (ICO, CUR, and PNG only)imwrite把图像写入图像文件中imwrite(A,filename,fmt)imwrite(X,map,filename,fmt)imwrit

7、e(.,filename)imwrite(.,Param1,Val1,Param2,Val2.)表3 空间变换函数函数功能语法findbounds为空间变换寻找输出边界outbounds = findbounds(TFORM,inbounds)fliptform切换空间变换结构的输入和输出角色TFLIP = fliptform(T)imcrop剪切图像I2 = imcrop(I)X2 = imcrop(X,map)RGB2 = imcrop(RGB)I2 = imcrop(I,rect)X2 = imcrop(X,map,rect)RGB2 = imcrop(RGB,rect). = imcr

8、op(x,y,.)A,rect = imcrop(.)x,y,A,rect = imcrop(.)imresize图像缩放B = imresize(A,m)B = imresize(A,m,method)B = imresize(A,mrows ncols,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)interp22-D数据插值ZI = int

9、erp2(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(in

10、terpolant,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,.)X = tformfwd(T,U)X1,X2,X3,. = tformfwd(T,U)X = tformfwd(T,U1,U2,U3,.)tforminv逆向空间变换U

11、 = tforminv(X,T)表4 像素和统计处理函数函数功能语法corr2计算两个矩阵的2-D相关系数r = corr2(A,B)imcontour创建图像的轮廓图imcontour(I)imcontour(I,n)imcontour(I,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

12、 = 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,

13、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显示图像像素信息pixval onpixval offpixvalpixval(fig,option)pixval(ax,option)pixval(H,option)regionprops得到图像区域属性STATS = regionprops(L,properties)std2计算矩阵元素的标准偏移b = std2(A)表5 图像

14、分析函数函数功能语法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,prewitt,thresh,direction)BW,thresh = edge(I,prewitt,.)BW = edge(I,roberts)BW = edge(I,roberts,thresh)BW,thresh =

15、 edge(I,roberts,.)BW = edge(I,log)BW = edge(I,log,thresh)BW = edge(I,log,thresh,sigma)BW,threshold = edge(I,log,.)qtdecomp执行四叉树分解S = qtdecomp(I)S = qtdecomp(I,threshold)S = qtdecomp(I,threshold,mindim)S = qtdecomp(I,threshold,mindim maxdim)S = qtdecomp(I,fun)S = qtdecomp(I,fun,P1,P2,.)qtgetblk获取四叉树分

16、解中的数组块值vals,r,c = qtgetblk(I,S,dim)vals,idx = qtgetblk(I,S,dim)qtsetblk设置四叉树分解中的数组块值J = qtsetblk(I,S,dim,vals)表6 图像增强函数函数功能语法adapthisteq执行对比度受限的直方图均衡J = adapthisteq(I)J = adapthisteq(I,param1,val1,param2,val2.)decorrstretch对多通道图像应用解卷积延拓S = decorrstretch(I)S = decorrstretch(I,TOL)histeq用直方图均等化增强对比度J

17、= 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调整图像灰度值或颜色映射表J = imadjust(I)J = imadjust(I,low_in; high_in,low_out; high_out)J = imadjust(.,gamma)newmap = imadjust(map, low_in high_in, low_out high_out, gamma)RGB2 = ima

18、djust(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,order,domain)B = ordfilt2(A,order,domain,S)B = ordfilt2(.,padopt)stretchlim得到图像对比度延拓的灰度上下限LOW_HIGH = stretchlim(I,T

19、OL)LOW_HIGH = stretchlim(RGB,TOL)wiener2进行二维适应性去噪滤波J = wiener2(I,m n,noise)J,noise = wiener2(I,m n)表7 线性滤波函数函数功能语法conv2二维卷积C = conv2(A,B)C = conv2(hcol,hrow,A)C = conv2(.,shape)convmtx2二维矩阵卷积T = convmtx2(H,m,n)T = convmtx2(H,m n)convnn维卷积C = convn(A,B)C = convn(A,B,shape)filter2二维线性滤波Y = filter2(h,X

20、)Y = filter2(h,X,shape)fspecial创建预定义滤波器h = fspecial(type)h = fspecial(type,parameters)imfilter多维图像滤波B = imfilter(A,H)B = imfilter(A,H,option1,option2,.)表8 线性二维滤波器设计函数函数功能语法freqspace确定二维频率响应的频率空间f1,f2 = freqspace(n)f1,f2 = freqspace(m n)x1,y1 = freqspace(.,meshgrid)f = freqspace(N)f = freqspace(N,who

21、le)freqz2计算二维频率响应H,f1,f2 = freqz2(h,n1,n2)H,f1,f2 = freqz2(h,n2 n1)H,f1,f2 = freqz2(h)H,f1,f2 = freqz2(h,f1,f2). = freqz2(h,.,dx dy). = freqz2(h,.,dx)freqz2(.)fsamp2用频率采样法设计二维FIR滤波器h = fsamp2(Hd)h = fsamp2(f1,f2,Hd,m n)ftrans2通过频率转换法设计二维FIR滤波器h = ftrans2(b,t)h = ftrans2(b)fwind1用一维窗口方法设计二维FIR滤波器h =

22、fwind1(Hd,win)h = fwind1(Hd,win1,win2)h = fwind1(f1,f2,Hd,.)fwind2用二维窗口方法设计二维FIR滤波器h = fwind2(Hd,win)h = fwind2(f1,f2,Hd,win)表9 图像变换函数函数功能语法dct2进行二维离散余弦变换B = dct2(A)B = dct2(A,m,n)B = dct2(A,m n)dctmtx计算离散余弦变换矩阵D = dctmtx(n)fft2进行二维快速傅立叶变换Y = fft2(X)Y = fft2(X,m,n)fftn进行n维快速傅立叶变换Y = fftn(X)Y = fftn(

23、X,siz)fftshift转换快速傅立叶变换的输出象限Y = fftshift(X)Y = fftshift(X,dim)idct2计算二维逆离散余弦变换B = idct2(A)B = idct2(A,m,n)B = idct2(A,m n)ifft2计算二维逆快速傅立叶变换Y = ifft2(X)Y = ifft2(X,m,n)y = ifft2(., nonsymmetric)y = ifft2(., nonsymmetric)ifftn计算n维逆快速傅立叶变换Y = ifftn(X)Y = ifftn(X,siz)y = ifftn(., nonsymmetric)y = ifftn(

24、., nonsymmetric)iradon逆Radon变换I = iradon(R,theta)I = iradon(R, theta, interp, filter, frequency_scaling, output_size)I,H = iradon(.)phantom产生一个头部幻影图像P = phantom(def,n)P = phantom(E,n)P,E = phantom(.)radon计算Radon变换R=radon(I,theta)R,xp=radon()fanbeam计算扇形投影变换F = fanbeam(I,D)F = fanbeam(.,param1,val1,pa

25、ram1,val2,.)F,sensor_positions,fan_rotation_angles = fanbeam(.)表10 边沿和块处理函数函数功能语法bestblk确定进行块操作的块大小siz = bestblk(m n,k)mb,nb = bestblk(m n,k)blkproc实现图像的非重叠(distinct)块操作B = blkproc(A,m n,fun)B = blkproc(A,m n,fun,P1,P2,.)B=blkproc(A,m n,mborder nborder, fun, .)B = blkproc(A,indexed,.)col2im将矩阵的列重新组织

26、到块中A = col2im(B,m n,mm nn, block_type)A = col2im(B,m n,mm nn)colfilt利用列相关函数进行边沿操作B = colfilt(A,m n,block_type,fun)B = colfilt(A,m n,block_type,fun,P1,P2,.)B = colfilt(A, m n, mblock nblock, block_type, fun,.)B = colfilt(A,indexed,.)im2col重调图像块为列B = im2col(A,m n,block_type)B = im2col(A,m n)B = im2col

27、(A,indexed,.)nlfilter通用滑动邻域操作B = nlfilter(A,m n,fun)B = nlfilter(A,m n,fun,P1,P2,.)B = nlfilter(A,indexed,.)表11 图像形态学操作函数函数功能语法applylut在二值图像中利用查找表进行邻域操作A = applylut(BW,LUT)bwarea计算二值图像的对象面积total = bwarea(BW)bweuler计算二值图像的欧拉数eul = bweuler(BW,n)bwhitmiss执行二值图像的击中和击不中操作BW2 = bwhitmiss(BW1,SE1,SE2)BW2 = bwhitmiss(BW1,INTERVAL)bwlabel标注二值图像中已连接的部分L = bwlabel(BW,n)L,num = bwlabel(BW,n)bwmorph二值图像的通用形态学操作BW2 = bwmorph(BW,operation)BW2 = bwmorph(BW,operation,n)bwperim计算二值图像中对象的周长BW2 = bwperim(BW1)BW2 = bwperim(BW1,CONN)bwselect在二值图像中选择对象BW2 = bwselect(BW,c,r,n)BW2 = bwselect(BW,

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1