IDLive Face C++ API 1.47.0
|
Structure for storing image in Face SDK format. More...
#include <facesdk/Image.h>
Public Types | |
enum | COLOR_ENCODING { RGB888 , BGR888 } |
Color encoding enum. More... | |
Public Member Functions | |
virtual bool | empty () const =0 |
Check if image is empty (no dynamic data allocated) | |
Static Public Member Functions | |
static ImagePtr | createImage () |
Create empty Image object. | |
static ImagePtr | createImage (const std::vector< uint8_t > &bytes) |
Create Image object from binary file. | |
static ImagePtr | createImage (const uint8_t *bytes, size_t size) |
Create Image object from binary file in memory buffer. | |
static ImagePtr | createImage (const std::string &path) |
Create Image object from disk. | |
static ImagePtr | createImage (const uint8_t *data, size_t rows, size_t cols, COLOR_ENCODING format) |
Create Image object from memory buffer. | |
Structure for storing image in Face SDK format.
|
static |
|
static |
Create Image object from disk.
path | Path to image file on disk |
FaceException |
|
static |
Create Image object from binary file.
bytes | Vector of image file bytes |
FaceException |
|
static |
Create Image object from binary file in memory buffer.
bytes | Pointer to memory buffer with binary image file |
size | Number of bytes in image file |
FaceException |
|
static |
Create Image object from memory buffer.
data | Pointer to memory buffer (bytes) |
rows | Number of image rows |
cols | Number of image cols |
format | Color encoding format of input buffer |
FaceException |
|
pure virtual |
Check if image is empty (no dynamic data allocated)
FaceException |