This commit is contained in:
matlabbe
2016-12-05 15:53:19 -05:00
parent cd62e67011
commit 6550a52cee
3 changed files with 15 additions and 10 deletions
+5 -2
View File
@@ -180,8 +180,11 @@ void CameraModel::setImageSize(const cv::Size & size)
P_.at<double>(0,2) = ncx;
P_.at<double>(1,2) = ncy;
}
K_.at<double>(0,2) = ncx;
K_.at<double>(1,2) = ncy;
if(!K_.empty())
{
K_.at<double>(0,2) = ncx;
K_.at<double>(1,2) = ncy;
}
}
bool CameraModel::load(const std::string & directory, const std::string & cameraName)