Skip to content
Snippets Groups Projects
Commit 43a780bb authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Allow rectify override

parent 75d4ba47
Branches
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #28331 failed
...@@ -157,6 +157,7 @@ void StereoVideoSource::init(const string &file) { ...@@ -157,6 +157,7 @@ void StereoVideoSource::init(const string &file) {
if (calibf) { if (calibf) {
fname_calib_ = *calibf; fname_calib_ = *calibf;
calibration_ = ftl::calibration::CalibrationData::readFile(fname_calib_); calibration_ = ftl::calibration::CalibrationData::readFile(fname_calib_);
calibration_.enabled = host_->value("rectify", calibration_.enabled);
rectification_->setCalibration(calibration_); rectification_->setCalibration(calibration_);
rectification_->setEnabled(calibration_.enabled); rectification_->setEnabled(calibration_.enabled);
} }
...@@ -178,6 +179,11 @@ void StereoVideoSource::init(const string &file) { ...@@ -178,6 +179,11 @@ void StereoVideoSource::init(const string &file) {
do_update_params_ = true; do_update_params_ = true;
}); });
host_->on("rectify", [this](const ftl::config::Event &e) {
calibration_.enabled = host_->value("rectify", true);
do_update_params_ = true;
});
host_->on("offset_z", [this](const ftl::config::Event &e) { host_->on("offset_z", [this](const ftl::config::Event &e) {
do_update_params_ = true; do_update_params_ = true;
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment