HDR I/O¶
-
inline Image<RGB> huira::read_image_hdr(const fs::path &filepath)¶
Reads a Radiance HDR file and returns linear RGB data.
Convenience overload that reads the file into memory and forwards to the buffer-based implementation.
- Parameters:
filepath – Path to the HDR file to read
- Returns:
The linear RGB image.
-
inline Image<RGB> huira::read_image_hdr(const unsigned char *data, std::size_t size)¶
Reads a Radiance HDR from an in-memory buffer and returns linear RGB data.
HDR files natively store linear radiance values using RGBE encoding, so no gamma conversion is needed. HDR does not support alpha channels.
- Parameters:
data – Pointer to the HDR data in memory
size – Size of the data in bytes
- Returns:
The linear RGB image.
-
inline Image<float> huira::read_image_hdr_mono(const fs::path &filepath)¶
Reads a Radiance HDR file and returns linear mono data.
Convenience overload that reads the file into memory and forwards to the buffer-based implementation.
- Parameters:
filepath – Path to the HDR file to read
- Returns:
The linear mono image.
-
inline Image<float> huira::read_image_hdr_mono(const unsigned char *data, std::size_t size)¶
Reads a Radiance HDR from an in-memory buffer and returns linear mono data.
RGB channels are averaged to produce mono output.
- Parameters:
data – Pointer to the HDR data in memory
size – Size of the data in bytes
- Returns:
The linear mono image.