OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
keypoint.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_UTILITIES_KEYPOINT_HPP
2 #define OPENPOSE_UTILITIES_KEYPOINT_HPP
3
4 #include <openpose/core/common.hpp>
5
6 namespace op
7 {
8 template <typename T>
9 T getDistance(const Array<T>& keypoints, const int person, const int elementA, const int elementB);
10
11 template <typename T>
12 void averageKeypoints(Array<T>& keypointsA, const Array<T>& keypointsB, const int personA);
13
14 template <typename T>
15 void scaleKeypoints(Array<T>& keypoints, const T scale);
16
17 template <typename T>
18 void scaleKeypoints2d(Array<T>& keypoints, const T scaleX, const T scaleY);
19
20 template <typename T>
21 void scaleKeypoints2d(Array<T>& keypoints, const T scaleX, const T scaleY, const T offsetX, const T offsetY);
22
23 template <typename T>
24 void renderKeypointsCpu(Array<T>& frameArray, const Array<T>& keypoints, const std::vector<unsigned int>& pairs,
25 const std::vector<T> colors, const T thicknessCircleRatio,
26 const T thicknessLineRatioWRTCircle, const std::vector<T>& poseScales, const T threshold);
27
28 template <typename T>
29 Rectangle<T> getKeypointsRectangle(const Array<T>& keypoints, const int person, const T threshold);
30
31 template <typename T>
32 T getAverageScore(const Array<T>& keypoints, const int person);
33
34 template <typename T>
35 T getKeypointsArea(const Array<T>& keypoints, const int person, const T threshold);
36
37 template <typename T>
38 int getBiggestPerson(const Array<T>& keypoints, const T threshold);
39
40 template <typename T>
41 int getNonZeroKeypoints(const Array<T>& keypoints, const int person, const T threshold);
42
43 template <typename T>
44 T getDistanceAverage(const Array<T>& keypoints, const int personA, const int personB, const T threshold);
45
46 template <typename T>
47 T getDistanceAverage(const Array<T>& keypointsA, const int personA, const Array<T>& keypointsB, const int personB,
48 const T threshold);
49
62 template <typename T>
63 Array<T> getKeypointsPerson(const Array<T>& keypoints, const int person, const bool noCopy = false);
64
65 template <typename T>
66 float getKeypointsRoi(const Array<T>& keypoints, const int personA, const int personB, const T threshold);
67
68 template <typename T>
69 float getKeypointsRoi(const Array<T>& keypointsA, const int personA, const Array<T>& keypointsB, const int personB,
70 const T threshold);
71 }
72
73 #endif // OPENPOSE_UTILITIES_KEYPOINT_HPP
op::getKeypointsRoi
float getKeypointsRoi(const Array< T > &keypoints, const int personA, const int personB, const T threshold)
op::getDistanceAverage
T getDistanceAverage(const Array< T > &keypoints, const int personA, const int personB, const T threshold)
op::getKeypointsPerson
Array< T > getKeypointsPerson(const Array< T > &keypoints, const int person, const bool noCopy=false)
op::averageKeypoints
void averageKeypoints(Array< T > &keypointsA, const Array< T > &keypointsB, const int personA)
common.hpp
op::scaleKeypoints
void scaleKeypoints(Array< T > &keypoints, const T scale)
op::getDistance
T getDistance(const Array< T > &keypoints, const int person, const int elementA, const int elementB)
op::getKeypointsRectangle
Rectangle< T > getKeypointsRectangle(const Array< T > &keypoints, const int person, const T threshold)
op::scaleKeypoints2d
void scaleKeypoints2d(Array< T > &keypoints, const T scaleX, const T scaleY)
op::getBiggestPerson
int getBiggestPerson(const Array< T > &keypoints, const T threshold)
op::getAverageScore
T getAverageScore(const Array< T > &keypoints, const int person)
op::getNonZeroKeypoints
int getNonZeroKeypoints(const Array< T > &keypoints, const int person, const T threshold)
op::renderKeypointsCpu
void renderKeypointsCpu(Array< T > &frameArray, const Array< T > &keypoints, const std::vector< unsigned int > &pairs, const std::vector< T > colors, const T thicknessCircleRatio, const T thicknessLineRatioWRTCircle, const std::vector< T > &poseScales, const T threshold)
op::getKeypointsArea
T getKeypointsArea(const Array< T > &keypoints, const int person, const T threshold)