36 #ifndef __OPENNI_IR_IMAGE__
37 #define __OPENNI_IR_IMAGE__
42 #include "openni_exception.h"
54 using Ptr = pcl::shared_ptr<IRImage>;
55 using ConstPtr = pcl::shared_ptr<const IRImage>;
57 inline IRImage (pcl::shared_ptr<xn::IRMetaData> ir_meta_data) noexcept;
58 inline virtual ~
IRImage () noexcept;
60 void fillRaw (
unsigned width,
unsigned height,
unsigned short* ir_buffer,
unsigned line_step = 0) const;
62 inline
unsigned getWidth () const throw ();
63 inline
unsigned getHeight () const throw ();
64 inline
unsigned getFrameID () const throw ();
65 inline
unsigned long getTimeStamp () const throw ();
66 inline const xn::IRMetaData& getMetaData () const throw ();
69 pcl::shared_ptr<xn::IRMetaData> ir_md_;
73 : ir_md_ (std::move(ir_meta_data))
83 return ir_md_->XRes ();
88 return ir_md_->YRes ();
93 return ir_md_->FrameID ();
98 return static_cast<unsigned long> (ir_md_->Timestamp ());
106 #endif //__OPENNI_IR_IMAGE__