OpenNI 1.5.4: xn::IRMetaData Class Reference

OpenNI

#include <XnCppWrapper.h>

Inheritance diagram for xn::IRMetaData:

List of all members.

Public Member Functions

 IRMetaData ()
void InitFrom (const IRMetaData &other)
XnStatus InitFrom (const IRMetaData &other, XnUInt32 nXRes, XnUInt32 nYRes, const XnIRPixel *pExternalBuffer)
XnStatus CopyFrom (const IRMetaData &other)
XnStatus ReAdjust (XnUInt32 nXRes, XnUInt32 nYRes, const XnIRPixel *pExternalBuffer=NULL)
const XnIRPixelData () const
const XnIRPixel *& Data ()
XnIRPixelWritableData ()
const XnIRPixeloperator[] (XnUInt32 nIndex) const
const XnIRPixeloperator() (XnUInt32 x, XnUInt32 y) const
const xn::IRMapIRMap () const
xn::IRMapWritableIRMap ()
const XnIRMetaDataGetUnderlying () const
XnIRMetaDataGetUnderlying ()

Detailed Description

Purpose: For saving the frame object (data and configuration) from an xn::IRGenerator node. This frame object is a snapshot of the generated infra-red map data and its associated configuration information at a certain point in time. This saved frame object provides fast and easy access to the IRGenerator node's data and configuration information.


Constructor & Destructor Documentation

xn::IRMetaData::IRMetaData ( ) [inline]

Member Function Documentation

XnStatus xn::IRMetaData::CopyFrom ( const IRMetaData other) [inline]

Performs a deep-copy of another metadata object (including duplication of the data buffer)

Parameters:
[in]othersource object
const XnIRPixel* xn::IRMetaData::Data ( ) const [inline]

Returns the IR map.

Remarks

This method returns a pointer to the first IR pixel in the map. The IR map is implemented as a row-major order compact layout of pixels in the map.

The pixel format of the map is XnIRPixel, i.e. 16-bit integer values.

This method is reimplemented from the xn::OutputMetaData class.

Reimplemented from xn::OutputMetaData.

const XnIRPixel*& xn::IRMetaData::Data ( ) [inline]

Returns the IR map.

Remarks

This method returns a pointer to the first IR pixel in the map. The IR map is implemented as a row-major order compact layout of pixels in the map.

The pixel format of the map is XnIRPixel, i.e. 16-bit integer values.

This method is reimplemented from the xn::OutputMetaData class.

Reimplemented from xn::OutputMetaData.

const XnIRMetaData* xn::IRMetaData::GetUnderlying ( ) const [inline]

Gets the C object that is wrapped by this object.

Reimplemented from xn::MapMetaData.

XnIRMetaData* xn::IRMetaData::GetUnderlying ( ) [inline]

Gets the C object that is wrapped by this object.

Reimplemented from xn::MapMetaData.

void xn::IRMetaData::InitFrom ( const IRMetaData other) [inline]

Shallow-Copies an IRMetaData object.

Parameters:
[in]othersource object.
Remarks:
Note that the data buffer is not copied, and that both object will point to the same buffer.
XnStatus xn::IRMetaData::InitFrom ( const IRMetaData other,
XnUInt32  nXRes,
XnUInt32  nYRes,
const XnIRPixel pExternalBuffer 
) [inline]

Shallow copies another IRMetaData object, and then ReAdjust it.

Parameters:
[in]othersource object
[in]nXResrequested number of columns in the map
[in]nYResrequested number of rows in the map
[in]pExternalBufferOptional. An external buffer matching requested resolution. If NULL, A buffer will be allocated.
const xn::IRMap& xn::IRMetaData::IRMap ( ) const [inline]

Gets a fast, light object wrapping the IR map. Remarks

The Map Wrapper classes are light wrappers for generated maps saved as frame objects in metadata. These wrapper classes provide small data-focused objects for simplified data access to frame objects.

const XnIRPixel& xn::IRMetaData::operator() ( XnUInt32  x,
XnUInt32  y 
) const [inline]

Gets the value of a single pixel of the frame map by its X and Y coordinates.

Parameters:
[in]xX-coordinate of the pixel in the map
[in]yY-coordinate of the pixel in the map
const XnIRPixel& xn::IRMetaData::operator[] ( XnUInt32  nIndex) const [inline]

Gets the value of a single pixel of the frame map by its index in the array.

Parameters:
[in]nIndexThe index of the pixel in the buffer.
XnStatus xn::IRMetaData::ReAdjust ( XnUInt32  nXRes,
XnUInt32  nYRes,
const XnIRPixel pExternalBuffer = NULL 
) [inline]

Changes dimensions of the pixel-map.

Parameters:
[in]nXResNumber of columns in the map
[in]nYResNumber of rows in the map
[in]pExternalBufferOptional. An external buffer to be used. If NULL is passed, a buffer will be allocated.
XnIRPixel* xn::IRMetaData::WritableData ( ) [inline]

Gets a pointer to the writable buffer (see Frame Objects and Metadata Objects).

Reimplemented from xn::OutputMetaData.

xn::IRMap& xn::IRMetaData::WritableIRMap ( ) [inline]

Gets a fast, light object wrapping the writable IR map. Remarks

The Map Wrapper classes are light wrappers for generated maps saved as frame objects in metadata. These wrapper classes provide small data-focused objects for simplified data access to frame objects.


The documentation for this class was generated from the following file:
Generated on Wed May 16 2012 10:16:06 for OpenNI 1.5.4 by   doxygen 1.7.5.1