Advertisement
riyanris

Untitled

Sep 18th, 2020
1,708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.26 KB | None | 0 0
  1. img = imread('cameraman.tif');
  2. [Gx, Gy] = imgradientxy(img);
  3. [Gmag, Gdir] = imgradient(Gx, Gy);
  4. %Uncomment the code below to visualize Gx and Gy
  5. %imshowpair(Gx,Gy,'montage')
  6.  
  7. %Uncomment the code below to visualize Gmag and Gdir
  8. %imshowpair(Gmag,Gdir,'montage')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement