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

libsgm uniqueness config option

parent 468c3892
No related branches found
No related tags found
No related merge requests found
Pipeline #11848 passed
......@@ -12,9 +12,8 @@ using cv::cuda::GpuMat;
FixstarsSGM::FixstarsSGM(nlohmann::json &config) : Disparity(config) {
ssgm_ = nullptr;
uniqueness_ = value("uniqueness", 0.95f);
use_filter_ = value("use_filter", false);
// note: (max_disp_ << 4) libsgm subpixel accuracy.
// What is the impact in the filter? (possible artifacts)
filter_ = cv::cuda::createDisparityBilateralFilter(max_disp_ << 4, value("filter_radius", 25), value("filter_iter", 1));
}
......
......@@ -35,6 +35,7 @@ class FixstarsSGM : public ftl::rgbd::detail::Disparity {
}
private:
float uniqueness_;
bool use_filter_;
cv::Ptr<cv::cuda::DisparityBilateralFilter> filter_;
sgm::StereoSGM *ssgm_;
......
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