opencv::cudaimgproc

Function create_hough_lines_detector_def

Source
pub fn create_hough_lines_detector_def(
    rho: f32,
    theta: f32,
    threshold: i32,
) -> Result<Ptr<CUDA_HoughLinesDetector>>
Expand description

Creates implementation for cuda::HoughLinesDetector .

§Parameters

  • rho: Distance resolution of the accumulator in pixels.
  • theta: Angle resolution of the accumulator in radians.
  • threshold: Accumulator threshold parameter. Only those lines are returned that get enough votes ( inline formula ).
  • doSort: Performs lines sort by votes.
  • maxLines: Maximum number of output lines.

§Note

This alternative version of create_hough_lines_detector function uses the following default values for its arguments:

  • do_sort: false
  • max_lines: 4096