OpenPoseAdapter Class Reference

#include <VisionX/libraries/OpenPose/MonocularOpenPoseEstimation/OpenPoseAdapter.h>


struct  OpenPoseSettings

Public Member Functions

HumanPose2DMap convert2DKeypointsToIce (const op::Array< float > &op_keypoints, const CByteImage *rgbImage) const
armarx::DrawColor24Bit getDominantColorOfPatch (const CByteImage &image, const Vec2d &point, int windowSize) const
op::Array< floatgetOpenposeKeypoints (const CByteImage *imageBuffer)
std::vector< unsigned int > getPoseBodyPartPairsRender () const
std::vector< floatgetPoseColors () const
 OpenPoseAdapter (const OpenPoseSettings &)
void render2DResultImage (const CByteImage &inputImage, const op::Array< float > &keypoints, CByteImage &resultImage, float renderThreshold)

Static Public Member Functions

static cv::Mat ConvertToOPCustomType (const cv::Mat &x)
static std::string ConvertToOPCustomType (const std::string &x)

Public Attributes

std::shared_ptr< op::CvMatToOpInput > cvMatToOpInput
std::shared_ptr< op::CvMatToOpOutput > cvMatToOpOutput
std::mutex op_running_mutex
std::shared_ptr< op::OpOutputToCvMat > opOutputToCvMat
std::shared_ptr< op::PoseExtractorCaffe > poseExtractorCaffe
op::PoseModel poseModel
std::shared_ptr< op::ScaleAndSizeExtractor > scaleAndSizeExtractor
OpenPoseSettings settings

Detailed Description

Definition at line 63 of file OpenPoseAdapter.h.

Constructor & Destructor Documentation

◆ OpenPoseAdapter()

OpenPoseAdapter ( const OpenPoseSettings settings)

Definition at line 58 of file OpenPoseAdapter.cpp.

Member Function Documentation

◆ convert2DKeypointsToIce()

HumanPose2DMap convert2DKeypointsToIce ( const op::Array< float > &  op_keypoints,
const CByteImage *  rgbImage 
) const

Definition at line 140 of file OpenPoseAdapter.cpp.

+ Here is the call graph for this function:

◆ ConvertToOPCustomType() [1/2]

static cv::Mat ConvertToOPCustomType ( const cv::Mat &  x)

Definition at line 99 of file OpenPoseAdapter.h.

◆ ConvertToOPCustomType() [2/2]

static std::string ConvertToOPCustomType ( const std::string &  x)

Definition at line 87 of file OpenPoseAdapter.h.

+ Here is the caller graph for this function:

◆ getDominantColorOfPatch()

armarx::DrawColor24Bit getDominantColorOfPatch ( const CByteImage &  image,
const Vec2d &  point,
int  windowSize 
) const

Definition at line 192 of file OpenPoseAdapter.cpp.

+ Here is the caller graph for this function:

◆ getOpenposeKeypoints()

op::Array< float > getOpenposeKeypoints ( const CByteImage *  imageBuffer)

Definition at line 112 of file OpenPoseAdapter.cpp.

+ Here is the call graph for this function:

◆ getPoseBodyPartPairsRender()

std::vector<unsigned int> getPoseBodyPartPairsRender ( ) const

◆ getPoseColors()

std::vector<float> getPoseColors ( ) const

◆ render2DResultImage()

void render2DResultImage ( const CByteImage &  inputImage,
const op::Array< float > &  keypoints,
CByteImage &  resultImage,
float  renderThreshold 

Definition at line 240 of file OpenPoseAdapter.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ cvMatToOpInput

std::shared_ptr<op::CvMatToOpInput> cvMatToOpInput

Definition at line 127 of file OpenPoseAdapter.h.

◆ cvMatToOpOutput

std::shared_ptr<op::CvMatToOpOutput> cvMatToOpOutput

Definition at line 128 of file OpenPoseAdapter.h.

◆ op_running_mutex

std::mutex op_running_mutex

Definition at line 125 of file OpenPoseAdapter.h.

◆ opOutputToCvMat

std::shared_ptr<op::OpOutputToCvMat> opOutputToCvMat

Definition at line 130 of file OpenPoseAdapter.h.

◆ poseExtractorCaffe

std::shared_ptr<op::PoseExtractorCaffe> poseExtractorCaffe

Definition at line 129 of file OpenPoseAdapter.h.

◆ poseModel

op::PoseModel poseModel

Definition at line 131 of file OpenPoseAdapter.h.

◆ scaleAndSizeExtractor

std::shared_ptr<op::ScaleAndSizeExtractor> scaleAndSizeExtractor

Definition at line 126 of file OpenPoseAdapter.h.

◆ settings

OpenPoseSettings settings

Definition at line 122 of file OpenPoseAdapter.h.

The documentation for this class was generated from the following files: