10 #ifndef __READER_OPENNI_HPP 11 #define __READER_OPENNI_HPP 13 #include <Eigen/Dense> 23 # include <openni2/OpenNI.h> 50 std::string
name()
const;
52 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
57 class MyFrameAllocator :
public openni::VideoStream::FrameAllocator {
59 MyFrameAllocator(T* buffer) : buffer_(buffer)
62 void* allocateFrameBuffer(
int)
66 void freeFrameBuffer(
void*)
74 std::unique_ptr<MyFrameAllocator<uint16_t>> depth_allocator_;
75 std::unique_ptr<MyFrameAllocator<uint8_t>> rgb_allocator_;
78 openni::Device device_;
79 openni::VideoStream depth_stream_;
80 openni::VideoStream rgb_stream_;
81 openni::VideoFrameRef depth_frame_;
82 openni::VideoFrameRef rgb_frame_;
83 std::unique_ptr<uint16_t> depth_image_;
84 std::unique_ptr<uint8_t> rgb_image_;
Definition: reader_base.hpp:46
OpenNIReader(const ReaderConfig &c)
Construct an OpenNIReader from a ReaderConfig.
Base abstract class for dataset readers.
Definition: reader_base.hpp:139
Reader for the Microsoft Kinect and Asus Xtion using the OpenNI2 driver.
Definition: reader_openni.hpp:33
void restart()
Restart reading from the beginning.
ReaderStatus
The result of trying to read a depth/RGB image or a pose.
Definition: reader_base.hpp:105
std::string name() const
The name of the reader.
int Status
Definition: dense_pooling_image.hpp:24
Helper wrapper to allocate and de-allocate octants in the octree.
Definition: colour_utils.hpp:17