Antkeeper
0.0.1
|
RGB color space. More...
#include <rgb.hpp>
Public Types | |
using | transfer_function_type = math::vec3< T >(*)(const math::vec3< T > &) |
Transfer function function pointer type. More... | |
Public Member Functions | |
constexpr | rgb_color_space (const math::vec2< T > &r, const math::vec2< T > &g, const math::vec2< T > &b, const math::vec2< T > &w, transfer_function_type eotf, transfer_function_type oetf) |
Constructs an RGB color space. More... | |
constexpr T | luminance (const math::vec3< T > &x) const noexcept |
Measures the luminance of a linear RGB color. More... | |
Public Attributes | |
const math::vec2< T > | r |
CIE xy chromaticity coordinates of the red primary. More... | |
const math::vec2< T > | g |
CIE xy chromaticity coordinates of the green primary. More... | |
const math::vec2< T > | b |
CIE xy chromaticity coordinates of the blue primary. More... | |
const math::vec2< T > | w |
CIE xy chromaticity coordinates of the white point. More... | |
const transfer_function_type | eotf |
Function pointer to the electro-optical transfer function. More... | |
const transfer_function_type | oetf |
Function pointer to the opto-electrical transfer function. More... | |
const math::mat3< T > | to_xyz |
Matrix which transforms an RGB color to a CIE XYZ color. More... | |
const math::mat3< T > | from_xyz |
Matrix which transforms a CIE XYZ color to an RGB color. More... | |
const math::vec3< T > | to_y |
Vector which gives the luminance of an RGB color via dot product. More... | |
RGB color space.
using color::rgb_color_space< T >::transfer_function_type = math::vec3<T> (*)(const math::vec3<T>&) |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
const math::vec2<T> color::rgb_color_space< T >::b |
const transfer_function_type color::rgb_color_space< T >::eotf |
const math::mat3<T> color::rgb_color_space< T >::from_xyz |
const math::vec2<T> color::rgb_color_space< T >::g |
const transfer_function_type color::rgb_color_space< T >::oetf |
const math::vec2<T> color::rgb_color_space< T >::r |
const math::mat3<T> color::rgb_color_space< T >::to_xyz |
const math::vec3<T> color::rgb_color_space< T >::to_y |
const math::vec2<T> color::rgb_color_space< T >::w |