Skip to content

Commit

Permalink
Merge branch 'image_manip_refactor' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
themarpe committed Jul 11, 2022
2 parents c30f5bd + 8883c57 commit 47648f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 3 additions & 2 deletions include/depthai-shared/datatype/RawImageManipConfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

DEPTHAI_SERIALIZE(FormatConfig, type, flipHorizontal);
DEPTHAI_SERIALIZE(FormatConfig, type, flipHorizontal, flipVertical);
};

CropConfig cropConfig;
Expand Down
9 changes: 8 additions & 1 deletion include/depthai-shared/properties/ImageManipProperties.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ struct ImageManipProperties : PropertiesSerializable<Properties, ImageManipPrope

/// 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 = "";
};

DEPTHAI_SERIALIZE_EXT(ImageManipProperties, initialConfig, outputFrameSize, numFramesPool);
DEPTHAI_SERIALIZE_EXT(ImageManipProperties, initialConfig, outputFrameSize, numFramesPool, meshWidth, meshHeight, meshUri);

} // namespace dai

0 comments on commit 47648f0

Please sign in to comment.