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/pipeline/node/StereoDepth.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ class StereoDepth : public DeviceNodeCRTP<DeviceNode, StereoDepth, StereoDepthPr
* Sets a default preset based on specified option.
* @param mode Stereo depth preset mode
*
* @warning If using alpha scaling on RVC4 the DEFAULT, DENSITY, and FAST_DENSITY presets can produce inaccurate depth in black padded regions, as they prioritize coverage.
* @warning If using alpha scaling on RVC4 the DEFAULT, DENSITY, and FAST_DENSITY presets can produce inaccurate depth in black padded regions, as they
* prioritize coverage.
*/
void setDefaultProfilePreset(PresetMode mode);

Expand Down
2 changes: 1 addition & 1 deletion src/pipeline/node/Camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Node::Output* Camera::requestOutput(const std::pair<uint32_t, uint32_t>& size,
cap.type = type;
cap.resizeMode = resizeMode;
if(alphaScaling.has_value()) {
if (alphaScaling.value() < 0.0f || alphaScaling.value() > 1.0f) {
if(alphaScaling.value() < 0.0f || alphaScaling.value() > 1.0f) {
throw std::runtime_error("alphaScaling must be between 0.0 and 1.0");
}
cap.enableUndistortion = true;
Expand Down
2 changes: 1 addition & 1 deletion src/utility/ImageManipImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3015,7 +3015,7 @@ void WarpH::buildUndistort(bool enable,
const uint32_t dstHeight) {
#ifdef DEPTHAI_HAVE_OPENCV_SUPPORT
if(enable) {
this->alphaScaling = alpha; // unused
this->alphaScaling = alpha; // unused
if(!undistortImpl) undistortImpl = std::make_unique<UndistortOpenCvImpl>(this->logger);
auto undistortStatus = undistortImpl->build(cameraMatrix, newCameraMatrix, distCoeffs, type, srcWidth, srcHeight, dstWidth, dstHeight);
switch(undistortStatus) {
Expand Down