AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
|
The CoordinateMappingManager class is a class that is responsible for converting coordinates values from a coordinates' space to another one. A certain coordinates' space has to inherit from this class and implement its own conversion method, overriding the base class method. More...
#include <CoordinateMappingManager.hpp>
Public Member Functions | |
CoordinateMappingManager (Room room) | |
Construct a new Coordinate Mapping Manager object. More... | |
virtual std::vector< Point3D * > * | mapToMeters (std::vector< Point3D * > pointsToMap, std::vector< bool > bodyKeyPointsMap, float xOrigin, float zOrigin) |
This method requires pointers' Point3D's vector, the related vector map, and the original coordinates' space origins. It returns a pointer to pointers' Point3D's vector that actually contains all input Points whose coordinates' values have been converted to the new coordinates' space. In the parent class, the conversion just converts the RealSense's values to more accessible axes' origins. More... | |
Protected Member Functions | |
Room | getRoom (void) |
Returns the room object. More... | |
float | transformWidthCoordinate (float widthCoordinate) |
Converts width value. More... | |
float | transformHeightCoordinate (float heightCoordinate) |
Converts height value. More... | |
float | inverseTransform (float inputNumber) |
Implements the inverse conversion on the input value. More... | |
Protected Attributes | |
const Room | room |
Specific room within which the coordinate mapping will be done. More... | |
The CoordinateMappingManager class is a class that is responsible for converting coordinates values from a coordinates' space to another one. A certain coordinates' space has to inherit from this class and implement its own conversion method, overriding the base class method.
Definition at line 28 of file CoordinateMappingManager.hpp.
|
inline |
Construct a new Coordinate Mapping Manager object.
room | Specific room within which the coordinate mapping will be done. |
Definition at line 63 of file CoordinateMappingManager.hpp.
|
protected |
Returns the room object.
Definition at line 16 of file CoordinateMappingManager.cpp.
References room.
Referenced by mapToMeters(), UnityCoordinateMappingManager::mapToMeters(), transformHeightCoordinate(), and transformWidthCoordinate().
|
protected |
Implements the inverse conversion on the input value.
inputNumber | Input value to convert. |
Definition at line 42 of file CoordinateMappingManager.cpp.
|
virtual |
This method requires pointers' Point3D's vector, the related vector map, and the original coordinates' space origins. It returns a pointer to pointers' Point3D's vector that actually contains all input Points whose coordinates' values have been converted to the new coordinates' space. In the parent class, the conversion just converts the RealSense's values to more accessible axes' origins.
pointsToMap | |
bodyKeyPointsMap | |
xOrigin | |
zOrigin |
Reimplemented in UnityCoordinateMappingManager.
Definition at line 57 of file CoordinateMappingManager.cpp.
References getRoom(), transformHeightCoordinate(), and transformWidthCoordinate().
Referenced by Skeleton::generateSkeleton().
|
protected |
Converts height value.
heightCoordinate | Input height value. |
Definition at line 26 of file CoordinateMappingManager.cpp.
References Room::getHeightOffset(), Room::getMaxHeight(), Room::getMaxHeightRS(), and getRoom().
Referenced by mapToMeters(), and UnityCoordinateMappingManager::mapToMeters().
|
protected |
Converts width value.
widthCoordinate | Input width value. |
Definition at line 20 of file CoordinateMappingManager.cpp.
References Room::getMinWidth(), and getRoom().
Referenced by mapToMeters(), and UnityCoordinateMappingManager::mapToMeters().
|
protected |
Specific room within which the coordinate mapping will be done.
Definition at line 33 of file CoordinateMappingManager.hpp.
Referenced by getRoom().