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

fix vision node baseline

parent 8f16831f
No related branches found
No related tags found
No related merge requests found
Pipeline #18398 canceled
......@@ -199,7 +199,7 @@ void StereoVideoSource::updateParameters() {
cv::Mat K;
// same for left and right
double baseline = calib_->getQ().at<double>(3,2);
double baseline = 1.0 / calib_->getQ().at<double>(3,2);
double doff = -calib_->getQ().at<double>(3,3) * baseline;
// left
......@@ -214,7 +214,7 @@ void StereoVideoSource::updateParameters() {
(unsigned int) color_size_.height,
0.0f, // 0m min
15.0f, // 15m max
1.0 / baseline, // Baseline
baseline, // Baseline
doff
};
......@@ -236,7 +236,7 @@ void StereoVideoSource::updateParameters() {
(unsigned int) color_size_.height,
0.0f, // 0m min
15.0f, // 15m max
1.0 / baseline, // Baseline
baseline, // Baseline
doff
};
}
......
......@@ -10,7 +10,11 @@ ftl::rgbd::Camera ftl::stream::parseCalibration(const ftl::codecs::Packet &pkt)
auto unpacked = msgpack::unpack((const char*)pkt.data.data(), pkt.data.size());
unpacked.get().convert(params);
LOG(INFO) << "Got Calibration: " << std::get<0>(params).width << "x" << std::get<0>(params).height;
LOG(INFO) << "Got Calibration: "
<< std::get<0>(params).width << "x" << std::get<0>(params).height
<< ", fx: " << std::get<0>(params).fx
<< ", cx: " << std::get<0>(params).cx
<< ", cy: " << std::get<0>(params).cy;
return std::get<0>(params);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment