Public Member Functions | |
tlHough (int sWidth, int sHeight, float angIncr=0.0f) | |
virtual | ~tlHough () |
int | setParam (int sWidth, int sHeight, float angIncr=0.0f) |
int | setAngularIncrement (float angIncr) |
int | extract (tlImage *image, int lineCount=1) |
int | getLineCount () |
tlLine * | getLine (int index) |
tlLine * | getLinePtr (int index) |
int | getLineCopy (tlLine *line, int index) |
int | getHoughImage (tlImage *image) |
tlHough::tlHough | ( | int | sWidth, | |
int | sHeight, | |||
float | angIncr = 0.0f | |||
) |
Constructor.
sWidth | input image width. | |
sHeight | input image height. | |
angIncr | the angular resolution in [deg]. The default is optimized with respect to the image input size. |
tlHough::~tlHough | ( | ) | [virtual] |
int tlHough::setParam | ( | int | sWidth, | |
int | sHeight, | |||
float | angIncr = 0.0f | |||
) |
Initialize the Hough accumulators for a given input image size.
sWidth | input image width. | |
sHeight | input image height. | |
angIncr | the angular resolution in [deg]. The default is optimized with respect to the image input size. |
int tlHough::setAngularIncrement | ( | float | angIncr | ) |
Configure the angular resolution of the Hough line representation.
angIncr | the angular resolution in [deg]. |
int tlHough::extract | ( | tlImage * | image, | |
int | lineCount = 1 | |||
) |
Extract a given number of lines from a single-channel image. The lines are sorted by weight (i.e. the first one in the list has the more pixels contributing to it).
image | single-channel image to process. | |
lineCount | number of lines to extract. |
int tlHough::getLineCount | ( | ) |
Return the actual number of lines detected.
tlLine * tlHough::getLine | ( | int | index | ) |
Return a pointer to a copy of the detected line at a given index.
index | the ranking of the line to return. |
tlLine * tlHough::getLinePtr | ( | int | index | ) |
Return a pointer to the detected line at a given index.
index | the ranking of the line to retrieve. |
int tlHough::getLineCopy | ( | tlLine * | line, | |
int | index | |||
) |
Return a copy of the detected line at a given index.
line | a pointer to the destination line object. | |
index | the ranking of the line to return. |
int tlHough::getHoughImage | ( | tlImage * | image | ) |
Fill-in a tlImage object with the Hough accumulator. The resuling tlImage is fit for display with tlDisplay.
image | image object to fill-in. |