mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-06 04:57:45 +08:00
add filter params
This commit is contained in:
@@ -662,4 +662,15 @@ std::string metaDataTypeToString(const OBFrameMetadataType &meta_data_type) {
|
||||
return "unknown";
|
||||
}
|
||||
}
|
||||
OBHoleFillingMode holeFillingModeFromString(const std::string &hole_filling_mode) {
|
||||
if (hole_filling_mode == "FILL_TOP") {
|
||||
return OB_HOLE_FILL_TOP;
|
||||
} else if (hole_filling_mode == "FILL_NEAREST") {
|
||||
return OB_HOLE_FILL_NEAREST;
|
||||
} else if (hole_filling_mode == "FILL_FAREST") {
|
||||
return OB_HOLE_FILL_FAREST;
|
||||
} else {
|
||||
return OB_HOLE_FILL_NEAREST;
|
||||
}
|
||||
}
|
||||
} // namespace orbbec_camera
|
||||
|
||||
Reference in New Issue
Block a user