matlab图像处理函数汇总2

matlab图像处理函数汇总2

ID:7286283

大小:62.00 KB

页数:25页

时间:2018-02-10

matlab图像处理函数汇总2_第1页
matlab图像处理函数汇总2_第2页
matlab图像处理函数汇总2_第3页
matlab图像处理函数汇总2_第4页
matlab图像处理函数汇总2_第5页
资源描述:

《matlab图像处理函数汇总2》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库

1、MATLAB图像处理函数汇总(二)21.dct2功能:进行二维离散余弦变换.语法:B=dct2(A)B=dct2(A,m,n)B=dct2(A,[mn])举例RGB=imread('autumn.tif');I=rgb2gray(RGB);J=dct2(I);imshow(log(abs(J)),[]),colormap(jet(64)),colorbarJ(abs(J)<10)=0;K=idct2(J)/255;imshow(K)相关命令:fft2,idct2,ifft222.dctmtx功能:计算离散余弦变换矩阵.MA

2、TLAB高级应用——图形及影像处理330语法:D=dctmtx(n)相关命令:dct223.dilate功能:放大二进制图像.语法:BW2=dilate(BW1,SE)BW2=dilate(BW1,SE,alg)BW2=dilate(BW1,SE,...,n)举例BW1=imread('text.tif');SE=ones(6,2);BW2=dilate(BW1,SE);imshow(BW1)figure,imshow(BW2)相关命令:bwmorph,erode24.dither功能:通过抖动增加外观颜色分辨率,转换图像

3、.语法:X=dither(RGB,map)BW=dither(I)相关命令:rgb2ind25.double附录MATLAB图像处理命令331功能:转换数据为双精度型.语法:B=double(A)举例A=imread('saturn.tif');B=sqrt(double(A));相关命令:im2double,im2uint,uint826.edge功能:识别强度图像中的边界.语法:BW=edge(I,'sobel')BW=edge(I,'sobel',thresh)BW=edge(I,'sobel',thresh,dir

4、ection)[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]=edge(I,'roberts',...)BW=edge(I,'log')BW=edge(I,'lo

5、g',thresh)BW=edge(I,'log',thresh,sigma)[BW,threshold]=edge(I,'log',...)BW=edge(I,'zerocross',thresh,h)[BW,thresh]=edge(I,'zerocross',...)BW=edge(I,'canny')BW=edge(I,'canny',thresh)BW=edge(I,'canny',thresh,sigma)MATLAB高级应用——图形及影像处理332[BW,threshold]=edge(I,'canny',.

6、..)举例I=imread('rice.tif');BW1=edge(I,'prewitt');BW2=edge(I,'canny');imshow(BW1);figure,imshow(BW2)27.erode功能:弱化二进制图像的边界.语法:BW2=erode(BW1,SE)BW2=erode(BW1,SE,alg)BW2=erode(BW1,SE,...,n)举例BW1=imread('text.tif');SE=ones(3,1);BW2=erode(BW1,SE);imshow(BW1)figure,imshow

7、(BW2)相关命令:bwmorph,dilate附录MATLAB图像处理命令33328.fft2功能:进行二维快速傅里叶变换.语法:B=fft2(A)B=fft2(A,m,n)举例loadimdemossaturn2imshow(saturn2)B=fftshift(fft2(saturn2));imshow(log(abs(B)),[]),colormap(jet(64)),colorbar相关命令:dct2,fftshift,idct2,ifft229.fftn功能:进行n维快速傅里叶变换.语法:B=fftn(A)B=

8、fftn(A,siz)相关命令:fft2,ifftn30.fftshiftMATLAB高级应用——图形及影像处理334功能:把快速傅里叶变换的DC组件移到光谱中心.语法:B=fftshift(A)举例B=fftn(A);C=fftshift(B);相关命令:fft2,fftn,ifftshift31.f

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。