Added image size to all camera calibration inputs. Memory::computeTransform() more fine tuning to know if data should be loaded from database.

This commit is contained in:
matlabbe
2016-03-10 09:07:44 -05:00
parent 609cc3dc59
commit cee9c65b06
10 changed files with 312 additions and 261 deletions

View File

@@ -170,7 +170,10 @@ void CreateSimpleCalibrationDialog::saveCalibration()
ui_->doubleSpinBox_fx->value(),
ui_->doubleSpinBox_fy->value(),
ui_->doubleSpinBox_cx->value(),
ui_->doubleSpinBox_cy->value());
ui_->doubleSpinBox_cy->value(),
Transform::getIdentity(),
0,
cv::Size(width, height));
UASSERT(modelLeft.isValidForProjection());
}
else
@@ -215,7 +218,8 @@ void CreateSimpleCalibrationDialog::saveCalibration()
ui_->doubleSpinBox_cx->value(),
ui_->doubleSpinBox_cy->value(),
Transform::getIdentity(),
ui_->doubleSpinBox_baseline->value()*-ui_->doubleSpinBox_fx->value());
ui_->doubleSpinBox_baseline->value()*-ui_->doubleSpinBox_fx->value(),
cv::Size(width, height));
UASSERT(modelRight.isValidForProjection());
stereoModel = StereoCameraModel(name.toStdString(), modelLeft, modelRight, Transform());
UASSERT(stereoModel.isValidForProjection());