RegVis: if calibration is not found, local features matching using guess is not done, global matching is done instead. CameraModel/StereoCameraModel: added imageSize argument to constructors

This commit is contained in:
matlabbe
2016-03-09 17:15:05 -05:00
parent 49b5514319
commit 0f477d6853
5 changed files with 41 additions and 15 deletions
+6 -2
View File
@@ -67,7 +67,9 @@ CameraModel::CameraModel(
double cx,
double cy,
const Transform & localTransform,
double Tx) :
double Tx,
const cv::Size & imageSize) :
imageSize_(imageSize),
K_(cv::Mat::eye(3, 3, CV_64FC1)),
localTransform_(localTransform)
{
@@ -99,8 +101,10 @@ CameraModel::CameraModel(
double cx,
double cy,
const Transform & localTransform,
double Tx) :
double Tx,
const cv::Size & imageSize) :
name_(name),
imageSize_(imageSize),
K_(cv::Mat::eye(3, 3, CV_64FC1)),
localTransform_(localTransform)
{