Image Utils#

Enums

enum RESIZE_MODE#

Values:

enumerator RESIZE_FILL#
enumerator RESIZE_KEEP_ASPECT#
enumerator RESIZE_KEEP_ASPECT_LETTERBOX#
enumerator RESIZE_CROP#
enumerator NO_RESIZE#

Functions

inline std::string formatResizeMode(RESIZE_MODE mode)#
cv::Mat resizeImageExt(const cv::Mat &mat, int width, int height, RESIZE_MODE resizeMode = RESIZE_FILL, cv::InterpolationFlags interpolationMode = cv::INTER_LINEAR, cv::Rect *roi = nullptr, cv::Scalar BorderConstant = cv::Scalar(0, 0, 0))#
ov::preprocess::PostProcessSteps::CustomPostprocessOp createResizeGraph(RESIZE_MODE resizeMode, const ov::Shape &size, const cv::InterpolationFlags interpolationMode, uint8_t pad_value)#