21 #ifndef HDR_IMAGE_LOADER_H
22 #define HDR_IMAGE_LOADER_H
46 HDRImage(
const std::string& filePath);
static float convertSingleComponent(unsigned char value, int exponent)
virtual ~HDRImage(void)
Destructor.
static bool decodeLine(FILE *file, int lineLength, RGBEPixel *scanLine)
int width
The width of the HDR image.
void loadFromFile(const std::string &filePath)
Load a HDRImage from a file.
HDRImage(void)
Default constructor.
float * rgbData
The HDR image data.
Class to load an manage HDR images.
HDRImage & operator=(const HDRImage &another)
Overloading assignment operater to do deep copy of the HDRImage data.
static void writeDecodedComponent(int componentIndicator, unsigned char value, RGBEPixel *pixel)
static void convertRGBEPixel(const RGBEPixel &pixel, float *rgbData)
int height
The height of the HDR image.