getangle - gradient direction of edges
The function getangle obtains the gradient direction theta from images yielded from convolution with gradient masks in direction x and y (DeltaX and DeltaY, respectively).
initial_dir = PWD;
chdir (SIPDIR + 'images');
Img = imread('disks.bmp');
xbasc()
imshow(Img,2);
Dx = edge(Img,thresh=-1, direction='horizontal');
Dy = edge(Img,thresh=-1, direction='vertical');
t = getangle(Dx,Dy);
imshow(t,[])
chdir(initial_dir);
http://siptoolbox.sourceforge.net
edge,