OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
matrix.hpp File Reference
#include <memory>
#include <openpose/core/macros.hpp>

Go to the source code of this file.

Classes

class  op::Matrix
 

Namespaces

 op
 

Macros

#define OP_OP2CVMAT(opMat)    (*((cv::Mat*)((opMat).getCvMat())))
 
#define OP_OP2CVCONSTMAT(opMat)    (*((cv::Mat*)((opMat).getConstCvMat())))
 
#define OP_CV2OPMAT(cvMat)    (op::Matrix((void*)&(cvMat)))
 
#define OP_CV2OPCONSTMAT(cvMat)    (op::Matrix((const void*)&(cvMat)))
 
#define OP_OP2CVVECTORMAT(cvMats, opMats)
 
#define OP_CV2OPVECTORMAT(opMats, cvMats)
 
#define OP_MAT_VOID_FUNCTION(opMat, function)
 
#define OP_CONST_MAT_VOID_FUNCTION(opMat, function)
 
#define OP_MAT_RETURN_FUNCTION(outputVariable, opMat, function)
 
#define OP_CONST_MAT_RETURN_FUNCTION(outputVariable, opMat, function)
 

Macro Definition Documentation

◆ OP_CONST_MAT_RETURN_FUNCTION

#define OP_CONST_MAT_RETURN_FUNCTION (   outputVariable,
  opMat,
  function 
)
Value:
{ \
const cv::Mat cvMat = OP_OP2CVCONSTMAT(opMat); \
outputVariable = cvMat.function; \
}
#define OP_OP2CVCONSTMAT(opMat)
Definition: matrix.hpp:20

Definition at line 86 of file matrix.hpp.

◆ OP_CONST_MAT_VOID_FUNCTION

#define OP_CONST_MAT_VOID_FUNCTION (   opMat,
  function 
)
Value:
{ \
const cv::Mat cvMat = OP_OP2CVCONSTMAT(opMat); \
cvMat.function; \
}

Definition at line 76 of file matrix.hpp.

◆ OP_CV2OPCONSTMAT

#define OP_CV2OPCONSTMAT (   cvMat)     (op::Matrix((const void*)&(cvMat)))

Definition at line 34 of file matrix.hpp.

◆ OP_CV2OPMAT

#define OP_CV2OPMAT (   cvMat)     (op::Matrix((void*)&(cvMat)))

Definition at line 27 of file matrix.hpp.

◆ OP_CV2OPVECTORMAT

#define OP_CV2OPVECTORMAT (   opMats,
  cvMats 
)
Value:
std::vector<op::Matrix> opMats; \
for (auto& cvMat : (cvMats)) \
{ \
const auto opMat = OP_CV2OPMAT(cvMat); \
opMats.emplace_back(opMat); \
}
#define OP_CV2OPMAT(cvMat)
Definition: matrix.hpp:27

Definition at line 55 of file matrix.hpp.

◆ OP_MAT_RETURN_FUNCTION

#define OP_MAT_RETURN_FUNCTION (   outputVariable,
  opMat,
  function 
)
Value:
{ \
cv::Mat cvMat = OP_OP2CVMAT(cvMat, opMat); \
outputVariable = cvMat.function; \
}
#define OP_OP2CVMAT(opMat)
Definition: matrix.hpp:13

Definition at line 81 of file matrix.hpp.

◆ OP_MAT_VOID_FUNCTION

#define OP_MAT_VOID_FUNCTION (   opMat,
  function 
)
Value:
{ \
cv::Mat cvMat = OP_OP2CVMAT(cvMat, opMat); \
cvMat.function; \
}

Definition at line 71 of file matrix.hpp.

◆ OP_OP2CVCONSTMAT

#define OP_OP2CVCONSTMAT (   opMat)     (*((cv::Mat*)((opMat).getConstCvMat())))

Definition at line 20 of file matrix.hpp.

◆ OP_OP2CVMAT

#define OP_OP2CVMAT (   opMat)     (*((cv::Mat*)((opMat).getCvMat())))

Definition at line 13 of file matrix.hpp.

◆ OP_OP2CVVECTORMAT

#define OP_OP2CVVECTORMAT (   cvMats,
  opMats 
)
Value:
std::vector<cv::Mat> cvMats; \
for (auto& opMat : (opMats)) \
{ \
const auto cvMat = OP_OP2CVCONSTMAT(opMat); \
cvMats.emplace_back(cvMat); \
}

Definition at line 42 of file matrix.hpp.