kinect2_registration.h
Go to the documentation of this file.
1 
18 #pragma once
19 #ifndef __KINECT2_REGISTRATION_H__
20 #define __KINECT2_REGISTRATION_H__
21 
22 #include <vector>
23 
24 #include <opencv2/opencv.hpp>
25 
27 {
28 public:
29  enum Method
30  {
31  DEFAULT = 0,
32  CPU,
34  };
35 
36 protected:
39  float zNear, zFar;
40 
42 
43  virtual bool init(const int deviceId) = 0;
44 
45 public:
46  virtual ~DepthRegistration();
47 
48  bool init(const cv::Mat &cameraMatrixRegistered, const cv::Size &sizeRegistered, const cv::Mat &cameraMatrixDepth, const cv::Size &sizeDepth,
49  const cv::Mat &distortionDepth, const cv::Mat &rotation, const cv::Mat &translation,
50  const float zNear = 0.5f, const float zFar = 12.0f, const int deviceId = -1);
51 
52  virtual bool registerDepth(const cv::Mat &depth, cv::Mat &registered) = 0;
53 
54  static DepthRegistration *New(Method method = DEFAULT);
55 };
56 
57 #endif //__KINECT2_REGISTRATION_H__
static DepthRegistration * New(Method method=DEFAULT)
virtual bool registerDepth(const cv::Mat &depth, cv::Mat &registered)=0
virtual bool init(const int deviceId)=0


kinect2_registration
Author(s):
autogenerated on Wed Jan 3 2018 03:48:04