3DiVi Face SDK  3.21.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
com.vdt.face_recognition.sdk.RawImage Class Reference

Class to provide raw image data and optional cropping information. More...

Classes

enum  Format
 Format of image data. More...
 
enum  PixelFormat
 Format of image data in pixel array. More...
 

Public Member Functions

 RawImage (int width, int height, Format format, byte[] data)
 Constructor. More...
 
RawImage crop (RawSample.Rectangle rectangle)
 Make RawImage that represents the specified rectangle area of this image.
 
int[] getPixels (PixelFormat format)
 Create an int array containing pixels in the specified format.
 

Public Attributes

int width
 Image width.
 
int height
 Image height.
 
Format format
 Format of image data.
 
byte[] data
 The array of bytes of image data.
 
boolean with_crop
 Flag, which indicates that cropping info is initialized. This value is set in the RawImage.crop member function.
 
int crop_info_offset_x
 Cropping offset along the x axis. This value is set in the RawImage.crop member function.
 
int crop_info_offset_y
 Cropping 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.
 

Detailed Description

Class to provide raw image data and optional cropping information.

Constructor & Destructor Documentation

com.vdt.face_recognition.sdk.RawImage.RawImage ( int  width,
int  height,
Format  format,
byte[]  data 
)
inline

Constructor.

Parameters
[in]widthImage width.
[in]heightImage height.
[in]formatFormat of image data.
[in]dataThe array of bytes of image data.