diff --git a/include/depthai-shared/common/Interpolation.hpp b/include/depthai-shared/common/Interpolation.hpp index 8a06b83c..da049dd7 100644 --- a/include/depthai-shared/common/Interpolation.hpp +++ b/include/depthai-shared/common/Interpolation.hpp @@ -15,7 +15,8 @@ enum class Interpolation : std::int32_t { NEAREST_NEIGHBOR = 2, BYPASS = NEAREST_NEIGHBOR, DEFAULT = BICUBIC, - DEFAULT_DISPARITY_DEPTH = NEAREST_NEIGHBOR + DEFAULT_DISPARITY_DEPTH = NEAREST_NEIGHBOR, + DEFAULT_STEREO_RECTIFICATION = BICUBIC, }; diff --git a/include/depthai-shared/properties/StereoDepthProperties.hpp b/include/depthai-shared/properties/StereoDepthProperties.hpp index fb3ed12f..5c8d4439 100644 --- a/include/depthai-shared/properties/StereoDepthProperties.hpp +++ b/include/depthai-shared/properties/StereoDepthProperties.hpp @@ -2,6 +2,7 @@ #include "depthai-shared/common/CameraBoardSocket.hpp" #include "depthai-shared/common/EepromData.hpp" +#include "depthai-shared/common/Interpolation.hpp" #include "depthai-shared/common/optional.hpp" #include "depthai-shared/datatype/RawStereoDepthConfig.hpp" #include "depthai-shared/properties/Properties.hpp" @@ -182,6 +183,18 @@ struct StereoDepthProperties : PropertiesSerializable alphaScaling; + + /** + * Whether to use vertical stereo mode or not. + * Default value: auto, extrinsic calibration data will determine whether it's vertical or horizontal stereo. + */ + tl::optional verticalStereo; + + /** + * Interpolation type used for stereo rectification. + * Default value: DEFAULT_STEREO_RECTIFICATION. + */ + Interpolation rectificationInterpolation = Interpolation::DEFAULT_STEREO_RECTIFICATION; }; DEPTHAI_SERIALIZE_EXT(StereoDepthProperties, @@ -206,6 +219,8 @@ DEPTHAI_SERIALIZE_EXT(StereoDepthProperties, disparityToDepthUseSpecTranslation, rectificationUseSpecTranslation, depthAlignmentUseSpecTranslation, - alphaScaling); + alphaScaling, + verticalStereo, + rectificationInterpolation); } // namespace dai