Skip to content

cuda::HoughSegmentDetector and HoughLinesP (lack of threshold) #3023

@747

Description

@747

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions