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

Merge branch 'master' of gitlab.utu.fi:nicolas.pope/ftl

parents a7f6a005 ee87a250
No related branches found
No related tags found
No related merge requests found
Pipeline #10818 passed
...@@ -33,9 +33,10 @@ void FixstarsSGM::compute(const cv::Mat &l, const cv::Mat &r, cv::Mat &disp) { ...@@ -33,9 +33,10 @@ void FixstarsSGM::compute(const cv::Mat &l, const cv::Mat &r, cv::Mat &disp) {
//std::chrono::duration<double> elapsed = //std::chrono::duration<double> elapsed =
// std::chrono::high_resolution_clock::now() - start; // std::chrono::high_resolution_clock::now() - start;
//LOG(INFO) << "CUDA sgm in " << elapsed.count() << "s"; //LOG(INFO) << "CUDA sgm in " << elapsed.count() << "s";
// todo: fix libSGM (return float data or provide mask separately)
// (256 << 5) coded in libSGM consistency check
Mat bad_pixels = (disp == (256 << 5));
disp.convertTo(disp, CV_32F, 1.0f/16.0f); disp.convertTo(disp, CV_32F, 1.0f/16.0f);
} disp.setTo(0, bad_pixels); // decide how bad values should be represented
}
\ No newline at end of file
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