All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
openCv.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_UTILITIES_OPEN_CV_HPP
#define OPENPOSE_UTILITIES_OPEN_CV_HPP
#include <opencv2/core/core.hpp> // cv::Mat
#include <opencv2/imgproc/imgproc.hpp> // cv::warpAffine, cv::BORDER_CONSTANT
#include <openpose/core/common.hpp>
namespace op
{
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 unrollArrayToUCharCvMat(cv::Mat& cvMatResult, const Array<float>& array);
OP_API void uCharCvMatToFloatPtr(float* floatPtrImage, const cv::Mat& cvImage, const int normalize);
OP_API double resizeGetScaleFactor(const Point<int>& initialSize, const Point<int>& targetSize);
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_API void keepRoiInside(cv::Rect& roi, const int imageWidth, const int imageHeight);
}
#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