houghLine

[ XITE Reference Manual | XITE home ]

Name

houghLine - Hough transform for line detection

Syntax

 #include <xite/hough.h>

 BiffStatus houghLine( IBAND input,
    IUS_BAND output );

Description

Performs Hough transform for line detection. All pixels above zero in the input band are transformed to (theta,rho) space in the output band. The input band may have any size, while the output band currently must be at least
 xsize: 180
 ysize: 2 * (inputXsize*inputXsize +
             inputYsize*inputYsize + 1)
This limitation may be removed in future versions.

Notice that band x coordinates 1..180 correspond to angles theta = 0 .. 179, and y coordinates 1..YSIZE correspond to rho = -(YSIZE/2) .. YSIZE/2.

Restrictions

input must have pixel type unsigned byte. output must have pixel type unsigned short.

Return value

 0 - OK
 1 - bad input pixel type
 2 - bad output pixel type
 3 - bad band sizes

Author

Tor Lønnestad, BLAB, Ifi, UiO