34 #include <Geometry/ProjectionParametersFactory.hh>
40 int main(
int argc,
char *argv[])
44 cerr <<
"usage: \n"<<argv[0]<<
" <projection parameters type>\n"
45 <<
"\nvalid types are: ... "<<endl;
48 for (
unsigned i=0; i<names.size(); i++){
49 cout << names[i] << endl;
56 cerr <<
"error creating \""<<argv[1]<<
"\"\n";
65 cout <<
"created projection parameters: "<<*ppb<<endl;
67 oss << argv[1]<<
".xml";
73 cerr <<
"error writing \""<<oss.str()<<
"\"\n";
76 cout <<
"XMLWrite wrote \""<<oss.str()<<
"\"\n";
79 cout <<
"read projection parameters: "<<*read<<endl;
82 cout<<
"did not XMLWrite because BIAS_HAVE_XML2 not available."<<endl;
ProjectionParametersBase * Create(const std::string &className)
Creates a projection parameters object by a class name.
ProjectionParametersBase * Load(const std::string &fileName)
Loads a projection parameters object from a file.
virtual void SetQ(const BIAS::Quaternion< double > &Q)
Set orientation from unit quaternion Q.
int XMLWrite(const std::string &Filename, int CompressionLevel=0, bool AutoAddCompressionSuffix=true, std::string encoding="UTF-8") const
call this to add the class to a new xml tree and write it to the file Filename.
void GetValidClassNames(std::vector< std::string > &names) const
Camera parameters which define the mapping between rays in the camera coordinate system and pixels in...
virtual void SetC(const BIAS::Vector3< double > &C)
Set projection center.