AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
BodyKeyPoint Class Reference

BodyKeyPoint class is used for body keypoint creations and manipulations. More...

#include <BodyKeyPoint.hpp>

Inheritance diagram for BodyKeyPoint:
Point

Public Member Functions

 BodyKeyPoint (float x, float y, float confidence, Point *decorated=nullptr)
 Construct a new Body Keypoint object. More...
 
float getConfidence (void)
 Get the confidence value. More...
 
float getX (void)
 Get the Point's x coordinate value. More...
 
float getY (void)
 Get the Point's y coordinate value. More...
 
const PointgetDecorated (void)
 Get the pointer to Point used to check if that's a "decorated" Point. More...
 

Protected Member Functions

void setX (float x)
 Set the Point's x coordinate value. More...
 
void setY (float y)
 Set the Point's y coordinate value. More...
 

Private Member Functions

void setConfidence (float confidence)
 Set the confidence value. More...
 

Private Attributes

float confidence
 The confidence value is an OpenPose parameter to evaluate how accurate the process was while determining this particular joint point. More...
 
float x
 Point's x coordinate. More...
 
float y
 Point's y coordinate. More...
 
const Pointdecorated
 A pointer to Point. More...
 

Detailed Description

BodyKeyPoint class is used for body keypoint creations and manipulations.

BodyKeyPoint class is a class that represents a Body Keypoint with its own x coordinate and y coordinate. This class inherits from Point and adds the "confidence" detail in order to keep track of the OpenPose confidence on this particular point.

Definition at line 24 of file BodyKeyPoint.hpp.

Constructor & Destructor Documentation

◆ BodyKeyPoint()

BodyKeyPoint::BodyKeyPoint ( float  x,
float  y,
float  confidence,
Point decorated = nullptr 
)

Construct a new Body Keypoint object.

Parameters
x
y
confidence
decorated
See also
Point (float x, float y, Point * decorated = nullptr) : decorated(decorated)

Definition at line 21 of file BodyKeyPoint.cpp.

21 : Point(x, y, decorated) {
23}
void setConfidence(float confidence)
Set the confidence value.
float confidence
The confidence value is an OpenPose parameter to evaluate how accurate the process was while determin...
const Point * decorated
A pointer to Point.
Definition: Point.hpp:34
float x
Point's x coordinate.
Definition: Point.hpp:26
Point(float x, float y, Point *decorated=nullptr)
Construct a new Point object.
Definition: Point.hpp:53
float y
Point's y coordinate.
Definition: Point.hpp:30

References confidence, and setConfidence().

Member Function Documentation

◆ getConfidence()

float BodyKeyPoint::getConfidence ( void  )

Get the confidence value.

Returns
float

Definition at line 25 of file BodyKeyPoint.cpp.

25 {
26 return this->confidence;
27}

References confidence.

◆ getDecorated()

const Point * Point::getDecorated ( void  )
inherited

Get the pointer to Point used to check if that's a "decorated" Point.

Returns
const Point *

Definition at line 37 of file Point.cpp.

37 {
38 return this->decorated;
39}

References Point::decorated.

Referenced by Point::~Point().

◆ getX()

float Point::getX ( void  )
inherited

Get the Point's x coordinate value.

Returns
float

Definition at line 29 of file Point.cpp.

29 {
30 return this->x;
31}

References Point::x.

◆ getY()

float Point::getY ( void  )
inherited

Get the Point's y coordinate value.

Returns
float

Definition at line 33 of file Point.cpp.

33 {
34 return this->y;
35}

References Point::y.

◆ setConfidence()

void BodyKeyPoint::setConfidence ( float  confidence)
private

Set the confidence value.

Parameters
confidence

Definition at line 15 of file BodyKeyPoint.cpp.

15 {
16 this->confidence = confidence;
17}

References confidence.

Referenced by BodyKeyPoint().

◆ setX()

void Point::setX ( float  x)
protectedinherited

Set the Point's x coordinate value.

Parameters
xPoint's x coordinate value.

Definition at line 15 of file Point.cpp.

15 {
16 this->x = x;
17}

References Point::x.

Referenced by Point::Point().

◆ setY()

void Point::setY ( float  y)
protectedinherited

Set the Point's y coordinate value.

Parameters
yPoint's y coordinate value.

Definition at line 19 of file Point.cpp.

19 {
20 this->y = y;
21}

References Point::y.

Referenced by Point::Point().

Member Data Documentation

◆ confidence

float BodyKeyPoint::confidence
private

The confidence value is an OpenPose parameter to evaluate how accurate the process was while determining this particular joint point.

Definition at line 30 of file BodyKeyPoint.hpp.

Referenced by BodyKeyPoint(), getConfidence(), and setConfidence().

◆ decorated

const Point* Point::decorated
privateinherited

A pointer to Point.

Definition at line 34 of file Point.hpp.

Referenced by Point::getDecorated().

◆ x

float Point::x
privateinherited

Point's x coordinate.

Definition at line 26 of file Point.hpp.

Referenced by Point::getX(), Point::Point(), and Point::setX().

◆ y

float Point::y
privateinherited

Point's y coordinate.

Definition at line 30 of file Point.hpp.

Referenced by Point::getY(), Point::Point(), and Point::setY().


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