Cv. HoughCircles Method (CvArr, CvMat, HoughCirclesMethod, Double, Double, Double, Double) OpenCvSharp Class Library
Finds circles in grayscale image using Hough transform.

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

public static CvSeq<CvCircleSegment> HoughCircles(
	CvArr image,
	CvMat circleStorage,
	HoughCirclesMethod method,
	double dp,
	double minDist,
	double param1,
	double param2
)

Parameters

image
Type: OpenCvSharp.CvArr
The input 8-bit single-channel grayscale image.
circleStorage
Type: OpenCvSharp.CvMat
The storage for the circles detected. It can be a memory storage or single row/single column matrix (CvMat*) of type CV_32FC3, to which the circles' parameters are written.
method
Type: OpenCvSharp.HoughCirclesMethod
Currently, the only implemented method is CV_HOUGH_GRADIENT, which is basically 21HT
dp
Type: System.Double
Resolution of the accumulator used to detect centers of the circles. For example, if it is 1, the accumulator will have the same resolution as the input image, if it is 2 - accumulator will have twice smaller width and height, etc.
minDist
Type: System.Double
Minimum distance between centers of the detected circles. If the parameter is too small, multiple neighbor circles may be falsely detected in addition to a true one. If it is too large, some circles may be missed.
param1
Type: System.Double
The first method-specific parameter. In case of CV_HOUGH_GRADIENT it is the higher threshold of the two passed to Canny edge detector (the lower one will be twice smaller).
param2
Type: System.Double
The second method-specific parameter. In case of CV_HOUGH_GRADIENT it is accumulator threshold at the center detection stage. The smaller it is, the more false circles may be detected. Circles, corresponding to the larger accumulator values, will be returned first.

Return Value

Type: CvSeq< CvCircleSegment>

[Missing <returns> documentation for "M:OpenCvSharp.Cv.HoughCircles(OpenCvSharp.CvArr,OpenCvSharp.CvMat,OpenCvSharp.HoughCirclesMethod,System.Double,System.Double,System.Double,System.Double)"]

See Also

Reference