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  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
Definition: keypointScaler.hpp:9
ScaleMode
Definition: enumClasses.hpp:6
std::vector< T, Alloc > vector
Definition: cl2.hpp:567
#define OP_API
Definition: macros.hpp:18