OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
keypointScaler.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_CORE_KEYPOINT_SCALER_HPP
2 #define OPENPOSE_CORE_KEYPOINT_SCALER_HPP
3 
6 
7 namespace op
8 {
10  {
11  public:
12  explicit KeypointScaler(const ScaleMode scaleMode);
13 
14  virtual ~KeypointScaler();
15 
16  void scale(Array<float>& arrayToScale, const double scaleInputToOutput, const double scaleNetToOutput,
17  const Point<int>& producerSize) const;
18 
19  void scale(std::vector<Array<float>>& arraysToScale, const double scaleInputToOutput,
20  const double scaleNetToOutput, const Point<int>& producerSize) const;
21 
22  void scale(std::vector<std::vector<std::array<float,3>>>& poseCandidates, const double scaleInputToOutput,
23  const double scaleNetToOutput, const Point<int>& producerSize) const;
24 
25  private:
26  const ScaleMode mScaleMode;
27  };
28 }
29 
30 #endif // OPENPOSE_CORE_KEYPOINT_SCALER_HPP
KeypointScaler(const ScaleMode scaleMode)
void scale(std::vector< std::vector< std::array< float, 3 >>> &poseCandidates, const double scaleInputToOutput, const double scaleNetToOutput, const Point< int > &producerSize) const
virtual ~KeypointScaler()
void scale(std::vector< Array< float >> &arraysToScale, const double scaleInputToOutput, const double scaleNetToOutput, const Point< int > &producerSize) const
void scale(Array< float > &arrayToScale, const double scaleInputToOutput, const double scaleNetToOutput, const Point< int > &producerSize) const
#define OP_API
Definition: macros.hpp:18
ScaleMode
Definition: enumClasses.hpp:7