3DiVi Face SDK
3.24.1
|
Raw image interface. To use this interface, you need to inherit it and create your own implementation for a specific image type. See an example of implementation in pbio/example/CVRawImage.h. More...
#include <IRawImage.h>
Public Types | |
enum | Format { FORMAT_GRAY = 0, FORMAT_RGB = 1, FORMAT_BGR = 2, FORMAT_YUV_NV21 = 3, FORMAT_YUV_NV12 = 4 } |
Format of image data. More... | |
typedef HeavySmartPtr < IRawImage >::tPtr | Ptr |
Alias for the type of a smart pointer to IRawImage. | |
Public Member Functions | |
virtual | ~IRawImage () |
Virtual destructor. | |
virtual const unsigned char * | data () const =0 |
Get a pointer to the image data buffer. All pixels must be stored continuously row by row, without gaps at the end of each row. More... | |
virtual int32_t | width () const =0 |
Get image width. More... | |
virtual int32_t | height () const =0 |
Get image height. More... | |
virtual int32_t | format () const =0 |
Get image format. More... | |
Raw image interface. To use this interface, you need to inherit it and create your own implementation for a specific image type. See an example of implementation in pbio/example/CVRawImage.h.
Format of image data.
|
pure virtual |
Get a pointer to the image data buffer. All pixels must be stored continuously row by row, without gaps at the end of each row.
Implemented in pbio::CVRawImage.
|
pure virtual |
Get image format.
Implemented in pbio::CVRawImage.
|
pure virtual |
|
pure virtual |