Functions
utility.hpp File Reference
#include "opencv2/opencv.hpp"
Include dependency graph for utility.hpp:
This graph shows which files directly or indirectly include this file:

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=0.0, float scale=1.0)
 
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)
 

Function Documentation

◆ createDirectory()

int createDirectory ( std::string  directory)

Definition at line 15 of file utility.cpp.

◆ fromPlanarFp16()

cv::Mat fromPlanarFp16 ( const std::vector< float > &  data,
int  w,
int  h,
float  mean = 0.0,
float  scale = 1.0 
)

Definition at line 27 of file utility.cpp.

◆ resizeKeepAspectRatio()

cv::Mat resizeKeepAspectRatio ( const cv::Mat &  input,
const cv::Size &  dstSize,
const cv::Scalar &  bgcolor 
)

Definition at line 113 of file utility.cpp.

◆ toMat()

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.

◆ toPlanar()

void toPlanar ( cv::Mat &  bgr,
std::vector< std::uint8_t > &  data 
)

Definition at line 100 of file utility.cpp.



depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:20