This interface holds a collection of contour detection results.
Usually you get the LContourResults object from the ILContourDetector::Detect() as detection result. You can then use this interface to access individual result and draw the results on graphics windows.
Example Code
C++
ILContourResultsPtr contourResults;
LPVErrorCode err = contourDetector->Detect(img, roi, &contourResults);
if (err != LPVErrorCode::LPVNoError) return;
int c = contourResults->Count();
for (int i = 0; i < c; ++i) {
ILContourResultPtr result = contourResults->Item(i);
}
LPVErrorCode
This enumeration represents the type of a LPV function error.
Definition: LPVCore.idl:530
C#
LContourResults contourResults;
LPVErrorCode err = contourDetector.Detect(img, roi, out contourResults);
int c = contourResults.Count();
for (int i = 0; i < c; ++i) {
LContourResult result = contourResults.Item(i);
}
COM
ILContourResultsPtr contourResults;
LPVErrorCode err = contourDetector->Detect(img, roi, &contourResults);
if (err != LPVErrorCode::LPVNoError) return;
int c = contourResults->Count();
for (int i = 0; i < c; ++i) {
ILContourResultPtr result = contourResults->Item(i);
}