opencv/modules/stitching/camera.cpp

19 lines
428 B
C++
Raw Normal View History

#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-16 14:36:11 +02:00
CameraParams::CameraParams(const CameraParams &other) { *this = other; }
2011-08-16 14:36:11 +02:00
const CameraParams& CameraParams::operator =(const CameraParams &other)
{
2011-08-16 14:36:11 +02:00
focal = other.focal;
R = other.R.clone();
t = other.t.clone();
return *this;
}