Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- img = imread('cameraman.tif');
- [Gx, Gy] = imgradientxy(img);
- [Gmag, Gdir] = imgradient(Gx, Gy);
- %Uncomment the code below to visualize Gx and Gy
- %imshowpair(Gx,Gy,'montage')
- %Uncomment the code below to visualize Gmag and Gdir
- %imshowpair(Gmag,Gdir,'montage')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement