2011-08-15 15:03:59 +02:00
|
|
|
#include <fstream>
|
|
|
|
#include "camera.hpp"
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
using namespace cv;
|
|
|
|
|
|
|
|
|
2011-08-16 14:36:11 +02:00
|
|
|
CameraParams::CameraParams() : focal(1), R(Mat::eye(3, 3, CV_64F)), t(Mat::zeros(3, 1, CV_64F)) {}
|
2011-08-15 15:03:59 +02:00
|
|
|
|
2011-08-16 14:36:11 +02:00
|
|
|
CameraParams::CameraParams(const CameraParams &other) { *this = other; }
|
2011-08-15 15:03:59 +02:00
|
|
|
|
2011-08-16 14:36:11 +02:00
|
|
|
const CameraParams& CameraParams::operator =(const CameraParams &other)
|
2011-08-15 15:03:59 +02:00
|
|
|
{
|
2011-08-16 14:36:11 +02:00
|
|
|
focal = other.focal;
|
|
|
|
R = other.R.clone();
|
|
|
|
t = other.t.clone();
|
|
|
|
return *this;
|
2011-08-15 15:03:59 +02:00
|
|
|
}
|