mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Merge branch 'master' of https://github.com/bckim92/rtabmap into bckim92-master
This commit is contained in:
@@ -1139,12 +1139,6 @@ CameraFreenect2::CameraFreenect2(
|
|||||||
//MaxDepth(4.5f),
|
//MaxDepth(4.5f),
|
||||||
//EnableBilateralFilter(true),
|
//EnableBilateralFilter(true),
|
||||||
//EnableEdgeAwareFilter(true)
|
//EnableEdgeAwareFilter(true)
|
||||||
libfreenect2::DepthPacketProcessor::Config config;
|
|
||||||
config.EnableBilateralFilter = bilateralFiltering_;
|
|
||||||
config.EnableEdgeAwareFilter = edgeAwareFiltering_;
|
|
||||||
config.MinDepth = minKinect2Depth_;
|
|
||||||
config.MaxDepth = maxKinect2Depth_;
|
|
||||||
pipeline_->getDepthPacketProcessor()->setConfiguration(config);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -1274,6 +1268,13 @@ bool CameraFreenect2::init(const std::string & calibrationFolder, const std::str
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
libfreenect2::Freenect2Device::Config config;
|
||||||
|
config.EnableBilateralFilter = bilateralFiltering_;
|
||||||
|
config.EnableEdgeAwareFilter = edgeAwareFiltering_;
|
||||||
|
config.MinDepth = minKinect2Depth_;
|
||||||
|
config.MaxDepth = maxKinect2Depth_;
|
||||||
|
dev_->setConfiguration(config);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user