Go to the source code of this file.
Functions | |
int | createDirectory (std::string directory) |
cv::Mat | fromPlanarFp16 (const std::vector< float > &data, int w, int h, float mean, float scale) |
cv::Mat | resizeKeepAspectRatio (const cv::Mat &input, const cv::Size &dstSize, const cv::Scalar &bgcolor) |
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) |
int createDirectory | ( | std::string | directory | ) |
Definition at line 15 of file utility.cpp.
cv::Mat fromPlanarFp16 | ( | const std::vector< float > & | data, |
int | w, | ||
int | h, | ||
float | mean, | ||
float | scale | ||
) |
Definition at line 27 of file utility.cpp.
cv::Mat resizeKeepAspectRatio | ( | const cv::Mat & | input, |
const cv::Size & | dstSize, | ||
const cv::Scalar & | bgcolor | ||
) |
Definition at line 113 of file utility.cpp.
cv::Mat toMat | ( | const std::vector< uint8_t > & | data, |
int | w, | ||
int | h, | ||
int | numPlanes, | ||
int | bpp | ||
) |
Definition at line 45 of file utility.cpp.
void toPlanar | ( | cv::Mat & | bgr, |
std::vector< std::uint8_t > & | data | ||
) |
Definition at line 100 of file utility.cpp.