برنامه آشکارسازی لبه ها با sobel و canny در متلب
سه شنبه, ۲۶ آبان ۱۳۹۴، ۱۱:۲۰ ق.ظ
برنامه را در mfile کپی کنید
%ashkarsazi labe ba sobel va canny%
clc
clear all
a=imread('peppers.png');
subplot(2,2,1),imshow(a),title('orginal')
b=rgb2gray(a);
subplot(2,2,2),imshow(b),title('gray')
c=edge(b,'sobel');
subplot(2,2,3),imshow(c),title('sobel')
c=edge(b,'sobel');
subplot(2,2,4),imshow(c),title('canny')