Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion include/depthai-shared/common/Interpolation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,

};

Expand Down
17 changes: 16 additions & 1 deletion include/depthai-shared/properties/StereoDepthProperties.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -182,6 +183,18 @@ struct StereoDepthProperties : PropertiesSerializable<Properties, StereoDepthPro
* See getOptimalNewCameraMatrix from opencv for more details.
*/
tl::optional<float> 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<bool> verticalStereo;

/**
* Interpolation type used for stereo rectification.
* Default value: DEFAULT_STEREO_RECTIFICATION.
*/
Interpolation rectificationInterpolation = Interpolation::DEFAULT_STEREO_RECTIFICATION;
};

DEPTHAI_SERIALIZE_EXT(StereoDepthProperties,
Expand All @@ -206,6 +219,8 @@ DEPTHAI_SERIALIZE_EXT(StereoDepthProperties,
disparityToDepthUseSpecTranslation,
rectificationUseSpecTranslation,
depthAlignmentUseSpecTranslation,
alphaScaling);
alphaScaling,
verticalStereo,
rectificationInterpolation);

} // namespace dai