This interface holds a collection of pattern matching results.
Usually you get the LMatchResults object from the ILMatch::Match() as matching result. You can then use this interface to access individual result and draw the results on graphics windows.
Example Code
C++
ILMatchResultsPtr matchResults;
LPVErrorCode err = matchTool->Match(img, roi, &matchResults);
if (err != LPVErrorCode::LPVNoError) return;
int c = matchResults->Count();
for (int i = 0; i < c; ++i) {
ILMatchResultPtr result = matchResults->Item(i);
}
LPVErrorCode
This enumeration represents the type of a LPV function error.
Definition: LPVCore.idl:530
C#
LMatchResults matchResults;
LPVErrorCode err = matchTool.Match(img, (LRegion)roi, out matchResults);
int c = matchResults.Count();
for (int i = 0; i < c; ++i) {
LMatchResult result = matchResults.Item(i);
}
COM
ILMatchResultsPtr matchResults;
LPVErrorCode err = matchTool->Match(img, roi, &matchResults);
if (err != LPVErrorCode::LPVNoError) return;
int c = matchResults->Count();
for (int i = 0; i < c; ++i) {
ILMatchResultPtr result = matchResults->Item(i);
}