3DiVi Face SDK
3.24.2
|
Struct that provides raw image data and optional cropping information. More...
#include <RawImage.h>
Public Types | |
typedef pbio::IRawImage::Format | Format |
Format of image data. | |
Public Member Functions | |
RawImage () | |
Default constructor. | |
RawImage (const IRawImage &) | |
Constructor for implicit conversion from IRawImage. | |
RawImage (const InternalImageBuffer::Ptr) | |
Constructor for an image in InternalImageBuffer without cropping. | |
RawImage (const int width, const int height, const Format format, unsigned char const *data, std::size_t size=0) | |
Constructor for an image without cropping. | |
RawImage | crop (const Rectangle rectangle) const |
Create RawImage that represents the specified rectangle area of this image. | |
Public Attributes | |
unsigned char const * | data |
Pointer to the image data buffer. All pixels must be stored continuously, row by row, without gaps at the end of each row. | |
int | width |
Image width. | |
int | height |
Image height. | |
Format | format |
Format of image data. | |
bool | with_crop |
Flag, which indicates that croppping 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. | |
Struct that provides raw image data and optional cropping information.