OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
keypoint.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_UTILITIES_KEYPOINT_HPP
2 #define OPENPOSE_UTILITIES_KEYPOINT_HPP
3 
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>
25  Array<T>& frameArray, const Array<T>& keypoints, const std::vector<unsigned int>& pairs,
26  const std::vector<T> colors, const T thicknessCircleRatio, const T thicknessLineRatioWRTCircle,
27  const std::vector<T>& poseScales, const T threshold);
28 
29  template <typename T>
31  const Array<T>& keypoints, const int person, const T threshold, const int firstIndex = 0,
32  const int lastIndex = -1);
33 
34  template <typename T>
35  T getAverageScore(const Array<T>& keypoints, const int person);
36 
37  template <typename T>
38  T getKeypointsArea(const Array<T>& keypoints, const int person, const T threshold);
39 
40  template <typename T>
41  int getBiggestPerson(const Array<T>& keypoints, const T threshold);
42 
43  template <typename T>
44  int getNonZeroKeypoints(const Array<T>& keypoints, const int person, const T threshold);
45 
46  template <typename T>
47  T getDistanceAverage(const Array<T>& keypoints, const int personA, const int personB, const T threshold);
48 
49  template <typename T>
51  const Array<T>& keypointsA, const int personA, const Array<T>& keypointsB, const int personB,
52  const T threshold);
53 
66  template <typename T>
67  Array<T> getKeypointsPerson(const Array<T>& keypoints, const int person, const bool noCopy = false);
68 
69  template <typename T>
70  float getKeypointsRoi(const Array<T>& keypoints, const int personA, const int personB, const T threshold);
71 
72  template <typename T>
74  const Array<T>& keypointsA, const int personA, const Array<T>& keypointsB, const int personB,
75  const T threshold);
76 
77  template <typename T>
79  const Rectangle<T>& rectangleA, const Rectangle<T>& rectangleB);
80 }
81 
82 #endif // OPENPOSE_UTILITIES_KEYPOINT_HPP
T getAverageScore(const Array< T > &keypoints, const int person)
T getKeypointsArea(const Array< T > &keypoints, const int person, const T threshold)
void averageKeypoints(Array< T > &keypointsA, const Array< T > &keypointsB, const int personA)
float getKeypointsRoi(const Array< T > &keypoints, const int personA, const int personB, const T threshold)
Array< T > getKeypointsPerson(const Array< T > &keypoints, const int person, const bool noCopy=false)
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)
int getNonZeroKeypoints(const Array< T > &keypoints, const int person, const T threshold)
void scaleKeypoints2d(Array< T > &keypoints, const T scaleX, const T scaleY)
void scaleKeypoints(Array< T > &keypoints, const T scale)
Rectangle< T > getKeypointsRectangle(const Array< T > &keypoints, const int person, const T threshold, const int firstIndex=0, const int lastIndex=-1)
T getDistance(const Array< T > &keypoints, const int person, const int elementA, const int elementB)
int getBiggestPerson(const Array< T > &keypoints, const T threshold)
T getDistanceAverage(const Array< T > &keypoints, const int personA, const int personB, const T threshold)