oa::image::hough_lines
Standard Hough line transform per plane, following HoughLines: pixels above edge_threshold vote into a (theta x rho) accumulator quantized by theta_step (degrees over [0, 180)) and rho_step. Accumulator cells reaching threshold votes that are strict local maxima in their 3x3 theta-rho neighborhood emit lines. The F32 output carries plane x max_lines x 3 rows of (rho, theta degrees, votes) in compacted unsorted order; unused rows are zero. Errors Returns an error unless the image is a nonempty FP32 NCHW/CHW image, edge_threshold/rho_step/theta_step are finite, rho_step/theta_step are positive, theta_step does not exceed 180, and max_lines is nonzero.
Function Documentation
Standard Hough line transform per plane, following HoughLines: pixels above edge_threshold vote into a (theta x rho) accumulator quantized by theta_step (degrees over [0, 180)) and rho_step. Accumulator cells reaching threshold votes that are strict local maxima in their 3x3 theta-rho neighborhood emit lines. The F32 output carries plane x max_lines x 3 rows of (rho, theta degrees, votes) in compacted unsorted order; unused rows are zero. Errors Returns an error unless the image is a nonempty FP32 NCHW/CHW image, edge_threshold/rho_step/theta_step are finite, rho_step/theta_step are positive, theta_step does not exceed 180, and max_lines is nonzero.