#include <XnCppWrapper.h>
Public Member Functions | |
Map (_pixelType *&pData, XnUInt32 &nXRes, XnUInt32 &nYRes) | |
XnUInt32 | XRes () const |
XnUInt32 | YRes () const |
const _pixelType & | operator[] (XnUInt32 nIndex) const |
_pixelType & | operator[] (XnUInt32 nIndex) |
const _pixelType & | operator() (XnUInt32 x, XnUInt32 y) const |
_pixelType & | operator() (XnUInt32 x, XnUInt32 y) |
The Map Wrapper classes are light wrappers for Frame Objects maps (from metadata classes). These wrapper classes provide small data-focused objects for simplified data access to frame objects generated by the generator nodes.
_pixelType | The data type of a single pixel in this map |
xn::Map< _pixelType >::Map | ( | _pixelType *& | pData, | |
XnUInt32 & | nXRes, | |||
XnUInt32 & | nYRes | |||
) | [inline] |
const _pixelType& xn::Map< _pixelType >::operator() | ( | XnUInt32 | x, | |
XnUInt32 | y | |||
) | const [inline] |
Gets a single pixel of the frame map by its X and Y coordinates.
[in] | x | The horizontal position of the pixel (from left to right) |
[in] | y | The vertical position of the pixel in the buffer (from top to bottom) |
_pixelType
. _pixelType& xn::Map< _pixelType >::operator() | ( | XnUInt32 | x, | |
XnUInt32 | y | |||
) | [inline] |
Gets a single pixel of the frame map by its X and Y coordinates.
[in] | x | The horizontal position of the pixel (from left to right) |
[in] | y | The vertical position of the pixel in the buffer (from top to bottom) |
_pixelType
. _pixelType& xn::Map< _pixelType >::operator[] | ( | XnUInt32 | nIndex | ) | [inline] |
Gets a single pixel of the frame map by indexing a map as a one-dimensional array.
[in] | nIndex | The position of the pixel in the buffer |
_pixelType
.Remarks
Indexing a map in this way can give improved speed in some situations.
const _pixelType& xn::Map< _pixelType >::operator[] | ( | XnUInt32 | nIndex | ) | const [inline] |
Gets a single pixel of the frame map by indexing a map as a one-dimensional array.
[in] | nIndex | The position of the pixel in the buffer |
_pixelType
.Remarks
Indexing a map in this way can give improved speed in some situations.
XnUInt32 xn::Map< _pixelType >::XRes | ( | ) | const [inline] |
Gets the frame X resolution. The X resolution is the actual number of columns in the frame after any required cropping has been applied.
Remarks
This is the same as MapMetaData::XRes().
XnUInt32 xn::Map< _pixelType >::YRes | ( | ) | const [inline] |
Gets the frame Y resolution. The Y resolution is the actual number of rows in the frame after any required cropping has been applied.
Remarks
This is the same as MapMetaData::YRes().