OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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
4 #include <openpose/core/common.hpp>
5 #include <openpose/core/enumClasses.hpp>
6
7 namespace op
8 {
9 class OP_API KeypointScaler
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
op::KeypointScaler
Definition: keypointScaler.hpp:9
op::Point< int >
common.hpp
op::ScaleMode
ScaleMode
Definition: enumClasses.hpp:6
op::Array< float >
cl::vector
std::vector< T, Alloc > vector
Definition: cl2.hpp:567
OP_API
#define OP_API
Definition: macros.hpp:19
enumClasses.hpp