OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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
6 #include <openpose/core/common.hpp>
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 void resizeFixedAspectRatio(
20 cv::Mat& resizedCvMat, const cv::Mat& cvMat, const double scaleFactor, const Point<int>& targetSize,
21 const int borderMode = cv::BORDER_CONSTANT, const cv::Scalar& borderValue = cv::Scalar{0,0,0});
22
23 OP_API void keepRoiInside(cv::Rect& roi, const int imageWidth, const int imageHeight);
24 }
25
26 #endif // OPENPOSE_UTILITIES_OPEN_CV_HPP
cl::array
std::array< T, N > array
Definition: cl2.hpp:594
op::resizeFixedAspectRatio
OP_API void resizeFixedAspectRatio(cv::Mat &resizedCvMat, 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::keepRoiInside
OP_API void keepRoiInside(cv::Rect &roi, const int imageWidth, const int imageHeight)
common.hpp
op::putTextOnCvMat
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::uCharCvMatToFloatPtr
OP_API void uCharCvMatToFloatPtr(float *floatPtrImage, const cv::Mat &cvImage, const int normalize)
op::resizeGetScaleFactor
OP_API double resizeGetScaleFactor(const Point< int > &initialSize, const Point< int > &targetSize)
op::unrollArrayToUCharCvMat
OP_API void unrollArrayToUCharCvMat(cv::Mat &cvMatResult, const Array< float > &array)
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574