36 #ifndef __OPENNI_IR_IMAGE__
37 #define __OPENNI_IR_IMAGE__
42 #include "openni_exception.h"
43 #include <pcl/io/boost.h>
55 using Ptr = pcl::shared_ptr<IRImage>;
56 using ConstPtr = pcl::shared_ptr<const IRImage>;
58 inline IRImage (pcl::shared_ptr<xn::IRMetaData> ir_meta_data) noexcept;
59 inline virtual ~
IRImage () noexcept;
61 void fillRaw (
unsigned width,
unsigned height,
unsigned short* ir_buffer,
unsigned line_step = 0) const;
63 inline
unsigned getWidth () const throw ();
64 inline
unsigned getHeight () const throw ();
65 inline
unsigned getFrameID () const throw ();
66 inline
unsigned long getTimeStamp () const throw ();
67 inline const xn::IRMetaData& getMetaData () const throw ();
70 pcl::shared_ptr<xn::IRMetaData> ir_md_;
74 : ir_md_ (std::move(ir_meta_data))
84 return ir_md_->XRes ();
89 return ir_md_->YRes ();
94 return ir_md_->FrameID ();
99 return static_cast<unsigned long> (ir_md_->Timestamp ());
Class containing just a reference to IR meta data.
unsigned long getTimeStamp() const
unsigned getHeight() const
pcl::shared_ptr< IRImage > Ptr
virtual ~IRImage() noexcept
unsigned getWidth() const
const xn::IRMetaData & getMetaData() const
pcl::shared_ptr< const IRImage > ConstPtr
unsigned getFrameID() const
Defines functions, macros and traits for allocating and using memory.
Defines all the PCL and non-PCL macros used.