Skip to content

Instantly share code, notes, and snippets.

@mstrYoda
Created October 26, 2016 08:36
Show Gist options
  • Save mstrYoda/721cc755ee51bba3f704393ba35ad086 to your computer and use it in GitHub Desktop.
Save mstrYoda/721cc755ee51bba3f704393ba35ad086 to your computer and use it in GitHub Desktop.
matlab basic sobel and prewitt edge detection
f=imread('coins.png');
subplot(2,4,1);imshow(f);
bw1 = edge(f,'prewitt');
subplot(2,4,2);imshow(bw1);
bw2 = edge(f,'sobel');
subplot(2,4,3);imshow(bw2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment