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  OP_API T getDistance(const Array<T>& keypoints, const int person, const int elementA, const int elementB);
10 
11  template <typename T>
12  OP_API void averageKeypoints(Array<T>& keypointsA, const Array<T>& keypointsB, const int personA);
13 
14  template <typename T>
15  OP_API void scaleKeypoints(Array<T>& keypoints, const T scale);
16 
17  template <typename T>
18  OP_API void scaleKeypoints2d(Array<T>& keypoints, const T scaleX, const T scaleY);
19 
20  template <typename T>
21  OP_API void scaleKeypoints2d(Array<T>& keypoints, const T scaleX, const T scaleY, const T offsetX,
22  const T offsetY);
23 
24  template <typename T>
25  OP_API void renderKeypointsCpu(Array<T>& frameArray, const Array<T>& keypoints,
26  const std::vector<unsigned int>& pairs, const std::vector<T> colors,
27  const T thicknessCircleRatio, const T thicknessLineRatioWRTCircle,
28  const std::vector<T>& poseScales, const T threshold);
29 
30  template <typename T>
31  OP_API Rectangle<T> getKeypointsRectangle(const Array<T>& keypoints, const int person,
32  const T threshold);
33 
34  template <typename T>
35  OP_API T getAverageScore(const Array<T>& keypoints, const int person);
36 
37  template <typename T>
38  OP_API T getKeypointsArea(const Array<T>& keypoints, const int person, const T threshold);
39 
40  template <typename T>
41  OP_API int getBiggestPerson(const Array<T>& keypoints, const T threshold);
42 }
43 
44 #endif // OPENPOSE_UTILITIES_KEYPOINT_HPP
OP_API Rectangle< T > getKeypointsRectangle(const Array< T > &keypoints, const int person, const T threshold)
OP_API T getDistance(const Array< T > &keypoints, const int person, const int elementA, const int elementB)
OP_API 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_API T getKeypointsArea(const Array< T > &keypoints, const int person, const T threshold)
OP_API void averageKeypoints(Array< T > &keypointsA, const Array< T > &keypointsB, const int personA)
OP_API T getAverageScore(const Array< T > &keypoints, const int person)
OP_API void scaleKeypoints2d(Array< T > &keypoints, const T scaleX, const T scaleY)
OP_API int getBiggestPerson(const Array< T > &keypoints, const T threshold)
#define OP_API
Definition: macros.hpp:18
OP_API void scaleKeypoints(Array< T > &keypoints, const T scale)