Skip to content

Instantly share code, notes, and snippets.

@ritwikraha
Created January 16, 2020 18:57
Show Gist options
  • Save ritwikraha/bc3ba2a77970db35f8a82c960ecc95eb to your computer and use it in GitHub Desktop.
Save ritwikraha/bc3ba2a77970db35f8a82c960ecc95eb to your computer and use it in GitHub Desktop.
se = strel(3,3);
basic_gradient = imdilate(I,se)- imerode(I,se);
external_gradient= I-basic_gradient;
peakpsnr = psnr(external_gradient,I);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment