OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 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 
5 
6 namespace op
7 {
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 
45  };
46 }
47 
48 #endif // OPENPOSE_PRODUCER_SPINNAKER_WRAPPER_HPP
#define DELETE_COPY(className)
Definition: macros.hpp:33
Definition: spinnakerWrapper.hpp:12
#define OP_API
Definition: macros.hpp:18
std::string string
Definition: cl2.hpp:574