OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
openCv.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_UTILITIES_OPEN_CV_HPP
2 #define OPENPOSE_UTILITIES_OPEN_CV_HPP
3 
4 #include <opencv2/core/core.hpp> // cv::Mat
5 #include <opencv2/imgproc/imgproc.hpp> // cv::warpAffine, cv::BORDER_CONSTANT
7 
8 namespace op
9 {
10  OP_API void putTextOnCvMat(cv::Mat& cvMat, const std::string& textToDisplay, const Point<int>& position,
11  const cv::Scalar& color, const bool normalizeWidth, const int imageWidth);
12 
13  OP_API void unrollArrayToUCharCvMat(cv::Mat& cvMatResult, const Array<float>& array);
14 
15  OP_API void uCharCvMatToFloatPtr(float* floatPtrImage, const cv::Mat& cvImage, const int normalize);
16 
17  OP_API double resizeGetScaleFactor(const Point<int>& initialSize, const Point<int>& targetSize);
18 
19  OP_API cv::Mat resizeFixedAspectRatio(const cv::Mat& cvMat, const double scaleFactor, const Point<int>& targetSize,
20  const int borderMode = cv::BORDER_CONSTANT,
21  const cv::Scalar& borderValue = cv::Scalar{0,0,0});
22 }
23 
24 #endif // OPENPOSE_UTILITIES_OPEN_CV_HPP
std::array< T, N > array
Definition: cl2.hpp:594
OP_API void putTextOnCvMat(cv::Mat &cvMat, const std::string &textToDisplay, const Point< int > &position, const cv::Scalar &color, const bool normalizeWidth, const int imageWidth)
OP_API void uCharCvMatToFloatPtr(float *floatPtrImage, const cv::Mat &cvImage, const int normalize)
OP_API cv::Mat resizeFixedAspectRatio(const cv::Mat &cvMat, const double scaleFactor, const Point< int > &targetSize, const int borderMode=cv::BORDER_CONSTANT, const cv::Scalar &borderValue=cv::Scalar{0, 0, 0})
OP_API double resizeGetScaleFactor(const Point< int > &initialSize, const Point< int > &targetSize)
OP_API void unrollArrayToUCharCvMat(cv::Mat &cvMatResult, const Array< float > &array)
#define OP_API
Definition: macros.hpp:18
std::string string
Definition: cl2.hpp:574