All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
spinnakerWrapper.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_PRODUCER_SPINNAKER_WRAPPER_HPP
#define OPENPOSE_PRODUCER_SPINNAKER_WRAPPER_HPP
#include <openpose/core/common.hpp>
namespace op
{
class OP_API SpinnakerWrapper
{
public:
explicit SpinnakerWrapper(const std::string& cameraParameterPath, const Point<int>& cameraResolution,
const bool undistortImage, const int cameraIndex = -1);
virtual ~SpinnakerWrapper();
std::vector<cv::Mat> getRawFrames();
std::vector<cv::Mat> getCameraMatrices() const;
std::vector<cv::Mat> getCameraExtrinsics() const;
std::vector<cv::Mat> getCameraIntrinsics() const;
Point<int> getResolution() const;
bool isOpened() const;
void release();
private:
// PIMPL idiom
// http://www.cppsamples.com/common-tasks/pimpl.html
struct ImplSpinnakerWrapper;
std::shared_ptr<ImplSpinnakerWrapper> upImpl;
DELETE_COPY(SpinnakerWrapper);
};
}
#endif // OPENPOSE_PRODUCER_SPINNAKER_WRAPPER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
op::Point< int >
op::SpinnakerWrapper
Definition: spinnakerWrapper.hpp:12
common.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574