Skip to content

Commit

Permalink
Add vertical stereo support
Browse files Browse the repository at this point in the history
  • Loading branch information
SzabolcsGergely committed Oct 20, 2023
1 parent ba9497a commit 874518d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pipeline/CommonBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ void CommonBindings::bind(pybind11::module& m, void* pCallstack){
.value("BYPASS", Interpolation::BYPASS)
.value("DEFAULT", Interpolation::DEFAULT)
.value("DEFAULT_DISPARITY_DEPTH", Interpolation::DEFAULT_DISPARITY_DEPTH)
.value("DEFAULT_STEREO_RECTIFICATION", Interpolation::DEFAULT_STEREO_RECTIFICATION)
;

//backward compatibility
Expand Down
4 changes: 4 additions & 0 deletions src/pipeline/node/StereoDepthBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ void bind_stereodepth(pybind11::module& m, void* pCallstack){
.def_readwrite("rectificationUseSpecTranslation", &StereoDepthProperties::rectificationUseSpecTranslation, DOC(dai, StereoDepthProperties, rectificationUseSpecTranslation))
.def_readwrite("depthAlignmentUseSpecTranslation", &StereoDepthProperties::depthAlignmentUseSpecTranslation, DOC(dai, StereoDepthProperties, depthAlignmentUseSpecTranslation))
.def_readwrite("alphaScaling", &StereoDepthProperties::alphaScaling, DOC(dai, StereoDepthProperties, alphaScaling))
.def_readwrite("verticalStereo", &StereoDepthProperties::verticalStereo, DOC(dai, StereoDepthProperties, verticalStereo))
.def_readwrite("rectificationInterpolation", &StereoDepthProperties::rectificationInterpolation, DOC(dai, StereoDepthProperties, rectificationInterpolation))
;

stereoDepthPresetMode
Expand Down Expand Up @@ -176,6 +178,8 @@ void bind_stereodepth(pybind11::module& m, void* pCallstack){
.def("setRectificationUseSpecTranslation", &StereoDepth::setRectificationUseSpecTranslation, DOC(dai, node, StereoDepth, setRectificationUseSpecTranslation))
.def("setDepthAlignmentUseSpecTranslation", &StereoDepth::setDepthAlignmentUseSpecTranslation, DOC(dai, node, StereoDepth, setDepthAlignmentUseSpecTranslation))
.def("setAlphaScaling", &StereoDepth::setAlphaScaling, DOC(dai, node, StereoDepth, setAlphaScaling))
.def("setVerticalStereo", &StereoDepth::setVerticalStereo, DOC(dai, node, StereoDepth, setVerticalStereo))
.def("setRectificationInterpolation", &StereoDepth::setRectificationInterpolation, DOC(dai, node, StereoDepth, setRectificationInterpolation))
;
// ALIAS
daiNodeModule.attr("StereoDepth").attr("Properties") = stereoDepthProperties;
Expand Down

0 comments on commit 874518d

Please sign in to comment.