precomp.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <kfusion/types.hpp>
4 #include <kfusion/kinfu.hpp>
8 //#include <opencv2/calib3d/calib3d.hpp>
9 #include <kfusion/internal.hpp>
10 #include <iostream>
11 //#include "vector_functions.h"
12 
13 namespace kfusion
14 {
15  template<typename D, typename S>
16  inline D device_cast(const S& source)
17  {
18  return *reinterpret_cast<const D*>(source.val);
19  }
20 
21  template<>
23  {
24  device::Aff3f aff;
25  Mat3f R = source.rotation();
26  Vec3f t = source.translation();
27  aff.R = device_cast<device::Mat3f>(R);
28  aff.t = device_cast<device::Vec3f>(t);
29  return aff;
30  }
31 }
cv::Vec3f Vec3f
Definition: types.hpp:16
cv::Affine3f Affine3f
Definition: types.hpp:18
cv::Matx33f Mat3f
Definition: types.hpp:15
D device_cast(const S &source)
Definition: precomp.hpp:16
Utility.
Definition: capture.hpp:8


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:08