HoughCircles function

Mat HoughCircles(
  1. InputArray image,
  2. int method,
  3. double dp,
  4. double minDist, {
  5. OutputArray? circles,
  6. double param1 = 100,
  7. double param2 = 100,
  8. int minRadius = 0,
  9. int maxRadius = 0,
})

HoughCircles finds circles in a grayscale image using the Hough transform. The only "method" currently supported is HoughGradient. If you want to pass more parameters, please see HoughCirclesWithParams.

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

Implementation

Mat HoughCircles(
  InputArray image,
  int method,
  double dp,
  double minDist, {
  OutputArray? circles,
  double param1 = 100,
  double param2 = 100,
  int minRadius = 0,
  int maxRadius = 0,
}) {
  circles ??= Mat.empty();
  cvRun(
    () => cimgproc.HoughCirclesWithParams(
      image.ref,
      circles!.ref,
      method,
      dp,
      minDist,
      param1,
      param2,
      minRadius,
      maxRadius,
    ),
  );
  return circles;
}