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