From 6358846e2e7efc17bd914b20cdaedb0bbf9ddc10 Mon Sep 17 00:00:00 2001 From: AljazD Date: Wed, 5 Aug 2026 12:29:49 +0200 Subject: [PATCH] Clang format fixes --- include/depthai/pipeline/node/StereoDepth.hpp | 3 ++- src/pipeline/node/Camera.cpp | 2 +- src/utility/ImageManipImpl.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/depthai/pipeline/node/StereoDepth.hpp b/include/depthai/pipeline/node/StereoDepth.hpp index b1e986204b..c980fa3a9f 100644 --- a/include/depthai/pipeline/node/StereoDepth.hpp +++ b/include/depthai/pipeline/node/StereoDepth.hpp @@ -310,7 +310,8 @@ class StereoDepth : public DeviceNodeCRTP& 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; diff --git a/src/utility/ImageManipImpl.cpp b/src/utility/ImageManipImpl.cpp index 21f746bce1..aa3ba2d735 100644 --- a/src/utility/ImageManipImpl.cpp +++ b/src/utility/ImageManipImpl.cpp @@ -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(this->logger); auto undistortStatus = undistortImpl->build(cameraMatrix, newCameraMatrix, distCoeffs, type, srcWidth, srcHeight, dstWidth, dstHeight); switch(undistortStatus) {