riyanris

Untitled

Sep 18th, 2020
1,363
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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')
RAW Paste Data