利用matlab自带函数快速提取二值图像的图像边缘 bwperim函数

 
clear all;close all;clc;
I = imread('rice.png');
I = im2bw(I);
J = bwperim(I);  % 提取二值图像图像边缘
figure;
subplot(121);imshow(I);title('原二值图像');
subplot(122);imshow(J);title('图像边缘');

 其他提取图像边缘的方法:

利用膨胀和腐蚀提取图像边缘 matlab实现

https://blog.csdn.net/Ibelievesunshine/article/details/100554718

matlab 提取图像轮廓 (图像边缘提取)

https://blog.csdn.net/Ibelievesunshine/article/details/100184985

利用matlab写一个简单的拉普拉斯变换提取图像边缘

https://blog.csdn.net/Ibelievesunshine/article/details/88802853

猜你喜欢

转载自www.cnblogs.com/wojianxin/p/11465031.html