From 0103cf962ce92b4c4815a9278609c4d7d9afb994 Mon Sep 17 00:00:00 2001 From: TheMarpe Date: Mon, 22 Nov 2021 16:50:46 +0100 Subject: [PATCH 1/2] ImageManip - added vertical flip --- include/depthai-shared/datatype/RawImageManipConfig.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/depthai-shared/datatype/RawImageManipConfig.hpp b/include/depthai-shared/datatype/RawImageManipConfig.hpp index c5b25996..dac65776 100644 --- a/include/depthai-shared/datatype/RawImageManipConfig.hpp +++ b/include/depthai-shared/datatype/RawImageManipConfig.hpp @@ -86,10 +86,11 @@ struct RawImageManipConfig : public RawBuffer { }; struct FormatConfig { - RawImgFrame::Type type = RawImgFrame::Type::RGB888p; + RawImgFrame::Type type = RawImgFrame::Type::NONE; bool flipHorizontal = false; + bool flipVertical = false; - NLOHMANN_DEFINE_TYPE_INTRUSIVE(FormatConfig, type, flipHorizontal); + NLOHMANN_DEFINE_TYPE_INTRUSIVE(FormatConfig, type, flipHorizontal, flipVertical); }; CropConfig cropConfig; From 47c79f7db369610b9cec26f3179e4dfb13f29d87 Mon Sep 17 00:00:00 2001 From: TheMarpe Date: Tue, 23 Nov 2021 20:05:53 +0100 Subject: [PATCH 2/2] Added mesh for ImageManip --- .../depthai-shared/properties/ImageManipProperties.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/depthai-shared/properties/ImageManipProperties.hpp b/include/depthai-shared/properties/ImageManipProperties.hpp index 02a0fc42..90a8b4b4 100644 --- a/include/depthai-shared/properties/ImageManipProperties.hpp +++ b/include/depthai-shared/properties/ImageManipProperties.hpp @@ -21,8 +21,15 @@ struct ImageManipProperties { /// Num frames in output pool int numFramesPool = 4; + + /// Custom warp mesh width. Set to zero to disable + int meshWidth = 0; + /// Custom warp mesh height. Set to zero to disable. + int meshHeight = 0; + /// Custom warp mesh uri. Set to empty string to disable. + std::string meshUri = ""; }; -NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(ImageManipProperties, initialConfig, inputConfigSync, outputFrameSize, numFramesPool); +NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(ImageManipProperties, initialConfig, inputConfigSync, outputFrameSize, numFramesPool, meshWidth, meshHeight, meshUri); } // namespace dai