Hough Lines Transform. \n
* It will detect white lines in a black background. So the source image must be a IM_BINARY image
* with the white lines of interest enhanced. The better the threshold with the white lines the better
* the line detection. \n
* The target image must have IM_GRAY, IM_INT, hg_width=180, hg_height=2*rmax+1,
* where rmax is the image diagonal/2 (rmax = srqrt(width*width + height*height)). \n
* The hough transform defines "cos(theta) * X + sin(theta) * Y = rho" and the parameters are in the interval: \n
* theta = "0 .. 179", rho = "-hg_height/2 .. hg_height/2" .\n
* Where rho is the perpendicular distance from the center of the image and theta the angle with the normal.
* So do not confuse theta with the line angle, they are perpendicular. \n
* Returns zero if the counter aborted. \n
* Inspired from ideas in XITE, Copyright 1991, Blab, UiO \n
* http://www.ifi.uio.no/~blab/Software/Xite/ \n
* Not using OpenMP when enabled.
*
* \verbatim im.ProcessHoughLines(src_image: imImage, dst_image: imImage) -> counter: boolean [in Lua 5] \endverbatim
* \verbatim im.ProcessHoughLinesNew(image: imImage) -> counter: boolean, new_image: imImage [in Lua 5] \endverbatim
* \ingroup transform
Hough Lines Transform. \n * It will detect white lines in a black background. So the source image must be a IM_BINARY image * with the white lines of interest enhanced. The better the threshold with the white lines the better * the line detection. \n * The target image must have IM_GRAY, IM_INT, hg_width=180, hg_height=2*rmax+1, * where rmax is the image diagonal/2 (rmax = srqrt(width*width + height*height)). \n * The hough transform defines "cos(theta) * X + sin(theta) * Y = rho" and the parameters are in the interval: \n * theta = "0 .. 179", rho = "-hg_height/2 .. hg_height/2" .\n * Where rho is the perpendicular distance from the center of the image and theta the angle with the normal. * So do not confuse theta with the line angle, they are perpendicular. \n * Returns zero if the counter aborted. \n * Inspired from ideas in XITE, Copyright 1991, Blab, UiO \n * http://www.ifi.uio.no/~blab/Software/Xite/ \n * Not using OpenMP when enabled. * * \verbatim im.ProcessHoughLines(src_image: imImage, dst_image: imImage) -> counter: boolean [in Lua 5] \endverbatim * \verbatim im.ProcessHoughLinesNew(image: imImage) -> counter: boolean, new_image: imImage [in Lua 5] \endverbatim * \ingroup transform