Skip to content

Instantly share code, notes, and snippets.

@mstrYoda
Created November 2, 2016 08:20
Show Gist options
  • Save mstrYoda/ba766055c96f3f96aba8ce191727c61c to your computer and use it in GitHub Desktop.
Save mstrYoda/ba766055c96f3f96aba8ce191727c61c to your computer and use it in GitHub Desktop.
matlab filter - korelasyon
f=imread('coins.png');
kirli = imnoise(f,'salt & pepper',0.2);
%avarage
haverageFiltresi = fspecial('average',3);
averageFiltresi = imfilter(f,haverageFiltresi,'replicate');
%unsharped
unsharpFilter = fspecial('unsharp');
unsharped = imfilter(f,unsharpFilter);
%medyan filter
medFilt = medfilt2(kirli);
%korelasyon = corr2(kirli,medFilt);
figure;
subplot(3,2,1);imshow(f);title('original');
subplot(3,2,2);imshow(kirli);title('kirli');
subplot(3,2,3);imshow(averageFiltresi);title('avarage');
subplot(3,2,4);imshow(unsharped);title('unsharped');
%subplot(3,2,5);imshow(korelasyon);title('medyan korelasyon');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment