OpenNI 1.3.2
|
#include <XnCppWrapper.h>
Public Member Functions | |
SceneMetaData () | |
void | InitFrom (const SceneMetaData &other) |
XnStatus | InitFrom (const SceneMetaData &other, XnUInt32 nXRes, XnUInt32 nYRes, const XnLabel *pExternalBuffer) |
XnStatus | CopyFrom (const SceneMetaData &other) |
XnStatus | ReAdjust (XnUInt32 nXRes, XnUInt32 nYRes, const XnLabel *pExternalBuffer=NULL) |
const XnLabel * | Data () const |
const XnLabel *& | Data () |
XnLabel * | WritableData () |
const xn::LabelMap & | LabelMap () const |
xn::LabelMap & | WritableLabelMap () |
const XnLabel & | operator[] (XnUInt32 nIndex) const |
const XnLabel & | operator() (XnUInt32 x, XnUInt32 y) const |
const XnSceneMetaData * | GetUnderlying () const |
XnSceneMetaData * | GetUnderlying () |
Represents a MetaData object for generators producing scene analysis maps
xn::SceneMetaData::SceneMetaData | ( | ) | [inline] |
Ctor.
XnStatus xn::SceneMetaData::CopyFrom | ( | const SceneMetaData & | other | ) | [inline] |
Performs a deep-copy of another Meta Data object (including a duplication of the data buffer)
other | [in] source object |
const XnLabel* xn::SceneMetaData::Data | ( | ) | const [inline] |
Gets a pointer to the data.
Reimplemented from xn::OutputMetaData.
const XnLabel*& xn::SceneMetaData::Data | ( | ) | [inline] |
Gets a pointer to the data.
Reimplemented from xn::OutputMetaData.
XnSceneMetaData* xn::SceneMetaData::GetUnderlying | ( | ) | [inline] |
Gets the C object that is wrapped by this object.
Reimplemented from xn::MapMetaData.
const XnSceneMetaData* xn::SceneMetaData::GetUnderlying | ( | ) | const [inline] |
Gets the C object that is wrapped by this object.
Reimplemented from xn::MapMetaData.
XnStatus xn::SceneMetaData::InitFrom | ( | const SceneMetaData & | other, |
XnUInt32 | nXRes, | ||
XnUInt32 | nYRes, | ||
const XnLabel * | pExternalBuffer | ||
) | [inline] |
Shallow copies another Depth Meta Data object, and then ReAdjust it.
other | [in] source object |
nXRes | [in] requested number of columns in the map |
nYRes | [in] requested number of rows in the map |
pExternalBuffer | [in] Optional. An external buffer matching requested resolution. If NULL, A buffer will be allocated. |
void xn::SceneMetaData::InitFrom | ( | const SceneMetaData & | other | ) | [inline] |
Shallow-Copies a Scene Meta Data object. Note that the data buffer is not copied, and that both object will point to the same buffer.
other | [in] source object. |
const xn::LabelMap& xn::SceneMetaData::LabelMap | ( | ) | const [inline] |
Gets a light object wrapping the label map.
const XnLabel& xn::SceneMetaData::operator() | ( | XnUInt32 | x, |
XnUInt32 | y | ||
) | const [inline] |
Gets the label of the pixel
x | [in] X-coordinate of the pixel in the map |
y | [in] Y-coordinate of the pixel in the map |
const XnLabel& xn::SceneMetaData::operator[] | ( | XnUInt32 | nIndex | ) | const [inline] |
Gets the label of the pixel
nIndex | [in] The index of the pixel in the buffer. |
XnStatus xn::SceneMetaData::ReAdjust | ( | XnUInt32 | nXRes, |
XnUInt32 | nYRes, | ||
const XnLabel * | pExternalBuffer = NULL |
||
) | [inline] |
Changes dimensions of the pixel-map.
nXRes | [in] Number of columns in the map |
nYRes | [in] Number of rows in the map |
pExternalBuffer | [in] Optional. An external buffer to be used. If NULL is passed, a buffer will be allocated. |
XnLabel* xn::SceneMetaData::WritableData | ( | ) | [inline] |
Gets a pointer to the writable buffer (see Meta Data Objects).
Reimplemented from xn::OutputMetaData.
xn::LabelMap& xn::SceneMetaData::WritableLabelMap | ( | ) | [inline] |
Gets a light object wrapping the writable label map.