TIEVisionFeaturesDetector.setMatchMode
Declaration
procedure setMatchMode(mode: TIEVisionFeatureMatchMode; ratio: Double = 0.75); safecall;
Description
Specifies how
detect chooses the good matches.
| Parameter | Description |
| mode | ievMatchBestPercentage keeps the best goodMatchPercentage of the matches. ievMatchRatioTest keeps a match only if its distance is less than ratio x the distance of the second best candidate |
| ratio | Ratio for ievMatchRatioTest (greater than 0 and at most 1). Lower values keep fewer, more reliable matches. Typical values are 0.7 to 0.8 |
Default: ievMatchBestPercentage for ievFeatureORB (the same results as earlier versions), and ievMatchRatioTest with 0.75 for the other algorithms.
Example
detector := IEVisionLib().createFeaturesDetector( ievFeatureORB );
detector.setMatchMode( ievMatchRatioTest, 0.7 );
detector.detect( img1.GetIEVisionImage(), img2.GetIEVisionImage(), 2000 );
See Also
◼setCrossCheck