ext
kintinuous
kfusion
include
io
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
{
10
class
KF_EXPORTS
OpenNISource
11
{
12
public
:
13
typedef
kfusion::PixelRGB
RGB24
;
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;
33
float
depth_focal_length_VGA
;
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 ();
43
int
maxFrameIndex_
;
44
openni::Recorder
rec_
;
45
bool
isOni_
;
46
bool
recording_
;
47
int
rec_count_
;
48
49
};
50
}
kfusion::OpenNISource::baseline
float baseline
Definition:
capture.hpp:34
kfusion::OpenNISource::isRecord
bool isRecord()
Definition:
capture.hpp:26
kfusion::OpenNISource::rec_count_
int rec_count_
Definition:
capture.hpp:47
kfusion::OpenNISource::pixelSize
double pixelSize
Definition:
capture.hpp:35
kfusion::OpenNISource::shadow_value
int shadow_value
Definition:
capture.hpp:32
kfusion::OpenNISource::Impl
Definition:
capture.cpp:17
kfusion::OpenNISource
Definition:
capture.hpp:10
kfusion::OpenNISource::RGB24
kfusion::PixelRGB RGB24
Definition:
capture.hpp:13
kfusion::OpenNISource::impl_
cv::Ptr< Impl > impl_
Definition:
capture.hpp:40
kinfu.hpp
kfusion::OpenNISource::recording_
bool recording_
Definition:
capture.hpp:46
kfusion
Utility.
Definition:
capture.hpp:8
kfusion::OpenNISource::isOni_
bool isOni_
Definition:
capture.hpp:45
kfusion::OpenNISource::max_depth
unsigned short max_depth
Definition:
capture.hpp:36
kfusion::OpenNISource::depth_focal_length_VGA
float depth_focal_length_VGA
Definition:
capture.hpp:33
kfusion::OpenNISource::maxFrameIndex_
int maxFrameIndex_
Definition:
capture.hpp:43
kfusion::PixelRGB
Definition:
types.hpp:77
kfusion::OpenNISource::rec_
openni::Recorder rec_
Definition:
capture.hpp:44
KF_EXPORTS
#define KF_EXPORTS
Definition:
exports.hpp:6
lvr2::hdf5util::open
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 Wed Mar 2 2022 00:37:23