Template Class ImageManipOpsBase

Inheritance Relationships

Base Type

Class Documentation

template<typename C>
class ImageManipOpsBase : public dai::ImageManipOpsEnums

Public Functions

template<typename C2>
inline void cloneTo(ImageManipOpsBase<C2> &to) const
inline bool hasWarp(const size_t inputWidth, const size_t inputHeight) const
inline ImageManipOpsBase &addOp(ManipOp op)
inline ImageManipOpsBase &transformPerspective(std::array<float, 9> matrix)
inline ImageManipOpsBase &transformAffine(std::array<float, 4> matrix)
inline ImageManipOpsBase &transformFourPoints(std::array<dai::Point2f, 4> src, std::array<dai::Point2f, 4> dst, bool normalizedCoords = false)
inline ImageManipOpsBase &flipHorizontal(bool center = true)
inline ImageManipOpsBase &flipVertical(bool center = true)
inline ImageManipOpsBase &resize(float width, float height, bool normalized = false)
inline ImageManipOpsBase &crop(float x, float y, float w, float h, bool normalized = false, bool center = false)
inline ImageManipOpsBase &resizeFit()
inline ImageManipOpsBase &resizeFill()
inline ImageManipOpsBase &resizeWidthKeepAspectRatio(float width, bool normalized = false)
inline ImageManipOpsBase &resizeHeightKeepAspectRatio(float height, bool normalized = false)
inline ImageManipOpsBase &rotateRadians(float angle, bool center = true, float offsetX = 0, float offsetY = 0, bool normalized = false)
inline ImageManipOpsBase &rotateDegrees(float angle, bool center = true, float offsetX = 0, float offsetY = 0, bool normalized = false)
inline ImageManipOpsBase &translate(float offsetX, float offsetY, bool normalizedCoords = false)
inline ImageManipOpsBase &setOutputSize(float width, float height)
inline ImageManipOpsBase &setOutputResize(uint32_t width, uint32_t height, ResizeMode mode)
inline ImageManipOpsBase &setOutputCenter(bool c = true)
inline ImageManipOpsBase &setBackgroundColor(uint32_t red, uint32_t green, uint32_t blue)
inline ImageManipOpsBase &setBackgroundColor(uint32_t val)
inline ImageManipOpsBase &setColormap(Colormap clr)
inline ImageManipOpsBase &setUndistort(bool undistort)
inline bool getUndistort() const
inline const C &getOperations() const
inline ImageManipOpsBase &clear()
DEPTHAI_SERIALIZE(ImageManipOpsBase, operations, outputWidth, outputHeight, center, resizeMode, background, backgroundR, backgroundG, backgroundB, colormap, undistort)

Public Members

uint32_t outputWidth = 0
uint32_t outputHeight = 0
bool center = true
ResizeMode resizeMode = ResizeMode::NONE
Background background = Background::COLOR
uint32_t backgroundR = 0
uint32_t backgroundG = 0
uint32_t backgroundB = 0
Colormap colormap = Colormap::NONE
bool undistort = false
C operations