![]() |
OpenNI 1.5.4
|
#include <XnCppWrapper.h>
Public Member Functions | |
ImageMetaData () | |
void | InitFrom (const ImageMetaData &other) |
XnStatus | InitFrom (const ImageMetaData &other, XnUInt32 nXRes, XnUInt32 nYRes, XnPixelFormat format, const XnUInt8 *pExternalBuffer) |
XnStatus | AllocateData (XnUInt32 nXRes, XnUInt32 nYRes, XnPixelFormat format) |
XnStatus | CopyFrom (const ImageMetaData &other) |
XnStatus | ReAdjust (XnUInt32 nXRes, XnUInt32 nYRes, XnPixelFormat format, const XnUInt8 *pExternalBuffer=NULL) |
XnPixelFormat | PixelFormat () const |
XnPixelFormat & | PixelFormat () |
XnUInt8 * | WritableData () |
const XnRGB24Pixel * | RGB24Data () const |
const XnRGB24Pixel *& | RGB24Data () |
XnRGB24Pixel * | WritableRGB24Data () |
const XnYUV422DoublePixel * | YUV422Data () const |
const XnYUV422DoublePixel *& | YUV422Data () |
XnYUV422DoublePixel * | WritableYUV422Data () |
const XnGrayscale8Pixel * | Grayscale8Data () const |
const XnGrayscale8Pixel *& | Grayscale8Data () |
XnGrayscale8Pixel * | WritableGrayscale8Data () |
const XnGrayscale16Pixel * | Grayscale16Data () const |
const XnGrayscale16Pixel *& | Grayscale16Data () |
XnGrayscale16Pixel * | WritableGrayscale16Data () |
const xn::ImageMap & | ImageMap () const |
xn::ImageMap & | WritableImageMap () |
const xn::RGB24Map & | RGB24Map () const |
xn::RGB24Map & | WritableRGB24Map () |
const xn::Grayscale8Map & | Grayscale8Map () const |
xn::Grayscale8Map & | WritableGrayscale8Map () |
const xn::Grayscale16Map & | Grayscale16Map () const |
xn::Grayscale16Map & | WritableGrayscale16Map () |
const XnImageMetaData * | GetUnderlying () const |
XnImageMetaData * | 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 () |
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 XnUInt8 * | Data () const |
const XnUInt8 *& | Data () |
XnStatus | AllocateData (XnUInt32 nBytes) |
void | Free () |
XnStatus | MakeDataWritable () |
Additional Inherited Members | |
![]() | |
XnPixelFormat & | PixelFormatImpl () |
![]() | |
XnUInt8 * | m_pAllocatedData |
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 ImageMetaData object provides a number of different methods to get the image as a different format. You must use the 'Get Data' method most appropriate for the data format of the latest available frame. For example, if you requested the ImageGenerator node to generate RGB24 format you must use the RGB24Data() method to get the data.
Each of the 'Get Data' methods gets the image as a pointer to the first pixel in the image map. From the address of that first pixel you can access all the pixels.
Depending on the format, the pixels are different in size. This means that image maps are a different size.
|
inline |
|
inline |
Allocates a writable buffer. If a previous buffer was allocated it will be freed (or reused if possible).
[in] | nXRes | Requested number of columns in the map |
[in] | nYRes | Requested number of rows in the map |
[in] | format | Requested pixel format |
|
inline |
Performs a deep-copy of another metadata object (including duplication of the data buffer)
[in] | other | source object |
|
inline |
Gets the C object that is wrapped by this object.
Reimplemented from xn::MapMetaData.
|
inline |
Gets the C object that is wrapped by this object.
Reimplemented from xn::MapMetaData.
|
inline |
Gets a pointer to the first pixel of the image in Grayscale16 format. Grayscale16 represents each pixel as a 16-bit (2-byte) gray scale.
|
inline |
Gets a pointer to the first pixel of the image in Grayscale16 format. Grayscale16 represents each pixel as a 16-bit (2-byte) gray scale.
|
inline |
Gets a light wrapper object wrapping the frame's image map as Grayscale16 format.
|
inline |
Gets a pointer to the first pixel of the image in Grayscale8 format. Grayscale8 represents each pixel as an 8-bit (1 byte) gray scale.
|
inline |
Gets a pointer to the first pixel of the image in Grayscale8 format. Grayscale8 represents each pixel as an 8-bit (1-byte) gray scale.
|
inline |
Gets a light wrapper object wrapping the image map as Grayscale8 format.
|
inline |
Gets a light object wrapping the image map.
|
inline |
Shallow-copies an ImageMetaData object.
[in] | other | source object. |
|
inline |
Shallow copies another ImageMetaData object, and then readjusts it.
[in] | other | Source object |
[in] | nXRes | Requested number of columns in the map |
[in] | nYRes | Requested number of rows in the map |
[in] | format | Requested pixel format |
[in] | pExternalBuffer | Optional. An external buffer matching requested resolution. If NULL, A buffer will be allocated. |
|
inline |
Gets the frame's pixel color format used in this image map. This is the format of the frame object saved in this object.
Remarks
Knowing the pixel format of the image map helps you to enumerate over the map and process its data.
Reimplemented from xn::MapMetaData.
Reimplemented from xn::MapMetaData.
|
inline |
Gets the frame's pixel color format used in this image map. This is the format of the frame object saved in this object.
Remarks
Knowing the pixel format of the image map helps you to enumerate over the map and process its data.
|
inline |
[in] | nXRes | Requested number of columns in the map |
[in] | nYRes | Requested number of rows in the map |
[in] | format | Requested pixel format |
[in] | pExternalBuffer | Optional. An external buffer to be used. If NULL is passed, a buffer will be allocated. |
|
inline |
Gets a pointer to the first pixel of the image in RGB24 format. RGB24 format represents each pixel as one byte for red, one byte for green, and one byte for blue.
|
inline |
Gets a pointer to the first pixel of the image in RGB24 format. RGB24 format represents each pixel as one byte for red, one byte for green, and one byte for blue.
|
inline |
Gets a light wrapper object for wrapping the image map as RGB24 format. RGB24 format represents each pixel as one byte for red, one byte for green, and one byte for blue.
|
inline |
Gets a pointer to the writable buffer (see Frame Objects and Metadata Objects).
Reimplemented from xn::OutputMetaData.
|
inline |
Gets a pointer to the writable buffer (see Frame Objects and Metadata Objects).
|
inline |
Gets a light object wrapping the writable image-map
|
inline |
Gets a pointer to the writable buffer (see Frame Objects and Metadata Objects).
|
inline |
Gets a light object wrapping the writable image-map
|
inline |
Gets a light object wrapping the writable image-map
|
inline |
Gets a pointer to the writable buffer (see Frame Objects and Metadata Objects).
|
inline |
Gets a light object wrapping the writable image-map
|
inline |
Gets a pointer to the writable buffer (see Frame Objects and Metadata Objects).
|
inline |
Gets a pointer to the first pixel of the image in YUV422 format. YUV422 is a type of compression with a single Y byte followed by a U byte, then another Y byte and then a V byte: YUY'V. These four values represent two pixels: YUV and Y'UV.
|
inline |
Gets a pointer to the first pixel of the image in YUV422 format. YUV422 is a type of compression with a single Y byte followed by a U byte, then another Y byte and then a V byte: YUY'V. These four values represent two pixels: YUV and Y'UV.