mirror of
https://github.com/opencv/opencv.git
synced 2026-11-09 18:04:29 -06:00
HoughLines, HoughLinesP, and HoughLinesPointSet document that lines are returned when votes > threshold. Because both accumulator votes and threshold are integers, threshold = 0 is the only value that selects 1-vote bins (votes >= 1), as already supported by HoughLinesPointSet, CPU HoughLines, and the OpenCL paths. PR #30286 added CV_CheckGT(threshold, 0) at the HoughLines/HoughLinesP entry points to avoid a divide-by-zero (`nz * numangle / threshold`) in the IPP path. Relax this check to CV_CheckGE(threshold, 0) and guard the IPP fast paths with `threshold > 0` instead (IPP also requires threshold > 0).