Spectral Recovery and Up-sampling#

Reflectance Recovery#

CIE XYZ Colourspace to Spectral#

colour

XYZ_to_sd(XYZ[, method])

Recover the spectral distribution of given CIE XYZ tristimulus values using given method.

XYZ_TO_SD_METHODS

Supported spectral distribution recovery methods.

Jakob and Hanika (2019)#

colour.recovery

XYZ_to_sd_Jakob2019(XYZ[, cmfs, illuminant, ...])

Recover the spectral distribution of given CIE XYZ tristimulus values using Jakob and Hanika (2019) method.

LUT3D_Jakob2019()

Define a class for working with pre-computed lookup tables for the Jakob and Hanika (2019) spectral upsampling method.

Ancillary Objects

colour.recovery

sd_Jakob2019(coefficients[, shape])

Return a spectral distribution following the spectral model given by Jakob and Hanika (2019).

find_coefficients_Jakob2019(XYZ[, cmfs, ...])

Compute the coefficients for Jakob and Hanika (2019) reflectance spectral model.

Mallett and Yuksel (2019)#

colour.recovery

RGB_to_sd_Mallett2019(RGB[, basis_functions])

Recover the spectral distribution of given RGB colourspace array using Mallett and Yuksel (2019) method.

Ancillary Objects

colour.recovery

MSDS_BASIS_FUNCTIONS_sRGB_MALLETT2019

the base object for multi spectral computations.

SPECTRAL_SHAPE_sRGB_MALLETT2019

Shape for Mallett and Yuksel (2019) sRGB colourspace basis functions: (380, 780, 5).

spectral_primary_decomposition_Mallett2019(...)

Perform the spectral primary decomposition as described in Mallett and Yuksel (2019) for given RGB colourspace.

Meng, Simon and Hanika (2015)#

colour.recovery

XYZ_to_sd_Meng2015(XYZ[, cmfs, illuminant, ...])

Recover the spectral distribution of given CIE XYZ tristimulus values using Meng et al. (2015) method.

Otsu, Yamamoto and Hachisuka (2018)#

colour.recovery

XYZ_to_sd_Otsu2018(XYZ[, cmfs, illuminant, ...])

Recover the spectral distribution of given CIE XYZ tristimulus values using Otsu et al. (2018) method.

Ancillary Objects

colour.recovery

Dataset_Otsu2018([shape, basis_functions, ...])

Store all the information needed for the Otsu et al. (2018) spectral upsampling method.

Tree_Otsu2018(*args, **kwargs)

A sub-class of colour.recovery.otsu2018.Node class representing the root node of a tree containing information shared with all the nodes, such as the standard observer colour matching functions and the illuminant, if any is used.

Smits (1999)#

colour.recovery

RGB_to_sd_Smits1999(RGB)

Recover the spectral distribution of given RGB colourspace array using Smits (1999) method.

SDS_SMITS1999

Smits (1999) spectral distributions.

Camera RGB Sensitivities Recovery#

Jiang, Liu, Gu and Süsstrunk (2013)#

colour.recovery

RGB_to_sd_camera_sensitivity_Jiang2013(RGB, ...)

Recover a single camera RGB sensitivity for given camera RGB values using Jiang et al. (2013) method.

RGB_to_msds_camera_sensitivities_Jiang2013(...)

Recover the camera RGB sensitivities for given camera RGB values using Jiang et al. (2013) method.

Ancillary Objects

colour.recovery

PCA_Jiang2013(msds_camera_sensitivities[, ...])

Perform the Principal Component Analysis (PCA) on given camera RGB sensitivities.