small example demonstrating the ProjectionParametersIO
- Author
- woelk 12/2006
#include <Geometry/ProjectionParametersIO.hh>
#include <iostream>
using namespace BIAS;
using namespace std;
int main (int argc, char* argv[])
{
vector<CameraData> vcd, vcd2;
#ifdef BIAS_HAVE_XML2
if (argc<2) {
cout <<"no file given, using some build-in data"<<endl;
}
else {
cout << "Error reading file:" << argv[1] << endl;
} else {
cout << "Read file:" << argv[1] << endl;
}
}
if (argc<3) {
cout <<"no rig file given, using some build-in data"<<endl;
} else {
BIASASSERT(argc>1);
cout << "Error reading file:" << argv[1] << endl;
} else {
cout << "Read file:" << argv[1] << endl;
}
}
cout << "File contents: ";
if (argc>1)
cout<<argv[1] ;
cout << "-------------------" << endl;
cout << cd;
cout <<"CamDataTest.xml created" << endl;
cout << "File contents: " << "CamDataTest.xml"
<< "-------------------" << endl;
cout << cd2;
cout <<"CamDataTestRewrite.xml created" << endl;
cout << "File contents: ";
if (argc>2)
cout<<argv[2];
cout<< "-------------------" << endl;
cout << vcd;
cout <<"RigDataTest.xml created" << endl;
cout << "File contents: " << "RigDataTest.xml"
<< "-------------------" << endl;
cout << vcd2;
cout <<"RigDataTestRewrite.xml created" << endl;
#endif
return 0;
}