|
| DepthMetaData () |
|
void | InitFrom (const DepthMetaData &other) |
|
XnStatus | InitFrom (const DepthMetaData &other, XnUInt32 nXRes, XnUInt32 nYRes, const XnDepthPixel *pExternalBuffer) |
|
XnStatus | CopyFrom (const DepthMetaData &other) |
|
XnStatus | ReAdjust (XnUInt32 nXRes, XnUInt32 nYRes, const XnDepthPixel *pExternalBuffer=NULL) |
|
XnDepthPixel | ZRes () const |
|
XnDepthPixel & | ZRes () |
|
const XnDepthPixel * | Data () const |
|
const XnDepthPixel *& | Data () |
|
XnDepthPixel * | WritableData () |
|
const xn::DepthMap & | DepthMap () const |
|
xn::DepthMap & | WritableDepthMap () |
|
const XnDepthPixel & | operator[] (XnUInt32 nIndex) const |
|
const XnDepthPixel & | operator() (XnUInt32 x, XnUInt32 y) const |
|
const XnDepthMetaData * | GetUnderlying () const |
|
XnDepthMetaData * | GetUnderlying () |
|
| MapMetaData (XnPixelFormat format, const XnUInt8 **ppData) |
|
XnUInt32 | XRes () const |
|
XnUInt32 & | XRes () |
|
XnUInt32 | YRes () const |
|
XnUInt32 & | YRes () |
|
XnUInt32 | XOffset () const |
|
XnUInt32 & | XOffset () |
|
XnUInt32 | YOffset () const |
|
XnUInt32 & | YOffset () |
|
XnUInt32 | FullXRes () const |
|
XnUInt32 & | FullXRes () |
|
XnUInt32 | FullYRes () const |
|
XnUInt32 & | FullYRes () |
|
XnUInt32 | FPS () const |
|
XnUInt32 & | FPS () |
|
XnPixelFormat | PixelFormat () const |
|
const XnMapMetaData * | GetUnderlying () const |
|
XnMapMetaData * | GetUnderlying () |
|
XnUInt32 | BytesPerPixel () const |
|
XnStatus | AllocateData (XnUInt32 nXRes, XnUInt32 nYRes) |
|
XnStatus | ReAdjust (XnUInt32 nXRes, XnUInt32 nYRes, const XnUInt8 *pExternalBuffer) |
|
| OutputMetaData (const XnUInt8 **ppData) |
|
virtual | ~OutputMetaData () |
|
XnUInt64 | Timestamp () const |
|
XnUInt64 & | Timestamp () |
|
XnUInt32 | FrameID () const |
|
XnUInt32 & | FrameID () |
|
XnUInt32 | DataSize () const |
|
XnUInt32 & | DataSize () |
|
XnBool | IsDataNew () const |
|
XnBool & | IsDataNew () |
|
const XnOutputMetaData * | GetUnderlying () const |
|
XnOutputMetaData * | GetUnderlying () |
|
const XnUInt8 * | Data () const |
|
const XnUInt8 *& | Data () |
|
XnUInt8 * | WritableData () |
|
XnStatus | AllocateData (XnUInt32 nBytes) |
|
void | Free () |
|
XnStatus | MakeDataWritable () |
|
For saving the frame object (data and configuration) from the DepthGenerator node. This frameobject" is a snapshot of the DepthGenerator's generated depth map and its associated configuration information at a certain point in time. This saved frame object provides fast and easy access to the DepthGenerator node's data and configuration information.
It is important to get a good understanding of the purpose and design of the OpenNI metadata objects. For a comprehensive overview of OpenNI metadata objects, see Frame Objects and Metadata Objects.
The DepthGenerator node generates depth data of the FOV. This is the Z-coordinate of the X-Y-Z coordinate of each point. The Z-axis is the distance, in millimeters from the sensor plane. A smaller depth value indicates a scene point that is a closer to the sensor, and a larger depth value indicates a scene point that is further away from the sensor. A zero depth value indicates that the DepthGenerator node did not succeed in obtaining a valid depth reading.
DepthMetaData's xn::DepthMetaData::Data() method provides the actual depth data. This method returns the pointer to the first depth pixel in the map.
The pixel format of depth map is XnDepthPixel, i.e. 16-bit values.
DepthMetaData provides the ZRes
property to contain the depth resolution. This is the maximum value of a pixel (plus one).
DepthMetaData is similar to ImageMetaData; they are both metadata for a type of map.