31 #include <Utils/MatchDataBase.hh>
32 #include <Utils/GenSynthMatches.hh>
34 #include <Base/Common/BIASpragma.hh>
40 int main(
int argc,
char *argv[])
45 const string fname=
"mdb.txt";
49 std::cout <<
"original: \n"<<gsm << endl;
54 std::cout <<
"read: \n"<< mdb << endl;
57 vector<RMatrixBase> R;
58 vector<HomgPoint3D> C;
59 vector<vector<HomgPoint2D> > p, np;
64 gsm.GetNormalizedPoints(np);
65 mdb2.SetData(K, R, C, p);
67 std::cout <<
"SetData: \n"<< mdb2 <<endl;
69 mdb3.SetNormalizedData(K, R, C, np);
71 std::cout <<
"SetNormalizedData: \n"<< mdb3 <<endl;
74 std::cout <<
"read: "<<boolalpha<<(gsm==mdb)<<endl;
75 std::cout <<
"SetData: "<<boolalpha<<(gsm==mdb2)<<endl;
76 std::cout <<
"SetNormalizedData: "<<boolalpha<<(gsm==mdb3)<<endl;
class for generating synthetic matches
class for representing matches, used in GenSynthMatches and biasshowsm
This class Param provides generic support for parameters.
K describes the mapping from world coordinates (wcs) to pixel coordinates (pcs).