Skip to content

Instantly share code, notes, and snippets.

@40thieves
Created March 18, 2014 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 40thieves/9630838 to your computer and use it in GitHub Desktop.
Save 40thieves/9630838 to your computer and use it in GitHub Desktop.
ACGV Tutorial 4
im = imread('building.tif');
filter_g = fspecial('gaussian', [5, 5], 3);
filter_la = fspecial('laplacian', 0);
img_g = filter2(filter_g, im) / 255;
building_edge = edge(img_g, 'zerocross', filter_la);
imshow(building_edge)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment