Main Page
Namespaces
Classes
Files
File List
File Members
include
kinect2_registration
kinect2_registration.h
Go to the documentation of this file.
1
18
#pragma once
19
#ifndef __KINECT2_REGISTRATION_H__
20
#define __KINECT2_REGISTRATION_H__
21
22
#include <vector>
23
24
#include <opencv2/opencv.hpp>
25
26
class
DepthRegistration
27
{
28
public
:
29
enum
Method
30
{
31
DEFAULT
= 0,
32
CPU
,
33
OPENCL
34
};
35
36
protected
:
37
cv::Mat
cameraMatrixRegistered
,
cameraMatrixDepth
,
rotation
,
translation
,
mapX
,
mapY
;
38
cv::Size
sizeRegistered
,
sizeDepth
;
39
float
zNear
,
zFar
;
40
41
DepthRegistration
();
42
43
virtual
bool
init
(
const
int
deviceId) = 0;
44
45
public
:
46
virtual
~DepthRegistration
();
47
48
bool
init
(
const
cv::Mat &cameraMatrixRegistered,
const
cv::Size &sizeRegistered,
const
cv::Mat &cameraMatrixDepth,
const
cv::Size &sizeDepth,
49
const
cv::Mat &distortionDepth,
const
cv::Mat &rotation,
const
cv::Mat &translation,
50
const
float
zNear = 0.5f,
const
float
zFar = 12.0f,
const
int
deviceId = -1);
51
52
virtual
bool
registerDepth
(
const
cv::Mat &depth, cv::Mat ®istered) = 0;
53
54
static
DepthRegistration
*
New
(
Method
method =
DEFAULT
);
55
};
56
57
#endif //__KINECT2_REGISTRATION_H__
DepthRegistration::CPU
Definition:
kinect2_registration.h:32
DepthRegistration::sizeDepth
cv::Size sizeDepth
Definition:
kinect2_registration.h:38
DepthRegistration::DepthRegistration
DepthRegistration()
Definition:
kinect2_registration.cpp:29
DepthRegistration::mapY
cv::Mat mapY
Definition:
kinect2_registration.h:37
DepthRegistration::OPENCL
Definition:
kinect2_registration.h:33
DepthRegistration::New
static DepthRegistration * New(Method method=DEFAULT)
Definition:
kinect2_registration.cpp:55
DepthRegistration::registerDepth
virtual bool registerDepth(const cv::Mat &depth, cv::Mat ®istered)=0
DepthRegistration::cameraMatrixRegistered
cv::Mat cameraMatrixRegistered
Definition:
kinect2_registration.h:37
DepthRegistration::mapX
cv::Mat mapX
Definition:
kinect2_registration.h:37
DepthRegistration::sizeRegistered
cv::Size sizeRegistered
Definition:
kinect2_registration.h:38
DepthRegistration::init
virtual bool init(const int deviceId)=0
DepthRegistration
Definition:
kinect2_registration.h:26
DepthRegistration::zNear
float zNear
Definition:
kinect2_registration.h:39
DepthRegistration::cameraMatrixDepth
cv::Mat cameraMatrixDepth
Definition:
kinect2_registration.h:37
DepthRegistration::~DepthRegistration
virtual ~DepthRegistration()
Definition:
kinect2_registration.cpp:33
DepthRegistration::DEFAULT
Definition:
kinect2_registration.h:31
DepthRegistration::translation
cv::Mat translation
Definition:
kinect2_registration.h:37
DepthRegistration::Method
Method
Definition:
kinect2_registration.h:29
DepthRegistration::zFar
float zFar
Definition:
kinect2_registration.h:39
DepthRegistration::rotation
cv::Mat rotation
Definition:
kinect2_registration.h:37
kinect2_registration
Author(s):
autogenerated on Wed Jan 3 2018 03:48:04