Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Görüntünün Sınır Eğrisini Çıkaran Filtreler (Matlab) -- http://www.bulentsiyah.com/goruntunun-sinir-egrisini-cikaran-filtreler-matlab/
% Sınır Bulma Filtreleri
%(1.Log Filtresi, 2.Canny Filtresi, 3.Roberts Filtresi,
% 4.Prewitt Filtresi, 5.Sobel Filtresi, 6.Laplace Filtresi)
ResimOrjinal=imread('eight.tif');
logFiltresi=edge(ResimOrjinal,'log');
cannyFiltresi=edge(ResimOrjinal,'canny');
robertsFiltresi=edge(ResimOrjinal,'roberts');
prewittFiltresi=edge(ResimOrjinal,'prewitt');
sobelFiltresi=edge(ResimOrjinal,'sobel');
hLaplaceFiltresi=fspecial('laplacian');
%ResimOrjinal=im2double(ResimOrjinal);
laplaceFiltresi=imfilter(ResimOrjinal,hLaplaceFiltresi,'replicate');
figure;
subplot(3,3,2);
imshow(ResimOrjinal);
title('Resmin Orjinal Hali');
subplot(3,3,4);
imshow(logFiltresi);
title('1.Log Filtresi');
subplot(3,3,5);
imshow(cannyFiltresi);
title('2.Canny Filtresi');
subplot(3,3,6);
imshow(robertsFiltresi);
title('3.Roberts Filtresi');
subplot(3,3,7);
imshow(prewittFiltresi);
title('4.Prewitt Filtresi');
subplot(3,3,8);
imshow(sobelFiltresi);
title('5.Sobel Filtresi');
subplot(3,3,9);
imshow(laplaceFiltresi);
title('6.Laplace Filtresi');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.