colour.write_spectral_image_Fichet2021#

colour.write_spectral_image_Fichet2021(components: Sequence[SpectralDistribution | MultiSpectralDistributions] | SpectralDistribution | MultiSpectralDistributions | ComponentsFichet2021 | ValuesView, path: str | PathLike, bit_depth: Literal['float16', 'float32'] = 'float32', specification: Specification_Fichet2021 = SPECIFICATION_FICHET2021_DEFAULT, components_to_RGB_callable: Callable = components_to_sRGB_Fichet2021, **kwargs: Any) bool[source]#

Write the specified Fichet et al. (2021) components to the specified path using OpenImageIO.

Parameters:
Returns:

Definition success.

Return type:

bool

Examples

>>> import os
>>> import colour
>>> path = os.path.join(
...     colour.__path__[0],
...     "io",
...     "tests",
...     "resources",
...     "BabelColorAverage.exr",
... )
>>> msds = list(colour.SDS_COLOURCHECKERS["BabelColor Average"].values())
>>> specification = Specification_Fichet2021(is_emissive=False)
>>> write_spectral_image_Fichet2021(
...     msds,
...     path,
...     "float16",
...     specification,
...     shape=(4, 6, len(msds[0].shape.wavelengths)),
... )
True