HoughLines function

Mat HoughLines(
  1. InputArray image,
  2. double rho,
  3. double theta,
  4. int threshold, {
  5. OutputArray? lines,
  6. double srn = 0,
  7. double stn = 0,
  8. double min_theta = 0,
  9. double max_theta = CV_PI,
})

HoughLines implements the standard or standard multi-scale Hough transform algorithm for line detection. For a good explanation of Hough transform, see: http:///homepages.inf.ed.ac.uk/rbf/HIPR2/hough.htm

For further details, please see: http:///docs.opencv.org/master/dd/d1a/group__imgproc__feature.html#ga46b4e588934f6c8dfd509cc6e0e4545a

Implementation

Mat HoughLines(
  InputArray image,
  double rho,
  double theta,
  int threshold, {
  OutputArray? lines,
  double srn = 0,
  double stn = 0,
  double min_theta = 0,
  double max_theta = CV_PI,
}) {
  lines ??= Mat.empty();
  cvRun(
    () => cimgproc.cv_HoughLines(
      image.ref,
      lines!.ref,
      rho,
      theta,
      threshold,
      srn,
      stn,
      min_theta,
      max_theta,
      ffi.nullptr,
    ),
  );
  return lines;
}