Skip to content

Releases: colour-science/colour

Colour 0.3.3

27 Dec 07:39
Compare
Choose a tag to compare

Colour 0.3.3 - Alpha Milestone

Features

colour.adaptation

  • Implement support for various new chromatic adaptation models: (@KelSolaar, @MichaelMauderer)
    • CMCCAT2000: colour.chromatic_adaptation_CMCCAT2000
    • CIE 1994: colour.chromatic_adaptation_CIE1994
    • Fairchild (1990): colour.chromatic_adaptation_Fairchild1990
  • Implement new convenient Von Kries chromatic adaptation model wrapper definition: colour.chromatic_adaptation_VonKries.
    It allows adaptation of a given CIE XYZ colourspace matrix from given source to target viewing conditions CIE XYZ colourspace whitepoint matrices. (@KelSolaar)
  • Implement new chromatic adaptation transforms: (@KelSolaar)
    • colour.SHARP_CAT
    • colour.CMCCAT2000_CAT
    • colour.CMCCAT97_CAT
    • colour.CAT02_BRILL_CAT
    • colour.BS_CAT
    • colour.BS_PC_CAT

colour.algebra

colour.colorimetry

  • Implement new methods to exponentiate spectral power distributions and tri-spectral power distributions: colour.SpectralPowerDistribution.__pow__ and colour.TriSpectralPowerDistribution.__pow__. (@canavandl)
  • Implement new properties for Latex title in spectral power distributions and tri-spectral power distributions: colour.SpectralPowerDistribution.title and colour.TriSpectralPowerDistribution.title. (@KelSolaar)
  • Add new light sources: (@KelSolaar)
    • Natural
    • Philips TL-84
    • T8 Luxline Plus White
    • SA
    • SC
    • T8 Polylux 3000
    • T8 Polylux 4000
    • Thorn Kolor-rite
    • Cool White FL
    • Daylight FL
    • HPS
    • Incandescent
    • LPS
    • Mercury
    • Metal Halide
    • Neodimium Incandescent
    • Super HPS
    • Triphosphor FL
    • 3-LED-1 (457/540/605)
    • 3-LED-2 (473/545/616)
    • 3-LED-2 Yellow
    • 3-LED-3 (465/546/614)
    • 3-LED-4 (455/547/623)
    • 4-LED No Yellow
    • 4-LED Yellow
    • 4-LED-1 (461/526/576/624)
    • 4-LED-2 (447/512/573/627)
    • Luxeon WW 2880
    • PHOS-1
    • PHOS-2
    • PHOS-3
    • PHOS-4
    • Phosphor LED YAG
    • 60 A/W (Soft White)
    • C100S54 (HPS)
    • C100S54C (HPS)
    • F32T8/TL830 (Triphosphor)
    • F32T8/TL835 (Triphosphor)
    • F32T8/TL841 (Triphosphor)
    • F32T8/TL850 (Triphosphor)
    • F32T8/TL865 /PLUS (Triphosphor)
    • F34/CW/RS/EW (Cool White FL)
    • F34T12/LW/RS /EW
    • F34T12WW/RS /EW (Warm White FL)
    • F40/C50 (Broadband FL)
    • F40/C75 (Broadband FL)
    • F40/CWX (Broadband FL)
    • F40/DX (Broadband FL)
    • F40/DXTP (Delux FL)
    • F40/N (Natural FL)
    • H38HT-100 (Mercury)
    • H38JA-100/DX (Mercury DX)
    • MHC100/U/MP /3K
    • MHC100/U/MP /4K
    • SDW-T 100W/LV (Super HPS)
  • Implement whiteness computation support: (@KelSolaar)
    • colour.whiteness_Berger1959
    • colour.whiteness_Taube1960
    • colour.whiteness_Stensby1968
    • colour.whiteness_ASTM313
    • colour.whiteness_Ganz1979
    • colour.whiteness_CIE2004
  • Implement Luminous Flux computation support: colour.luminous_flux. (@canavandl, @MichaelMauderer, @KelSolaar)

colour.corresponding

  • Add Breneman (1987) corresponding chromaticities dataset. (@KelSolaar)
  • Implement new definitions to compute corresponding chromaticities prediction using Breneman (1987) dataset: (@KelSolaar)
    • colour.corresponding_chromaticities_prediction_VonKries
    • colour.corresponding_chromaticities_prediction_CIE1994
    • colour.corresponding_chromaticities_prediction_CMCCAT2000
    • colour.corresponding_chromaticities_prediction_Fairchild1990

colour.io

  • Implement support for IES TM-27-14 - IES Standard Format for the Electronic Transfer of Spectral Data paper: colour.IES_TM2714_Spd (@KelSolaar)
  • Implement support for X-Rite ProfileMaker 5 spectral data files reading: colour.read_spds_from_xrite_file (@KelSolaar)

colour.models

  • Add remaining relevant Pointer's Gamut data. (@KelSolaar)
  • Implement convenient colour.sRGB_to_XYZ definition. (@KelSolaar)
  • Implement support for IPT colourspace: colour.XYZ_to_IPT, colour.IPT_to_XYZ, colour.IPT_hue_angle. (@MichaelMauderer)

colour.plotting

  • Implement new definition to plot Colour Quality Scale: colour.plotting.colour_quality_scale_bars_plot. (@KelSolaar)
  • Implement new definition to plot corresponding chromaticities prediction: colour.plotting.corresponding_chromaticities_prediction_plot. (@KelSolaar)
  • Implement new definition to define figures size and aspect ratio: colour.plotting.canvas. (@KelSolaar)

colour.quality

colour.recovery

  • Implement support for reflectance recovery using Smits (1999) method: colour.RGB_to_spectral_Smits1999. (@KelSolaar)

colour.utilities

  • Implement convenient colour.utilities.batch definition yielding batches from given iterable. (@KelSolaar)

Fixes

colour.appearance

  • Precision issue in colour.XYZ_to_LLAB definition because of rounded colour.appearance.llab.LLAB_RGB_TO_XYZ_MATRIX. (@MichaelMauderer)

colour.colorimetry

  • colour.SpectralShape.range method was returning an extra number when used with some non uniformly spaced variables. (@KelSolaar)

colour.models

  • colour.ALEXA_WIDE_GAMUT_RGB_TRANSFER_FUNCTION was incorrectly computed (@KelSolaar)
  • colour.PROPHOTO_RGB_INVERSE_TRANSFER_FUNCTION was incorrectly computed (@sagland, @KelSolaar)
  • colour.REC_709_INVERSE_TRANSFER_FUNCTION was incorrectly computed (@sagland, @KelSolaar)
  • colour.REC_2020_INVERSE_TRANSFER_FUNCTION was incorrectly computed (@sagland, @KelSolaar)
  • colour.sRGB_INVERSE_TRANSFER_FUNCTION was incorrectly computed (@sagland, @KelSolaar)

Changes

colour.algebra

  • colour.to_ndarray: (@KelSolaar)
    • Name: colour.as_array
    • Signature: as_array(x, shape=None, data_type=np.float_)

colour.adaptation

  • colour.chromatic_adaptation_matrix: (@KelSolaar)
    • Name: colour.chromatic_adaptation_matrix_VonKries
    • Signature: chromatic_adaptation_matrix_VonKries(XYZ_w, XYZ_wr, transform='CAT02')

colour.colorimetry

  • colour.bandpass_correction_stearns1988: (@KelSolaar)
    • Name: colour.bandpass_correction_Stearns1988
  • colour.lightness_glasser1958: (@KelSolaar)
    • Name: colour.lightness_Glasser1958
  • colour.lightness_wyszecki1964: (@KelSolaar)
    • Name: colour.lightness_Wyszecki1963
  • colour.lightness_1976: (@KelSolaar)
    • Signature: colour.lightness_1976(Y, Y_n=100)
  • colour.luminance_ASTM_D1535_08: (@KelSolaar)
    • Name: colour.luminance_ASTMD153508
  • colour.luminance_newhall1943: (@KelSolaar)
    • Name: colour.luminance_Newhall1943
  • colour.luminance_1976: (@KelSolaar)
    • Signature: colour.luminance_1976(Lstar, Y_n=100)
  • colour.SpectralPowerDistribution: (@KelSolaar)
    • Signature: colour.SpectralPowerDistribution(self, name, data, title=None)
  • colour.TriSpectralPowerDistribution: (@KelSolaar)
    • Signature: colour.TriSpectralPowerDistribution(self, name, data, mapping, title=None, labels=None)

colour.difference

  • colour.delta_E_CIE_1976: (@KelSolaar)
    • Name: colour.delta_E_CIE1976
  • colour.delta_E_CIE_1994: (@KelSolaar)
    • Name: colour.delta_E_CIE1994
  • colour.delta_E_CIE_2000: (@KelSolaar)
    • Name: colour.delta_E_CIE2000

colour.models

  • colour.RGB_Colourspace (@KelSolaar)
    • colour.RGB_Colourspace.to_RGB:
      • Name: colour.XYZ_to_RGB_matrix
    • colour.RGB_Colourspace.to_XYZ:
      • Name: colour.RGB_to_XYZ_matrix
  • colour.XYZ_to_RGB: (@KelSolaar)
    • Signature: XYZ_to_RGB(XYZ, illuminant_XYZ, illuminant_RGB, XYZ_to_RGB_matrix, chromatic_adaptation_transform, transfer_function)
  • colour.RGB_to_XYZ: (@KelSolaar)
    • Signature: RGB_to_XYZ(RGB, illuminant_RGB, illuminant_XYZ, RGB_to_XYZ_matrix, chromatic_adaptation_transform, inverse_transfer_function)
  • colour.RGB_to_RGB: (@KelSolaar)
    • Signature: RGB_to_RGB(RGB, input_colourspace, output_colourspace, chromatic_adaptation_transform)
  • colour.XYZ_to_sRGB: (@KelSolaar)
    • Signature: XYZ_to_sRGB(XYZ, illuminant, chromatic_adaptation_transform, transfer_function)
  • colour.models.deprecated.RGB_to_HEX: (@KelSolaar)
    • Location: colour.notation.triplet.RGB_to_HEX
  • colour.models.deprecated.HEX_to_RGB: (@KelSolaar)
    • Location: colour.notation.triplet.HEX_to_RGB
  • colour.POINTER_GAMUT_DATA: (@KelSolaar)
    • Name: colour.POINTER_GAMUT_BOUNDARIES

colour.notation

  • colour.munsell_value_ASTM_D1535_08: (@KelSolaar)
    • Name: colour.munsell_value_ASTMD153508
  • colour.munsell_value_ladd1955: (@KelSolaar)
    • Name: colour.munsell_value_Ladd1955
  • colour.munsell_value_mccamy1987: (@KelSolaar)
    • Name: colour.munsell_value_McCamy1987
  • colour.munsell_value_moon1943: (@KelSolaar)
    • Name: colour.munsell_value_Moon1943
  • colour.munsell_value_munsell1933: (@KelSolaar)
    • Name: colour.munsell_value_Munsell1933
  • colour.munsell_value_priest1920: (@KelSolaar)
    • Name: colour.munsell_value_Priest1920
  • colour.munsell_value_saunderson1944: (@KelSolaar)
    • Name: colour.munsell_value_Saunderson1944

colour.plotting

  • colour.plotting.figure_size: (@KelSolaar)
    • Remove
  • colour.plotting.aspect: (@KelSolaar)
    • Name: colour.plotting.decorate
  • colour.plotting.bounding_box: (@KelSolaar)
    • Name: colour.plotting.boundaries

colour.quality

  • colour.colour_rendering_index (@KelSolaar)
    • Signature: colour.colour_rendering_index(spd_test, additional_data=False)
    • Output: Specifying additional_data=True argument now outputs of a colour.CRI_Specification class instance.

colour.temperature

-...

Read more

Colour 0.3.2

03 Sep 08:20
Compare
Choose a tag to compare

Colour 0.3.2 - Alpha Milestone

Features

Fixes

  • Ensure extra resources are packaged for Pypi. (@KelSolaar)

Changes

Colour 0.3.1

26 Oct 10:00
Compare
Choose a tag to compare

Colour 0.3.1 - Alpha Milestone

Features

  • Add utilities/references_scraping.py utility module. (@KelSolaar)

Fixes

colour.models

Changes

  • Update various references with DOI. (@KelSolaar)

Colour 0.3.0

13 Sep 18:51
Compare
Choose a tag to compare