Example for generating synthetic matches using database , GenSynthMatches
- Author
- MIP
#include <Utils/MatchDataBase.hh>
#include <Utils/GenSynthMatches.hh>
#include <Base/Common/BIASpragma.hh>
#include <iostream>
using namespace BIAS;
using namespace std;
int main(int argc, char *argv[])
{
const string fname="mdb.txt";
std::cout << "original: \n"<<gsm << endl;
mdb.Read(fname);
std::cout << "read: \n"<< mdb << endl;
vector<RMatrixBase> R;
vector<HomgPoint3D> C;
vector<vector<HomgPoint2D> > p, np;
mdb2.SetData(K, R, C, p);
std::cout << "SetData: \n"<< mdb2 <<endl;
std::cout << "SetNormalizedData: \n"<< mdb3 <<endl;
std::cout << "read: "<<boolalpha<<(gsm==mdb)<<endl;
std::cout << "SetData: "<<boolalpha<<(gsm==mdb2)<<endl;
std::cout << "SetNormalizedData: "<<boolalpha<<(gsm==mdb3)<<endl;
return 0;
}