边缘提取和边缘检测matlab程序代码大全.pdfVIP

  • 56
  • 0
  • 约1.16千字
  • 约 3页
  • 2022-04-14 发布于浙江
  • 举报

边缘提取和边缘检测matlab程序代码大全.pdf

附 录 Part1:对cameraman 原始图像处理的仿真程序: V=0.009; X=imnoise(A,gaussian,0,V); function jingdian I=imread(lenna.bmp); I1=imnoise(I,salt pepper);%添加椒盐噪声,默认值为0.02 figure,imshow(I1);%添加均值为0 、方差0.002 的高斯噪声 title(添加椒盐噪声后原图) B1=edge(I1,roberts); B2=edge(I1,sobel); B3=edge(I1,prewitt); B4=edge(I1,canny); B5=edge(I1,log); subplot(2,3,1); imshow(B1);title(roberts算子检测); subplot(2,3,2); imshow(B2);title(sobel算子检测); subplot(2,3,3); imshow(B3);title(prewi 算子检测); subplot(2,3,4); imshow(B4);title(canny算子检测); subplot(2,3,5) imshow(B5);title(log算子检测); B1=edge

文档评论(0)

1亿VIP精品文档

相关文档