32 #include <Base/Common/BIASpragma.hh>
41 #include <Base/Math/Vector3.hh>
42 #include <Base/Math/Matrix3x3.hh>
43 #include <Base/Math/BogIO.hh>
49 int main(
int argc,
char** argv){
50 cout<<
"started "<<argv[0]<<endl;
51 #ifdef BIAS_TESTS_DATA
52 string filename(BIAS_TESTS_DATA
"calib01.bog");
54 string filename(
"calib01.bog");
55 cout<<
"BIAS_TESTS_DATA not defined."<<endl;
58 if (argc>1) filename=argv[1];
59 cout<<
"using filename "<<filename<<endl;
72 if (0!=
LoadBogK(filename, K))
return -3;
77 const double v[3] = { -317.4137573 , 0.4055223 , -3.9081306 };
78 const double eps=1E-10;
79 for (
unsigned int i=0; i<3; i++) {
80 if (fabs(v[i] - C.
GetData()[i]) >eps){
81 cout<<
"Error: mismatch for element "<<i<<
" : "<<endl
82 <<
" should be: "<<v[i]
83 <<
" but read : "<<C.
GetData()[i]
88 cout<<
"done with result="<<result<<endl;
int LoadBogTC(const std::string &filename)
reads the TC part of a BOG file which is used by Daimler Chrysler for storing Camera center position...
const T * GetData() const
get the data pointer the member function itself is const (before {..}) because it doesn't change the ...
int LoadBogK(const std::string &filename, Matrix3x3< T > &mat)
int LoadBogRC(const std::string &filename, Matrix3x3< T > &mat)