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

Added a note about max_disp

parent a6371fc0
No related branches found
No related tags found
1 merge request!9Feature/bilateralfilter
Pipeline #10880 passed
......@@ -12,6 +12,8 @@ using cv::Mat;
FixstarsSGM::FixstarsSGM(nlohmann::json &config) : Disparity(config) {
ssgm_ = nullptr;
use_filter_ = config.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, config.value("filter_radius", 25), config.value("filter_iter", 1));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment