OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 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 
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,
22  const T offsetY);
23 
24  template <typename T>
25  void renderKeypointsCpu(Array<T>& frameArray, const Array<T>& keypoints, const std::vector<unsigned int>& pairs,
26  const std::vector<T> colors, const T thicknessCircleRatio,
27  const T thicknessLineRatioWRTCircle, const std::vector<T>& poseScales, const T threshold);
28 
29  template <typename T>
30  Rectangle<T> getKeypointsRectangle(const Array<T>& keypoints, const int person, const T threshold);
31 
32  template <typename T>
33  T getAverageScore(const Array<T>& keypoints, const int person);
34 
35  template <typename T>
36  T getKeypointsArea(const Array<T>& keypoints, const int person, const T threshold);
37 
38  template <typename T>
39  int getBiggestPerson(const Array<T>& keypoints, const T threshold);
40 }
41 
42 #endif // OPENPOSE_UTILITIES_KEYPOINT_HPP
void averageKeypoints(Array< T > &keypointsA, const Array< T > &keypointsB, const int personA)
void scaleKeypoints(Array< T > &keypoints, const T scale)
T getDistance(const Array< T > &keypoints, const int person, const int elementA, const int elementB)
Rectangle< T > getKeypointsRectangle(const Array< T > &keypoints, const int person, const T threshold)
void scaleKeypoints2d(Array< T > &keypoints, const T scaleX, const T scaleY)
int getBiggestPerson(const Array< T > &keypoints, const T threshold)
T getAverageScore(const Array< T > &keypoints, const int person)
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)
T getKeypointsArea(const Array< T > &keypoints, const int person, const T threshold)