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;
60 void fillRaw (
unsigned width,
unsigned height,
unsigned short* ir_buffer,
unsigned line_step = 0) const;
62 inline
unsigned getWidth () const noexcept;
63 inline
unsigned getHeight () const noexcept;
64 inline
unsigned getFrameID () const noexcept;
65 inline
unsigned long getTimeStamp () const noexcept;
66 inline const xn::IRMetaData& getMetaData () const noexcept;
69 pcl::shared_ptr<xn::IRMetaData> ir_md_;
73 : ir_md_ (std::move(ir_meta_data))
79 unsigned IRImage::getWidth () const noexcept
81 return ir_md_->XRes ();
86 return ir_md_->YRes ();
91 return ir_md_->FrameID ();
96 return static_cast<unsigned long> (ir_md_->Timestamp ());
Class containing just a reference to IR meta data.
pcl::shared_ptr< IRImage > Ptr
virtual ~IRImage() noexcept
unsigned long getTimeStamp() const noexcept
pcl::shared_ptr< const IRImage > ConstPtr
unsigned getFrameID() const noexcept
unsigned getHeight() const noexcept
const xn::IRMetaData & getMetaData() const noexcept
Defines functions, macros and traits for allocating and using memory.
Defines all the PCL and non-PCL macros used.