add filter params

This commit is contained in:
Joe Dong
2024-04-07 15:30:59 +08:00
parent 9a1c6cdec6
commit 9b6b90d9cb
5 changed files with 169 additions and 16 deletions
+11
View File
@@ -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