Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Colour 0.4.2 - Current Changes

Colour 0.4.2 - Alpha Milestone

Features

colour.appearance

  • Implement support for Hellwig and Fairchild (2022) Colour Appearance Model with colour.XYZ_to_Hellwig2022 and colour.Hellwig2022_to_XYZ definitions. (@KelSolaar)

colour.difference

  • Inmplement support for Recommendation ITU-R BT.2124 with colour.difference.delta_E_ITP definition. (@sabarish-srinivasan)

colour.io

  • Implement simple wrapper for the Color Transformation Language (CTL) with the colour.io.ctl_render and colour.io.process_image_ctl definitions. (@KelSolaar)

colour.temperature

  • Add new colour.temperature.CCT_to_uv_Ohno2013 definition. (@KelSolaar)

Performance

  • colour.temperature.uv_to_CCT_Ohno2013 definition isn ~100x faster. (@KelSolaar)
  • colour.temperature.CCT_to_uv_Ohno2013 definition is ~425x faster. (@KelSolaar)

Changes

colour.characterisation

Object Signature Author
colour.sd_to_aces_relative_exposure_values sd_to_aces_relative_exposure_values(sd: SpectralDistribution, illuminant: Optional[SpectralDistribution] = None, chromatic_adaptation_transform: Optional[Union[Literal["Bianco 2010", "Bianco PC 2010", "Bradford", "CAT02 Brill 2008", "CAT02", "CAT16", "CMCCAT2000", "CMCCAT97", "Fairchild", "Sharp", "Von Kries", "XYZ Scaling", ], str, ]]= "CAT02") -> NDArray @KelSolaar

colour.colorimetry

  • The CIE 2012 2 Degree Standard Observer and CIE 2012 10 Degree Standard Observer keys in the colour.MSDS_CMFS attribute have been renamed to CIE 2015 2 Degree Standard Observer and CIE 2015 10 Degree Standard Observer respectively for consistency with their official CIE names. (@KelSolaar)

colour.models

Object Name Author
colour.models.eotf_inverse_BT2020 oetf_BT2020 @KelSolaar, @fxthomas
colour.models.eotf_BT2020 oetf_inverse_BT2020 @KelSolaar, @fxthomas
colour.models.oetf_PQ_BT2100 oetf_BT2100_PQ @KelSolaar
colour.models.oetf_inverse_PQ_BT2100 oetf_inverse_BT2100_PQ ...
colour.models.eotf_PQ_BT2100 eotf_BT2100_PQ ...
colour.models.eotf_inverse_PQ_BT2100 eotf_inverse_BT2100_PQ ...
colour.models.ootf_PQ_BT2100 ootf_BT2100_PQ ...
colour.models.ootf_inverse_PQ_BT2100 ootf_inverse_BT2100_PQ ...
colour.models.oetf_HLG_BT2100 oetf_BT2100_HLG ...
colour.models.oetf_inverse_HLG_BT2100 oetf_inverse_BT2100_HLG ...
colour.models.eotf_HLG_BT2100 eotf_BT2100_HLG ...
colour.models.eotf_inverse_HLG_BT2100 eotf_inverse_BT2100_HLG ...
colour.models.ootf_HLG_BT2100 ootf_BT2100_HLG ...
colour.models.ootf_inverse_HLG_BT2100 ootf_inverse_BT2100_HLG ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment