depth_registration_cpu.h
Go to the documentation of this file.
1 
18 #pragma once
19 #ifndef __DEPTH_REGISTRATION_CPU_H__
20 #define __DEPTH_REGISTRATION_CPU_H__
21 
22 #include <Eigen/Geometry>
23 
25 
27 {
28 private:
29  cv::Mat lookupX, lookupY;
30  Eigen::Matrix4d proj;
31  double fx, fy, cx, cy;
32 
33 public:
35 
37 
38  bool init(const int deviceId);
39 
40  bool registerDepth(const cv::Mat &depth, cv::Mat &registered);
41 
42 private:
43  void createLookup();
44 
45  uint16_t interpolate(const cv::Mat &in, const float &x, const float &y) const;
46 
47  void remapDepth(const cv::Mat &depth, cv::Mat &scaled) const;
48  void projectDepth(const cv::Mat &scaled, cv::Mat &registered) const;
49 };
50 
51 #endif //__DEPTH_REGISTRATION_CPU_H__
bool init(const int deviceId)
void projectDepth(const cv::Mat &scaled, cv::Mat &registered) const
bool registerDepth(const cv::Mat &depth, cv::Mat &registered)
void remapDepth(const cv::Mat &depth, cv::Mat &scaled) const
uint16_t interpolate(const cv::Mat &in, const float &x, const float &y) const


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