Skip to content
Snippets Groups Projects
Commit bd655dbc authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

fix left channel parameters (resolution)

parent 5683759e
No related branches found
No related tags found
1 merge request!196High resolution colour
Pipeline #17075 failed
...@@ -151,8 +151,15 @@ void StereoVideoSource::init(const string &file) { ...@@ -151,8 +151,15 @@ void StereoVideoSource::init(const string &file) {
} }
ftl::rgbd::Camera StereoVideoSource::parameters(Channel chan) { ftl::rgbd::Camera StereoVideoSource::parameters(Channel chan) {
cv::Mat q;
if (chan == Channel::Right) { if (chan == Channel::Right) {
cv::Mat q = calib_->getCameraMatrixRight(depth_size_); q = calib_->getCameraMatrixRight(depth_size_);
} else {
q = calib_->getCameraMatrixLeft(depth_size_);
}
// TODO: remove hardcoded values (min/max)
ftl::rgbd::Camera params = { ftl::rgbd::Camera params = {
q.at<double>(0,0), // Fx q.at<double>(0,0), // Fx
q.at<double>(1,1), // Fy q.at<double>(1,1), // Fy
...@@ -165,11 +172,8 @@ ftl::rgbd::Camera StereoVideoSource::parameters(Channel chan) { ...@@ -165,11 +172,8 @@ ftl::rgbd::Camera StereoVideoSource::parameters(Channel chan) {
1.0 / calib_->getQ().at<double>(3,2), // Baseline 1.0 / calib_->getQ().at<double>(3,2), // Baseline
0.0f // doffs 0.0f // doffs
}; };
return params; return params;
//params_.doffs = -calib_->getQ().at<double>(3,3) * params_.baseline;
} else {
return params_;
}
} }
bool StereoVideoSource::capture(int64_t ts) { bool StereoVideoSource::capture(int64_t ts) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment