removed asserts on CameraModel constructor when fx != 0 (but added the check in isValid() method)

This commit is contained in:
matlabbe
2015-07-18 17:26:41 -04:00
parent 6bbde72840
commit 8c7f6ced6f
3 changed files with 12 additions and 10 deletions

View File

@@ -81,8 +81,8 @@ CameraModel::CameraModel(
P_(cv::Mat::eye(3, 4, CV_64FC1)),
localTransform_(localTransform)
{
UASSERT_MSG(fx > 0.0, uFormat("fx=%f", fx).c_str());
UASSERT_MSG(fy > 0.0, uFormat("fy=%f", fy).c_str());
UASSERT_MSG(fx >= 0.0, uFormat("fx=%f", fx).c_str());
UASSERT_MSG(fy >= 0.0, uFormat("fy=%f", fy).c_str());
UASSERT_MSG(cx >= 0.0, uFormat("cx=%f", cx).c_str());
UASSERT_MSG(cy >= 0.0, uFormat("cy=%f", cy).c_str());
P_.at<double>(0,0) = fx;