

如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
(精品word)图像锐化matlab算法 (精品word)图像锐化matlab算法 (精品word)图像锐化matlab算法 %常用图像锐化算法 clc clear closeall ima=imread(’132.jpg’);%读入图像 ima=rgb2gray(ima);%转为灰度图像 ima=double(ima); bw1=edge(ima,’sobel’);%sobel算子锐化 figure;subplot(121);imshow(uint8(ima));title('原始图像');%图像显示 subplot(122);imshow(bw1);title(’sobel算子锐化'); bw2=edge(ima,'prewitt');%prewitt算子锐化 figure;subplot(121);imshow(uint8(ima));title(’原始图像'); subplot(122);imshow(bw2);title('prewitt算子锐化'); bw3=edge(ima,'roberts');%roberts算子锐化 figure;subplot(121);imshow(uint8(ima));title(’原始图像'); subplot(122);imshow(bw3);title('roberts算子锐化'); bw4=edge(ima,’log');%log算子锐化 figure;subplot(121);imshow(uint8(ima));title('原始图像’); subplot(122);imshow(bw4);title(’log算子锐化'); bw5=edge(ima,’canny’);%nny算子锐化 figure;subplot(121);imshow(uint8(ima));title('原始图像’); subplot(122);imshow(bw5);title('canny算子锐化’); h1=fspecial('gaussian’,[99]);%gaussian低通滤波器锐化 bw6=imfilter(ima,h1); figure;subplot(121);imshow(uint8(ima));title(’原始图像’); subplot(122);imshow(uint8(bw6));title('gaussian低通滤波器'); h2=fspecial(’laplacian’);%laplacian算子锐化 bw7=imfilter(ima,h1); figure;subplot(121);imshow(uint8(ima));title(’原始图像'); subplot(122);imshow(uint8(bw7));title(’laplacian算子锐化');

17****21
实名认证
内容提供者


最近下载