aest 0.1.0
Collection of C++ utility libraries
Loading...
Searching...
No Matches
Tonemap.cppm File Reference

Partition aest.colors:tonemap: operators that compress HDR linear light into the 0-1 range of a display. More...

#include <array>
import aest.colors:gamut;
import aest.blas;

Go to the source code of this file.

Namespaces

namespace  aest::colors::tonemap
 Tonemapping operators, from HDR linear light to the 0-1 range of a display.

Functions

constexpr double aest::colors::tonemap::rrt_and_odt_fit (const double value)
 Rational fit of the ACES RRT and sRGB ODT curve, by Stephen Hill.
template<LinearRGBSpace Color>
constexpr Color aest::colors::tonemap::reinhard (const Color &color)
 Reinhard tonemapping, c / (1 + c) on each channel.
template<LinearRGBSpace Color>
constexpr Color aest::colors::tonemap::reinhard_extended (const Color &color, const float white)
 Extended Reinhard tonemapping, c (1 + c / w²) / (1 + c) on each channel, which maps white to 1.
template<LinearRGBSpace Color>
constexpr Color aest::colors::tonemap::aces_fitted (const Color &color)
 Fitted ACES tonemapping by Stephen Hill: an approximation of the ACES Reference Rendering Transform and sRGB Output Device Transform.

Variables

constexpr Matrix3 aest::colors::tonemap::ACES_INPUT
 Input matrix of the ACES fit by Stephen Hill: linear sRGB to the ACES AP1 primaries, with the saturation step of the RRT folded in.
constexpr Matrix3 aest::colors::tonemap::ACES_OUTPUT
 Output matrix of the ACES fit by Stephen Hill: back from the ODT to linear sRGB, with the saturation step of the ODT folded in.

Detailed Description

Partition aest.colors:tonemap: operators that compress HDR linear light into the 0-1 range of a display.

Author
Davide Pierotti

Definition in file Tonemap.cppm.