AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
CoordinateMappingManager.hpp
Go to the documentation of this file.
1//
2// CoordinateMappingManager.hpp
3// AI Watch A1
4//
5// Created by Denny Caruso on 26/07/22.
6//
7
8// License: Apache 2.0. See LICENSE file in root directory.
9// Copyright(c) 2022. All Rights Reserved.
10
11#ifndef CoordinateMappingManager_hpp
12#define CoordinateMappingManager_hpp
13
14#include <vector>
15#include <cmath>
16#include "../../Room/CVPR_Lab.hpp"
17#include "../../Points/Point3D.hpp"
18#include "../../Points/BodyKeyPoint.hpp"
19
20
21
29protected:
33 const Room room;
34
39 Room getRoom (void);
45 float transformWidthCoordinate (float widthCoordinate);
51 float transformHeightCoordinate (float heightCoordinate);
57 float inverseTransform (float inputNumber);
58public:
75 virtual std::vector <Point3D *> * mapToMeters (std::vector <Point3D *> pointsToMap, std::vector <bool> bodyKeyPointsMap,
76 float xOrigin, float zOrigin);
77};
78
79
80
87public:
105 std::vector <Point3D *> * mapToMeters (std::vector <Point3D *> pointsToMap, std::vector <bool> bodyKeyPointsMap,
106 float xOrigin, float zOrigin) override;
107};
108
109#endif /* CoordinateMappingManager_hpp */
The CoordinateMappingManager class is a class that is responsible for converting coordinates values f...
float inverseTransform(float inputNumber)
Implements the inverse conversion on the input value.
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...
float transformWidthCoordinate(float widthCoordinate)
Converts width value.
const Room room
Specific room within which the coordinate mapping will be done.
CoordinateMappingManager(Room room)
Construct a new Coordinate Mapping Manager object.
float transformHeightCoordinate(float heightCoordinate)
Converts height value.
Room getRoom(void)
Returns the room object.
Room class represents the Room abstraction. A Room object has different specifications,...
Definition: Room.hpp:64
The UnityCoordinateMappingManager class is a class that is responsible for converting coordinates val...
std::vector< Point3D * > * mapToMeters(std::vector< Point3D * > pointsToMap, std::vector< bool > bodyKeyPointsMap, float xOrigin, float zOrigin) override
This method requires pointers' Point3D's vector, the related vector map, and the original coordinates...
UnityCoordinateMappingManager(Room room)
Construct a new Unity Coordinate Mapping Manager object.