Image3f class
#include <darts/image.h>
A floating-point RGB image.
Base classes
-
template<typename T>class Array2d<Color3f>
- Generic, resizable, 2D array class.
Public static functions
- static auto loadable_formats() -> std::set<std::string>
- Set of supported formats for image loading.
- static auto savable_formats() -> std::set<std::string>
- Set of supported formats for image saving.
Constructors, destructors, conversion operators
Public functions
Function documentation
Image3f:: Image3f(int w,
int h)
Size Constructor (sets width and height)
Parameters | |
---|---|
w | The width of the image |
h | The height of the image |
bool Image3f:: load(const std::string& filename)
Load an image from file.
Parameters | |
---|---|
filename | The filename |
Returns | True if the file loaded successfully |
bool Image3f:: save(const std::string& filename,
float gain = 1.0f)
Save an image to the specified filename.
Parameters | |
---|---|
filename | The filename to save to |
gain | The multiplicative gain to apply to pixel values before saving |
Returns | True if the file saved successfully |