MatHoughCircles Method OpenCvSharp Class Library
Finds circles in a grayscale image using a Hough transform. The input matrix must be 8-bit, single-channel and grayscale.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public CvCircleSegment[] HoughCircles(
	HoughCirclesMethod method,
	double dp,
	double minDist,
	double param1 = 100,
	double param2 = 100,
	int minRadius = 0,
	int maxRadius = 0
)

Parameters

method
Type: OpenCvSharpHoughCirclesMethod
Currently, the only implemented method is HoughCirclesMethod.Gradient
dp
Type: SystemDouble
The inverse ratio of the accumulator resolution to the image resolution.
minDist
Type: SystemDouble
Minimum distance between the centers of the detected circles.
param1 (Optional)
Type: SystemDouble
The first method-specific parameter. [By default this is 100]
param2 (Optional)
Type: SystemDouble
The second method-specific parameter. [By default this is 100]
minRadius (Optional)
Type: SystemInt32
Minimum circle radius. [By default this is 0]
maxRadius (Optional)
Type: SystemInt32
Maximum circle radius. [By default this is 0]

Return Value

Type: CvCircleSegment
The output vector found circles. Each vector is encoded as 3-element floating-point vector (x, y, radius)
See Also

Reference