HoughLinesP function

Mat HoughLinesP(
  1. InputArray image,
  2. double rho,
  3. double theta,
  4. int threshold, {
  5. OutputArray? lines,
  6. double minLineLength = 0,
  7. double maxLineGap = 0,
})

HoughLinesP implements the probabilistic 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#ga8618180a5948286384e3b7ca02f6feeb

Implementation

Mat HoughLinesP(
  InputArray image,
  double rho,
  double theta,
  int threshold, {
  OutputArray? lines,
  double minLineLength = 0,
  double maxLineGap = 0,
}) {
  lines ??= Mat.empty();
  cvRun(
    () => cimgproc.HoughLinesPWithParams(
      image.ref,
      lines!.ref,
      rho,
      theta,
      threshold,
      minLineLength,
      maxLineGap,
    ),
  );
  return lines;
}