opencv/modules/stitching/src/camera.cpp

17 lines
421 B
C++
Raw Normal View History

#include "precomp.hpp"
using namespace std;
2011-09-05 19:52:30 +08:00
using namespace cv;
2011-09-05 19:52:30 +08:00
cv::CameraParams::CameraParams() : focal(1), R(Mat::eye(3, 3, CV_64F)), t(Mat::zeros(3, 1, CV_64F)) {}
2011-09-05 19:52:30 +08:00
cv::CameraParams::CameraParams(const CameraParams &other) { *this = other; }
2011-09-05 19:52:30 +08:00
const cv::CameraParams& CameraParams::operator =(const CameraParams &other)
{
2011-08-16 20:36:11 +08:00
focal = other.focal;
R = other.R.clone();
t = other.t.clone();
return *this;
}