Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

fvutil.h File Reference

Go to the source code of this file.

Functions

MatchesfindMatches (Scene &s0, Scene &s1, float magRadius, float improvement)
double distSq (Coords &c0, Coords &c1)


Function Documentation

double distSq Coords c0,
Coords c1
 

Matches& findMatches Scene s0,
Scene s1,
float  magRadius,
float  improvement
 

  //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() <<" : " ;


Generated on Mon Jun 27 14:54:29 2005 for OPENVIDIA by  doxygen 1.4.0