尝试了几种常用的边缘提取方法:

 

BW1=edge(I5,‘sobel’); %sobel 边缘提取

BW2=edge(I5,'roberts'); %roberts边缘提取

BW3=edge(I5,'prewitt'); %prewitt边缘提取

BW4=edge(I5,'log'); %log 边缘提取

BW5=edge(I5,'canny'); %canny 边缘提取

h=fspecial('gaussian',5); %高斯滤波

BW6=edge(I5,'zerocross',[ ],h); %zerocross边缘提取

 

 

 

原图:

      【MATLAB】边缘提取效果

 

 

效果如下:

【MATLAB】边缘提取效果

相关文章:

  • 2022-02-12
  • 2021-05-26
  • 2021-10-16
  • 2021-12-03
  • 2021-06-16
  • 2021-08-15
  • 2022-01-11
  • 2021-08-04
猜你喜欢
  • 2022-12-23
  • 2021-12-15
  • 2022-01-09
  • 2021-08-10
  • 2021-09-23
相关资源
相似解决方案