傻大方


首页 > 学习 >

东北大学|东北大学满分matlab计算机图像处理实验报告( 二 )



按关键词阅读: 报告 处理 计算机 实验 matlab 图像 满分 东北大学


prewittcat=filter2(fspecial(prewitt),graycat);
laplaciancat=filter2(fs 。

11、pecial(laplacian),graycat);
subplot(2,2,1);
subimage(graycat);
title(原图);
subplot(2,2,2);
subimage(sobelcat);
title(sobel猫);
subplot(2,2,3);
subimage(prewittcat);
title(prewitt猫);
subplot(2,2,4);
subimage(laplaciancat);
title(laplacian猫);
效果:4、对一幅灰度图像进行模糊处理 , 然后进行逆滤波、维纳滤波与约束最小二乘方滤波复原实验 。
代码:PSF=fspecial(motion,30,45 。

12、);
blurcat=imfilter(graycat,PSF,circular,conv);
subplot(1,2,1);
subimage(graycat);
title(原图);
subplot(1,2,2);
subimage(blurcat);
title(运动糊化的图);
效果:逆滤波代码:wnr1cat=deconvwnr(blurcat,PSF);
%逆滤波 subplot(1,2,1);
subimage(blurcat);
subplot(1,2,2);
subimage(wnr1cat);
效果:维纳滤波代码:noise=0.1*randn(size(graycat);
blurnoic 。

13、at=imadd(blurcat,im2uint8(noise);
wnr2cat=deconvwnr(blurnoicat,PSF);
NSR=sum(noise(:).2)/sum(im2double(graycat(:).2);
wnr3cat=deconvwnr(blurnoicat,PSF,NSR);
subplot(1,3,1);
subimage(blurnoicat);
title(运动加噪声猫);
subplot(1,3,2);
subimage(wnr2cat);
title(维纳滤波猫);
subplot(1,3,3);
subimage(wnr3cat);
title(真实信噪比维 。

14、纳恢复猫);
效果:5、应用MATLAB语言编写实现一幅图像的旋转、剪切和缩放;旋转代码:rotatcat=imrotate(graycat,45,nearest);
rotatcat1=imrotate(graycat,45,bilinear);
rotatcat2=imrotate(graycat,45,bicubic);
subplot(2,2,1);
subimage(graycat);
title(原猫);
subplot(2,2,2);
subimage(rotatcat);
title(最邻域旋转猫);
subplot(2,2,3);
subimage(rotatcat1);
title(双线 。

15、性旋转猫);
subplot(2,2,4);
subimage(rotatcat2);
title(双立方旋转猫);
效果:剪切代码:imshow(graycat);
cropcat=imcrop(graycat,100,100,200,200);
subplot(1,2,1);
imshow(graycat);
title(多啦阿萌);
subplot(1,2,2);
imshow(cropcat);
title(剪切猫);
效果:缩放代码:minimizecat=imresize(graycat,0.2,nearest);
magnifycat=imresize(minimizecat,3,bilinea 。

16、r);
imshow(minimizecat);
imshow(magnifycat);
效果:6. 对一幅图像进行几何失真处理后利用连接点实施图像配准复原 。
代码:unrealcat=imrotate(graycat,45,bilinear);
cpselect(unrealcat,graycat);
Variables have been created in the current workspace. input_points_corr = cpcorr(input_points,base_points,unrealcat,graycat);
Tlinear = cp2tform(inpu 。

17、t_points,base_points,linear conformal);
Taffine = cp2tform(input_points,base_points,affine);
Tprojective = cp2tform(input_points,base_points,projective);
Tpolynomial2 = cp2tform(input_points,base_points,polynomial,2);
Tpolynomial3 = cp2tform(input_points,base_points,polynomial,3);
Tpolynomial4 = cp2tform 。

18、(input_points,base_points,polynomial,4);
Tpiecewise = cp2tform(input_points,base_points,piecewise linear);
Tlwm = cp2tform(input_points,base_points,lwm);
imshow(imtransform(input,Tpolynomial2);
效果:1、 选点图:2、 配准复原图:7、对一幅图像进行边缘提取 。
代码:catedge=edge(graycat,canny);
subplot(1,2,1);
subimage(graycat);
subplot(1,2,2);
subimage(catedge);
imshow(catedge);
效果: 。


稿源:(未知)

【傻大方】网址:/a/2021/0822/0023896601.html

标题:东北大学|东北大学满分matlab计算机图像处理实验报告( 二 )


上一篇:室内设计|室内设计毕业论文

下一篇:精编|【精编】写端午节的作文800字合集五篇