Go to the source code of this file.
Functions | |
| Matches & | findMatches (Scene &s0, Scene &s1, float magRadius, float improvement) |
| double | distSq (Coords &c0, Coords &c1) |
|
||||||||||||
|
|
|
||||||||||||||||||||
|
//go through the scenes, find al the matches. Matches m = findMatches( *s, *refScene, 1.0, 0.8 );
// RANSAC int bestSupport = 0; Matches bestM; PCT bestP;
for( int i=0; i<100; i++ ) {
//create a PCT from 4 random matches
PCT P = RANSAC( m );
//discard bizarre PCTs
if( P.norm() > 2.0 ) continue;
// find out how well supported this PCT is
Matches supportM = getSupport( P, m, 6 );
// record the best supported PCT.
if( supportM.size() > bestSupport ) {
bestSupport = supportM.size();
bestP = P;
bestM = supportM;
//P.print();
}
}
cerr<<" Best support "<<bestSupport<<" : "<<bestM.size() <<" : " ;
|
1.4.0