OpenNI 1.5.4
|
#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) |
Detailed Description
template<class _pixelType>
class xn::Map< _pixelType >
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.
- Template Parameters:
-
_pixelType The data type of a single pixel in this map
Constructor & Destructor Documentation
xn::Map< _pixelType >::Map | ( | _pixelType *& | pData, |
XnUInt32 & | nXRes, | ||
XnUInt32 & | nYRes | ||
) | [inline] |
Member Function Documentation
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.
- Parameters:
-
[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)
- Returns:
- A pixel of type
_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.
- Parameters:
-
[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)
- Returns:
- A pixel of type
_pixelType
.
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.
- Parameters:
-
[in] nIndex The position of the pixel in the buffer
- Returns:
- A pixel of type
_pixelType
.
Remarks
Indexing a map in this way can give improved speed in some situations.
_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.
- Parameters:
-
[in] nIndex The position of the pixel in the buffer
- Returns:
- A pixel of type
_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().
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 1.7.5.1