http://www.emgu.com
Finds circles in a grayscale image using the Hough transform.

Namespace: Emgu.CV.OpenCL
Assembly: Emgu.CV.OpenCL (in Emgu.CV.OpenCL.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static void HoughCircles(
	IntPtr src,
	IntPtr circles,
	HOUGH_TYPE method,
	float dp,
	float minDist,
	int cannyThreshold,
	int votesThreshold,
	int minRadius,
	int maxRadius,
	int maxCircles
)
Visual Basic
Public Shared Sub HoughCircles ( 
	src As IntPtr,
	circles As IntPtr,
	method As HOUGH_TYPE,
	dp As Single,
	minDist As Single,
	cannyThreshold As Integer,
	votesThreshold As Integer,
	minRadius As Integer,
	maxRadius As Integer,
	maxCircles As Integer
)
Visual C++
public:
static void HoughCircles(
	IntPtr src, 
	IntPtr circles, 
	HOUGH_TYPE method, 
	float dp, 
	float minDist, 
	int cannyThreshold, 
	int votesThreshold, 
	int minRadius, 
	int maxRadius, 
	int maxCircles
)
F#
static member HoughCircles : 
        src : IntPtr * 
        circles : IntPtr * 
        method : HOUGH_TYPE * 
        dp : float32 * 
        minDist : float32 * 
        cannyThreshold : int * 
        votesThreshold : int * 
        minRadius : int * 
        maxRadius : int * 
        maxCircles : int -> unit 

Parameters

src
Type: System..::..IntPtr
8-bit, single-channel grayscale input image.
circles
Type: System..::..IntPtr
Output vector of found circles. Each vector is encoded as a 3-element floating-point vector (x, y, radius)
method
Type: Emgu.CV.CvEnum..::..HOUGH_TYPE
Detection method to use. Currently, the only implemented method is CV_HOUGH_GRADIENT , which is basically 21HT
dp
Type: System..::..Single
Inverse ratio of the accumulator resolution to the image resolution. For example, if dp=1 , the accumulator has the same resolution as the input image. If dp=2 , the accumulator has half as big width and height.
minDist
Type: System..::..Single
Minimum distance between the 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.
cannyThreshold
Type: System..::..Int32
The higher threshold of the two passed to the ocl::Canny() edge detector (the lower one is twice smaller).
votesThreshold
Type: System..::..Int32
The accumulator threshold for the circle centers at the detection stage. The smaller it is, the more false circles may be detected.
minRadius
Type: System..::..Int32
Minimum circle radius.
maxRadius
Type: System..::..Int32
Maximum circle radius.
maxCircles
Type: System..::..Int32
Maximum number of output circles.

See Also