Matlab sisteminde bulunan görsel üzerinde filtre uygulama.
resim=imread(‘eight.tif’);
sobel=edge(resim,’sobel’);
prewitt=edge(resim,’prewitt’);
roberts=edge(resim,’roberts’);
canny=edge(resim,’canny’);
resimt=imread(‘eight.tif’);
sobelt=edge(resim,’sobel’,0.2);
prewittt=edge(resim,’prewitt’,0.2);
robertst=edge(resim,’roberts’,0.2);
cannyt=edge(resim,’canny’,0.2);
subplot(3,3,5);imshow(resim);title(‘resim’);
subplot(3,3,2);imshow(sobel);title(‘sobel’);
subplot(3,3,4);imshow(prewitt);title(‘prewitt’);
subplot(3,3,6);imshow(roberts);title(‘roberts’);
subplot(3,3,8);imshow(canny);title(‘canny’);
subplot(3,3,1);imshow(sobelt);title(‘sobelt’);
subplot(3,3,3);imshow(prewittt);title(‘prewittt’);
subplot(3,3,7);imshow(robertst);title(‘robertst’);
subplot(3,3,9);imshow(cannyt);title(‘cannyt’);
%%thresh=graythresh(resim); %% Bilgisayar üzerinden thresh değerine bakma
resim2=bwareaopen(sobel,50);

Filtrelerin çıktısı tek bir figure üzerinden gösterilmiştir.