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
spinnakerWrapper.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_PRODUCER_SPINNAKER_WRAPPER_HPP
2 #define OPENPOSE_PRODUCER_SPINNAKER_WRAPPER_HPP
3
4 #include <openpose/core/common.hpp>
5
6 namespace op
7 {
12 class OP_API SpinnakerWrapper
13 {
14 public:
19 explicit SpinnakerWrapper(const std::string& cameraParameterPath, const Point<int>& cameraResolution,
20 const bool undistortImage, const int cameraIndex = -1);
21
22 virtual ~SpinnakerWrapper();
23
24 std::vector<cv::Mat> getRawFrames();
25
26 std::vector<cv::Mat> getCameraMatrices() const;
27
28 std::vector<cv::Mat> getCameraExtrinsics() const;
29
30 std::vector<cv::Mat> getCameraIntrinsics() const;
31
32 Point<int> getResolution() const;
33
34 bool isOpened() const;
35
36 void release();
37
38 private:
39 // PIMPL idiom
40 // http://www.cppsamples.com/common-tasks/pimpl.html
41 struct ImplSpinnakerWrapper;
42 std::shared_ptr<ImplSpinnakerWrapper> upImpl;
43
44 DELETE_COPY(SpinnakerWrapper);
45 };
46 }
47
48 #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