Sorry if I'm asking something obvious, since I'm new to CUDA processing.
When I tried to convert my code that uses OpenCV's function HoughLinesP() with the cuda module, I found the closest equivalent of it to be cuda::HoughSegmentDetector.detect().
However, the object lacks the threshold (vote count) parameter HoughLinesP() has, which makes the result very different. How should I recreate HoughLinesP() with an arbitrary threshold?
Example:
- original
lines = cv2.HoughLinesP(image, 1, np.pi/180, threshold, minLineLength=len, maxLineGap=gap)
- cuda
detector = cv.cuda.createHoughSegmentDetector(1, np.pi/180, len, gap) # threshold?
lines = detector.detect(image)