Example for extracting the K-Matrix from a mip image
,Image,
- Author
- MIP
#include <iostream>
#include <sstream>
#include <Image/Camera.hh>
#include <Base/Image/ImageIO.hh>
#include <Geometry/Projection.hh>
#include <Geometry/ProjectionParametersPerspective.hh>
#include <Base/Geometry/KMatrix.hh>
using namespace BIAS;
using namespace std;
int main(int argc, char** argv) {
if (argc != 2) {
BIASERR("don't know which image to use!/n/n usage: ExampleExtractKFromMipImage <path_to_image>");
BIASABORT;
}
BIASERR("specified image could not be loaded!");
BIASABORT;
}
cout << "image loaded successfully!" << endl;
BIASERR("image contains no valid projection!");
BIASABORT;
}
cout << "getting K... ";
cout << "done!" << endl;
ostringstream filenameK;
filenameK << argv[1] << ".mat";
cout << "saving K as " << filenameK.str() << endl;
return 0;
}