37 #ifndef __OPENNI_DEPTH_IMAGE__ 38 #define __OPENNI_DEPTH_IMAGE__ 40 #include <XnCppWrapper.h> 43 #include <boost/shared_ptr.hpp> 63 void fillDepthImage (
unsigned width,
unsigned height,
float* depth_buffer,
unsigned line_step = 0) const throw (OpenNIException);
64 void fillDepthImageRaw (
unsigned width,
unsigned height,
unsigned short* depth_buffer,
unsigned line_step = 0) const throw (OpenNIException);
70 inline
unsigned getWidth () const throw ();
71 inline
unsigned getHeight () const throw ();
82 DepthImage::
DepthImage (
boost::shared_ptr<xn::DepthMetaData> depth_meta_data,
float baseline,
float focal_length, XnUInt64 shadow_value, XnUInt64 no_sample_value) throw ()
83 : depth_md_ (depth_meta_data)
84 , baseline_ (baseline)
85 , focal_length_ (focal_length)
86 , shadow_value_ (shadow_value)
87 , no_sample_value_ (no_sample_value)
137 return (
unsigned long)
depth_md_->Timestamp ();
140 #endif //__OPENNI_DEPTH_IMAGE
DepthImage(boost::shared_ptr< xn::DepthMetaData > depth_meta_data, float baseline, float focal_length, XnUInt64 shadow_value, XnUInt64 no_sample_value)
unsigned getFrameID() const
float getBaseline() const
const xn::DepthMetaData & getDepthMetaData() const
void fillDepthImage(unsigned width, unsigned height, float *depth_buffer, unsigned line_step=0) const
XnUInt64 getNoSampleValue() const
float getFocalLength() const
boost::shared_ptr< const DepthImage > ConstPtr
void fillDepthImageRaw(unsigned width, unsigned height, unsigned short *depth_buffer, unsigned line_step=0) const
unsigned long getTimeStamp() const
boost::shared_ptr< DepthImage > Ptr
XnUInt64 no_sample_value_
XnUInt64 getShadowValue() const
void fillDisparityImage(unsigned width, unsigned height, float *disparity_buffer, unsigned line_step=0) const
This class provides methods to fill a depth or disparity image.
unsigned getWidth() const
unsigned getHeight() const
boost::shared_ptr< xn::DepthMetaData > depth_md_