Class RGB_t¶
Defined in File RGB.hpp
Inheritance Relationships¶
Base Type¶
public wt::sensor::response::response_t
(Class response_t)
Class Documentation¶
-
class RGB_t : public wt::sensor::response::response_t¶
Multi-channel RGB response function. Internally, converts spectral data to XYZ and then to RGB. Conversion depends on the desired RGB colourspace and white point. Defaults to CIE colourspace with a D50 white point.
Public Functions
-
virtual ~RGB_t() noexcept = default¶
-
inline const auto &get_XYZ_to_RGB_matrix() const noexcept¶
Returns the XYZ-to-RGB conversion matrix used by this RGB response function.
-
inline auto get_RGB_colourspace() const noexcept¶
Returns the colourspace of this RGB response function.
-
inline auto get_whitepoint() const noexcept¶
Returns the white point of this RGB response function.
-
inline virtual bitmap::pixel_layout_t pixel_layout() const noexcept override¶
Returns the response function’s pixel layout.
-
virtual const f_t f(std::uint32_t channel, const wavenumber_t &k) const noexcept override¶
Evaluates the sensor sensitivity function.
-
inline virtual const spectrum::spectrum_real_t &sensitivity() const noexcept override¶
Returns the sensor’s sensitivity spectrum (the sum of all channels’ response spectra)
Public Static Functions
-
static std::unique_ptr<response_t> load(std::string id, scene::loader::loader_t *loader, const scene::loader::node_t &node, const wt::wt_context_t &context)¶
Public Static Attributes
-
static constexpr auto default_colourspace = colourspace::RGB_colourspace_e::CIE¶
-
static constexpr auto default_white_point = colourspace::white_point_e::D50¶
-
virtual ~RGB_t() noexcept = default¶