licornea_tools
kinect_reprojection.h
Go to the documentation of this file.
1 #ifndef LICORNEA_KINECT_REPROJECTION_H_
2 #define LICORNEA_KINECT_REPROJECTION_H_
3 
4 #include "../../lib/opencv.h"
5 #include "../../lib/color.h"
7 #include "ir_to_color_sample.h"
8 #include <vector>
9 #include <tuple>
10 
11 namespace tlz {
12 
13 
15 private:
16  kinect_reprojection_parameters reprojection_parameters_;
17 
18 public:
20 
21  kinect_reprojection_parameters& parameters() { return reprojection_parameters_; }
22  const kinect_reprojection_parameters& parameters() const { return reprojection_parameters_; }
23 
24  std::vector<vec2> reproject_points_ir_to_color(
25  const std::vector<vec2> distorted_ir_i_xy,
26  const std::vector<real>& ir_z,
27  std::vector<real>& out_color_z,
28  bool distort_color = true
29  ) const;
30 
31  template<typename Value> using sample = ir_to_color_sample<Value>;
32 
33  template<typename Value, typename Depth>
34  std::vector<sample<Value>> reproject_ir_to_color_samples(
35  const cv::Mat_<Value>& distorted_ir_values,
36  const cv::Mat_<Depth>& distorted_ir_z,
37  bool distort_color = true
38  ) const;
39 };
40 
41 }
42 
43 #include "kinect_reprojection.tcc"
44 
45 #endif
std::vector< vec2 > reproject_points_ir_to_color(const std::vector< vec2 > distorted_ir_i_xy, const std::vector< real > &ir_z, std::vector< real > &out_color_z, bool distort_color=true) const
kinect_reprojection(const kinect_reprojection_parameters &)
const kinect_reprojection_parameters & parameters() const
kinect_reprojection_parameters & parameters()
std::vector< sample< Value > > reproject_ir_to_color_samples(const cv::Mat_< Value > &distorted_ir_values, const cv::Mat_< Depth > &distorted_ir_z, bool distort_color=true) const