Image.hh
Go to the documentation of this file.
65 UNKNOWN_PIXEL_FORMAT = 0,
84 PIXEL_FORMAT_COUNT
Definition: Image.hh:72
Definition: Image.hh:71
bool equal(const T &_a, const T &_b, const T &_epsilon=T(1e-6))
Definition: Image.hh:67
Definition: Image.hh:77
Definition: Image.hh:66
STL class.
PixelFormatType
Pixel formats enumeration.
Definition: Image.hh:63
T data(T... args)
T lowest(T... args)
Definition: Image.hh:78
Definition: Image.hh:80
Definition: Image.hh:76
Definition: Image.hh:68
Definition: Image.hh:69
T max(T... args)
STL class.
Definition: Image.hh:74
Definition: Image.hh:83
Definition: Image.hh:81
Definition: Image.hh:79
static void ConvertToRGBImage(const void *_data, unsigned int _width, unsigned int _height, Image &_output, T _min=std::numeric_limits< T >::max(), T _max=std::numeric_limits< T >::lowest(), bool _flip=false)
Convert a single channel image data buffer into an RGB image. During the conversion, the input image data are normalized to 8 bit values i.e. [0, 255]. Optionally, specify min and max values to use when normalizing the input image data. For example, if min and max are set to 1 and 10, a data value 2 will be normalized to: (2 - 1) / (10 - 1) * 255.
Definition: Image.hh:200
void SetFromData(const unsigned char *_data, unsigned int _width, unsigned int _height, Image::PixelFormatType _format)
Set the image from raw data.
T isinf(T... args)
Forward declarations for the common classes.
Definition: Image.hh:73
Definition: Image.hh:75
Definition: Image.hh:82
Definition: Image.hh:70