OpenPoseAdapter Class Reference

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

Classes

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 65 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 152 of file OpenPoseAdapter.cpp.

+ Here is the call graph for this function:

◆ ConvertToOPCustomType() [1/2]

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

Definition at line 105 of file OpenPoseAdapter.h.

◆ ConvertToOPCustomType() [2/2]

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

Definition at line 91 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 208 of file OpenPoseAdapter.cpp.

+ Here is the caller graph for this function:

◆ getOpenposeKeypoints()

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

Definition at line 121 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 260 of file OpenPoseAdapter.cpp.

Member Data Documentation

◆ cvMatToOpInput

std::shared_ptr<op::CvMatToOpInput> cvMatToOpInput

Definition at line 138 of file OpenPoseAdapter.h.

◆ cvMatToOpOutput

std::shared_ptr<op::CvMatToOpOutput> cvMatToOpOutput

Definition at line 139 of file OpenPoseAdapter.h.

◆ op_running_mutex

std::mutex op_running_mutex

Definition at line 136 of file OpenPoseAdapter.h.

◆ opOutputToCvMat

std::shared_ptr<op::OpOutputToCvMat> opOutputToCvMat

Definition at line 141 of file OpenPoseAdapter.h.

◆ poseExtractorCaffe

std::shared_ptr<op::PoseExtractorCaffe> poseExtractorCaffe

Definition at line 140 of file OpenPoseAdapter.h.

◆ poseModel

op::PoseModel poseModel

Definition at line 142 of file OpenPoseAdapter.h.

◆ scaleAndSizeExtractor

std::shared_ptr<op::ScaleAndSizeExtractor> scaleAndSizeExtractor

Definition at line 137 of file OpenPoseAdapter.h.

◆ settings

OpenPoseSettings settings

Definition at line 133 of file OpenPoseAdapter.h.


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