Go to the documentation of this file.
3 #include "opencv2/opencv.hpp"
5 cv::Mat
fromPlanarFp16(
const std::vector<float>&
data,
int w,
int h,
float mean = 0.0,
float scale = 1.0);
6 cv::Mat
toMat(
const std::vector<uint8_t>&
data,
int w,
int h ,
int numPlanes,
int bpp);
7 void toPlanar(cv::Mat& bgr, std::vector<std::uint8_t>&
data);
8 cv::Mat
resizeKeepAspectRatio(
const cv::Mat &input,
const cv::Size &dstSize,
const cv::Scalar &bgcolor);
cv::Mat resizeKeepAspectRatio(const cv::Mat &input, const cv::Size &dstSize, const cv::Scalar &bgcolor)
cv::Mat fromPlanarFp16(const std::vector< float > &data, int w, int h, float mean=0.0, float scale=1.0)
constexpr auto data(C &c) -> decltype(c.data())
int createDirectory(std::string directory)
cv::Mat toMat(const std::vector< uint8_t > &data, int w, int h, int numPlanes, int bpp)
void toPlanar(cv::Mat &bgr, std::vector< std::uint8_t > &data)
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19