ImageTColor, TDepthHoughCircles Method |
http://www.emgu.com
First apply Canny Edge Detector on the current image,
then apply Hough transform to find circles
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic CircleF[][] HoughCircles(
TColor cannyThreshold,
TColor accumulatorThreshold,
double dp,
double minDist,
int minRadius = 0,
int maxRadius = 0
)
Public Function HoughCircles (
cannyThreshold As TColor,
accumulatorThreshold As TColor,
dp As Double,
minDist As Double,
Optional minRadius As Integer = 0,
Optional maxRadius As Integer = 0
) As CircleF()()
public:
array<array<CircleF>^>^ HoughCircles(
TColor cannyThreshold,
TColor accumulatorThreshold,
double dp,
double minDist,
int minRadius = 0,
int maxRadius = 0
)
member HoughCircles :
cannyThreshold : 'TColor *
accumulatorThreshold : 'TColor *
dp : float *
minDist : float *
?minRadius : int *
?maxRadius : int
(* Defaults:
let _minRadius = defaultArg minRadius 0
let _maxRadius = defaultArg maxRadius 0
*)
-> CircleF[][]
Parameters
- cannyThreshold
- Type: TColor
The higher threshold of the two passed to Canny edge detector (the lower one will be twice smaller). - accumulatorThreshold
- Type: TColor
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 - dp
- Type: SystemDouble
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: SystemDouble
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 - minRadius (Optional)
- Type: SystemInt32
Minimal radius of the circles to search for - maxRadius (Optional)
- Type: SystemInt32
Maximal radius of the circles to search for
Return Value
Type:
CircleFThe circle detected for each of the channels
See Also