#include <Geometry/Projection.hh>
#include <Geometry/ProjectionParametersSpherical.hh>
#include <iostream>
using namespace BIAS;
using namespace std;
int main (int argc, char* argv[])
{
#ifdef BIAS_HAVE_XML2
if (argc<2) {
cout <<"no file given, terminating!"<<endl;
exit(0);
}
else {
cout << "Error reading file:" << argv[1] << endl;
exit(0);
}
}
cout << "Read file:" << argv[1] << endl;
}
cout <<"Projection is: "<<proj1<<endl;
if (pps!=NULL) {
double imgsize1,imgsize2, imgsize3;
cout << "KMatNormal:" << imgsize1 << "x" << imgsize1 << K1 << endl;
cout << "KMatBig:" << imgsize2 << "x" << imgsize1 << K2 << endl;
cout << "KMatSmall:" << imgsize3 << "x" << imgsize1 << K3 << endl;
for (int i=0; i<6; i++) {
-M_PI*double(i)*M_PI/3.0,
cout << "Creating perspective cutout " << i << " with center:"
stringstream ss;
ss << "PerspectiveCutOut" << i << ".xml";
cout << "wrote " << ss.str().c_str() << endl;
}
}
string flat;
cout <<"My Projection flat as string: "<<flat<<endl;
proj1.
XMLWrite(
"PassedThroughString.xml");
p3d[0] = 10.0; p3d[1] = 11.0; p3d[2] = -10.0; p3d[3] = 1.0;
cout <<p3d<<" -> "<<p2d<<endl;
cout <<"CamDataTest.xml created" << endl;
proj2.
XMLWrite(
"CamDataTestRewrite.xml");
cout <<"CamDataTestRewrite.xml created" << endl;
#endif
return 0;
}