وبلاگ تخصصی متلب و نقشه برداری

۲ مطلب با کلمه‌ی کلیدی «برنامه آشکارسازی لبه ها با sobel و canny در متلب» ثبت شده است

برنامه را در mfile کپی کنید

clc
clear all
i=imread('moon.tif');
figure
imshow(i)
j=edge(i,'sobel');
t=edge(i,'canny');
m=edge(i,'log');
figure
imshow(j),title('sobel')
figure
imshow(t),title('canny')
figure
imshow(m),title('log')
subplot(2,2,1),imshow(i),title('asli'),subplot(2,2,2),imshow(j),title('sobel'),subplot(2,2,3),imshow(t),title('canny'),subplot(2,2,4),imshow(m),title('log')

جواد زارع زاده
۲۶ آبان ۹۴ ، ۱۲:۲۳ موافقین ۰ مخالفین ۰ ۰ نظر

برنامه را در 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')

جواد زارع زاده
۲۶ آبان ۹۴ ، ۱۱:۲۰ موافقین ۰ مخالفین ۰ ۰ نظر