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
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  void scale(Array<float>& arrayToScale, const double scaleInputToOutput, const double scaleNetToOutput,
15  const Point<int>& producerSize) const;
16 
17  void scale(std::vector<Array<float>>& arraysToScale, const double scaleInputToOutput,
18  const double scaleNetToOutput, const Point<int>& producerSize) const;
19 
20  void scale(std::vector<std::vector<std::array<float,3>>>& poseCandidates, const double scaleInputToOutput,
21  const double scaleNetToOutput, const Point<int>& producerSize) const;
22 
23  private:
24  const ScaleMode mScaleMode;
25  };
26 }
27 
28 #endif // OPENPOSE_CORE_KEYPOINT_SCALER_HPP
Definition: keypointScaler.hpp:9
ScaleMode
Definition: enumClasses.hpp:6
std::vector< T, Alloc > vector
Definition: cl2.hpp:567
#define OP_API
Definition: macros.hpp:15