5#ifndef __IMAGE_HELPER_HPP__
6 #define __IMAGE_HELPER_HPP__
8namespace Raytracer::Utils
14 std::vector<unsigned char> data;
19 bool load(
const std::string &filename);
20 const unsigned char *
pixelData(
int x,
int y)
const;
Definition ImageHelper.hpp:10
const unsigned char * pixelData(int x, int y) const
Get the pixel data at the given coordinates.
Definition ImageHelper.cpp:78
bool load(const std::string &filename)
Load the image from the given filename.
Definition ImageHelper.cpp:31