All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
poseExtractorCaffe.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_POSE_POSE_EXTRACTOR_CAFFE_HPP
#define OPENPOSE_POSE_POSE_EXTRACTOR_CAFFE_HPP
#include <openpose/core/common.hpp>
#include <openpose/pose/enumClasses.hpp>
#include <openpose/pose/poseExtractorNet.hpp>
namespace op
{
class OP_API PoseExtractorCaffe : public PoseExtractorNet
{
public:
PoseExtractorCaffe(const PoseModel poseModel, const std::string& modelFolder, const int gpuId,
const std::vector<HeatMapType>& heatMapTypes = {},
const ScaleMode heatMapScale = ScaleMode::ZeroToOne,
const bool addPartCandidates = false,
const bool enableGoogleLogging = true);
virtual ~PoseExtractorCaffe();
void netInitializationOnThread();
void forwardPass(const std::vector<Array<float>>& inputNetData, const Point<int>& inputDataSize,
const std::vector<double>& scaleInputToNetInputs = {1.f});
const float* getCandidatesCpuConstPtr() const;
const float* getCandidatesGpuConstPtr() const;
const float* getHeatMapCpuConstPtr() const;
const float* getHeatMapGpuConstPtr() const;
std::vector<int> getHeatMapSize() const;
const float* getPoseGpuConstPtr() const;
private:
// PIMPL idiom
// http://www.cppsamples.com/common-tasks/pimpl.html
struct ImplPoseExtractorCaffe;
std::unique_ptr<ImplPoseExtractorCaffe> upImpl;
// PIMP requires DELETE_COPY & destructor, or extra code
// http://oliora.github.io/2015/12/29/pimpl-and-rule-of-zero.html
DELETE_COPY(PoseExtractorCaffe);
};
}
#endif // OPENPOSE_POSE_POSE_EXTRACTOR_CAFFE_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
enumClasses.hpp
op::PoseModel
PoseModel
Definition: enumClasses.hpp:9
poseExtractorNet.hpp
op::Point< int >
common.hpp
op::ScaleMode::ZeroToOne
op::PoseExtractorCaffe
Definition: poseExtractorCaffe.hpp:10
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
op::PoseExtractorNet
Definition: poseExtractorNet.hpp:11
cl::string
std::string string
Definition: cl2.hpp:574