capture.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <OpenNI.h>
4 #include <kfusion/kinfu.hpp>
5 #include <opencv2/core/core.hpp>
6 #include <string>
7 
8 namespace kfusion
9 {
11  {
12  public:
14 
15  enum { PROP_OPENNI_REGISTRATION_ON = 104 };
16 
17  OpenNISource();
18  OpenNISource(int device);
19  OpenNISource(const std::string& oni_filename);
20 
21  void open(int device);
22  void open(const std::string& oni_filename);
23  void release();
24  void triggerRecord();
25  void triggerPause();
26  bool isRecord(){return isOni_;}
27  ~OpenNISource();
28 
29  int grab(cv::Mat &depth, cv::Mat &image);
30 
31  //parameters taken from camera/oni
32  int shadow_value, no_sample_value;
34  float baseline; // mm
35  double pixelSize; // mm
36  unsigned short max_depth; // mm
37 
38  bool setRegistration (bool value = false);
39  private:
40  struct Impl;
41  cv::Ptr<Impl> impl_;
42  void getParams ();
44  openni::Recorder rec_;
45  bool isOni_;
46  bool recording_;
48 
49  };
50 }
float depth_focal_length_VGA
Definition: capture.hpp:33
openni::Recorder rec_
Definition: capture.hpp:44
cv::Ptr< Impl > impl_
Definition: capture.hpp:40
unsigned short max_depth
Definition: capture.hpp:36
#define KF_EXPORTS
Definition: exports.hpp:6
kfusion::PixelRGB RGB24
Definition: capture.hpp:13
Utility.
Definition: capture.hpp:8
std::shared_ptr< HighFive::File > open(const std::string &filename)
Definition: Hdf5Util.cpp:202


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:06