|
int | AcceptScore [get, set] |
| The accept score used in detection. It defines the minimum score for identifying the edge as a good circle. You may pick a proper score with help of circle score chart. More...
|
|
int | EdgeWidth [get, set] |
| The edge width of the circle used in detection, in 1 ~ 10. Edge width defines the count of pixels along the whole edge transition. Blurred edge indicates larger edge width value to find a stable result. Usually, it's fine to just use default setting (3).
|
|
LPVFindBy | FindBy [get, set] |
| The detection searching strategy. It defines how to select the result circles if there's more than expected circle candidates.
|
|
int | MaxCount [get, set] |
| The maximum of circles to find.
|
|
BOOL | NormScore [get, set] |
| Whether we should normalize the score based on maximum gradient in region.
|
|
LPVPolarity | Polarity [get, set] |
| The detection edge polarity.
Polarity defines the edge transition according to region's direction, black pixels are dark, white pixels are light. More...
|
|
This interface provide functionalities of circle detection.
Circle detector is designed to locate a single or multiple circle edges in given image and inside the annulus region.
The algorithm is real-time and of sub-pixel accuracy, while the limitation is it could only detect concentric circles whose center is near the center of the annulus region. So, to use this detector, you should have a basic idea of the target circles' center and size.
To use this interface, you should create a LCircleDetector object.
Example Code
C++
ILCircleDetectorPtr circleDetector = LCircleDetector::Create();
circleDetector->Polarity = LPVPolarity::LPVPolarityEitherEdge;
LPVErrorCode err = circleDetector->Detect(img, roi, &circleResults);
if (err != LPVErrorCode::LPVNoError) return;
LPVErrorCode
This enumeration represents the type of a LPV function error.
Definition: LPVCore.idl:530
C#
LCircleDetector circleDetector = new LCircleDetector();
circleDetector.Polarity =
LPVPolarity.LPVPolarityEitherEdge;
LPVErrorCode err = circleDetector.Detect(img, (LRotRectRegion)roi, out circleResults);
LPVPolarity
This enumeration represents the polarity of the edge or object to be located.
Definition: LPVCore.idl:1094
COM
ILCircleDetectorPtr circleDetector = LCircleDetector::Create();
circleDetector->Polarity = LPVPolarity::LPVPolarityEitherEdge;
LPVErrorCode err = circleDetector->Detect(img, roi, &circleResults);
if (err != LPVErrorCode::LPVNoError) return;