All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
keypointScaler.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_CORE_KEYPOINT_SCALER_HPP
#define OPENPOSE_CORE_KEYPOINT_SCALER_HPP
#include <openpose/core/common.hpp>
#include <openpose/core/enumClasses.hpp>
namespace op
{
class OP_API KeypointScaler
{
public:
explicit KeypointScaler(const ScaleMode scaleMode);
virtual ~KeypointScaler();
void scale(Array<float>& arrayToScale, const double scaleInputToOutput, const double scaleNetToOutput,
const Point<int>& producerSize) const;
void scale(std::vector<Array<float>>& arraysToScale, const double scaleInputToOutput,
const double scaleNetToOutput, const Point<int>& producerSize) const;
void scale(std::vector<std::vector<std::array<float,3>>>& poseCandidates, const double scaleInputToOutput,
const double scaleNetToOutput, const Point<int>& producerSize) const;
private:
const ScaleMode mScaleMode;
};
}
#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