SuperimposeMesh
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SISkeleton Class Reference

#include <SISkeleton.h>

Inheritance diagram for SISkeleton:
[legend]

Public Types

typedef std::vector< double > ModelPose
 
typedef std::multimap< std::string, ModelPoseModelPoseContainer
 
typedef std::pair< std::string, ModelPoseModelPoseContainerElement
 

Public Member Functions

 SISkeleton (const std::list< std::string > &skeleton_part, const float cam_fx, const float cam_fy, const float cam_cx, const float cam_cy)
 
 ~SISkeleton ()
 
bool superimpose (const ModelPoseContainer &objpos_map, const double *cam_x, const double *cam_o, cv::Mat &img) override
 
bool setProjectionMatrix (const float cam_fx, const float cam_fy, const float cam_cx, const float cam_cy)
 

Protected Member Functions

glm::vec2 getWorldToPixel (const double *world_point)
 

Private Attributes

const std::string log_ID_ = "[SI::SISkeleton]"
 
std::list< std::string > skeleton_part_
 
glm::mat3 projection_
 
glm::mat3 root_to_eye_
 
glm::vec3 cam_pos_
 

Detailed Description

Definition at line 19 of file SISkeleton.h.

Member Typedef Documentation

◆ ModelPose

typedef std::vector<double> Superimpose::ModelPose
inherited

Definition at line 23 of file Superimpose.h.

◆ ModelPoseContainer

typedef std::multimap<std::string, ModelPose> Superimpose::ModelPoseContainer
inherited

Definition at line 25 of file Superimpose.h.

◆ ModelPoseContainerElement

typedef std::pair<std::string, ModelPose> Superimpose::ModelPoseContainerElement
inherited

Definition at line 27 of file Superimpose.h.

Constructor & Destructor Documentation

◆ SISkeleton()

SISkeleton::SISkeleton ( const std::list< std::string > &  skeleton_part,
const float  cam_fx,
const float  cam_fy,
const float  cam_cx,
const float  cam_cy 
)

Definition at line 21 of file SISkeleton.cpp.

◆ ~SISkeleton()

SISkeleton::~SISkeleton ( )

Definition at line 36 of file SISkeleton.cpp.

Member Function Documentation

◆ getWorldToPixel()

glm::vec2 SISkeleton::getWorldToPixel ( const double *  world_point)
protected

Definition at line 98 of file SISkeleton.cpp.

References cam_pos_, projection_, and root_to_eye_.

◆ setProjectionMatrix()

bool SISkeleton::setProjectionMatrix ( const float  cam_fx,
const float  cam_fy,
const float  cam_cx,
const float  cam_cy 
)

Definition at line 77 of file SISkeleton.cpp.

◆ superimpose()

bool SISkeleton::superimpose ( const ModelPoseContainer objpos_map,
const double *  cam_x,
const double *  cam_o,
cv::Mat &  img 
)
overridevirtual

Implements Superimpose.

Definition at line 41 of file SISkeleton.cpp.

Member Data Documentation

◆ cam_pos_

glm::vec3 SISkeleton::cam_pos_
private

Definition at line 42 of file SISkeleton.h.

Referenced by getWorldToPixel().

◆ log_ID_

const std::string SISkeleton::log_ID_ = "[SI::SISkeleton]"
private

Definition at line 34 of file SISkeleton.h.

◆ projection_

glm::mat3 SISkeleton::projection_
private

Definition at line 38 of file SISkeleton.h.

Referenced by getWorldToPixel().

◆ root_to_eye_

glm::mat3 SISkeleton::root_to_eye_
private

Definition at line 40 of file SISkeleton.h.

Referenced by getWorldToPixel().

◆ skeleton_part_

std::list<std::string> SISkeleton::skeleton_part_
private

Definition at line 36 of file SISkeleton.h.


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