mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 20:17:47 +08:00
feat: enhance threshold filter configuration by allowing separate min and max values
This commit is contained in:
@@ -3243,6 +3243,10 @@ void OBCameraNode::setupDepthPostProcessFilter() {
|
||||
auto threshold_filter = filter->as<ob::ThresholdFilter>();
|
||||
if (threshold_filter_min_ != -1 && threshold_filter_max_ != -1) {
|
||||
threshold_filter->setValueRange(threshold_filter_min_, threshold_filter_max_);
|
||||
} else if (threshold_filter_min_ != -1) {
|
||||
threshold_filter->setConfigValue("min", threshold_filter_min_);
|
||||
} else if (threshold_filter_max_ != -1) {
|
||||
threshold_filter->setConfigValue("max", threshold_filter_max_);
|
||||
}
|
||||
RCLCPP_INFO_STREAM(logger_, "Current threshold filter value range: "
|
||||
<< static_cast<int>(threshold_filter->getConfigValue("min"))
|
||||
|
||||
Reference in New Issue
Block a user