3DiVi Face SDK
3.24.1
|
Class to provide raw image data and optional crop information. More...
Public Types | |
enum | Format { Format.FORMAT_GRAY = 0, Format.FORMAT_RGB = 1, Format.FORMAT_BGR = 2, Format.FORMAT_YUV_NV21 = 3, Format.FORMAT_YUV_NV12 = 4 } |
Format of image data. More... | |
Public Member Functions | |
RawImage (int width, int height, Format format, byte[] data) | |
Constructor. More... | |
RawImage | crop (RawSample.Rectangle rectangle) |
Create a RawImage object that represents the specified rectangle area of this image. | |
Public Attributes | |
int | width |
Image width. | |
int | height |
Image height. | |
Format | format |
Format of image data. | |
byte[] | data |
The array of bytes that stores image data. | |
bool | with_crop |
Flag, which indicates that crop info is initialized. This value is set in the RawImage.crop member function. | |
int | crop_info_offset_x |
Crop offset along the x axis. This value is set in the RawImage.crop member function. | |
int | crop_info_offset_y |
Crop offset along the y axis. This value is set in the RawImage.crop member function. | |
int | crop_info_data_image_width |
Image width before RawImage.crop. This value is set in the RawImage.crop member function. | |
int | crop_info_data_image_height |
Image height before RawImage.crop. This value is set in the RawImage.crop member function. | |
Class to provide raw image data and optional crop information.
Format of image data.
|
inline |
Constructor.
[in] | width | Image width. |
[in] | height | Image height. |
[in] | format | Format of image data. |
[in] | data | The array of bytes of image data. |