colour.characterisation.RGB_SpectralSensitivities

class colour.characterisation.RGB_SpectralSensitivities(data=None, domain=None, labels=None, **kwargs)[source]

Implements support for a camera RGB spectral sensitivities.

Parameters:
  • data (Series or Dataframe or Signal or MultiSignals or MultiSpectralDistributions or array_like or dict_like, optional) – Data to be stored in the multi-spectral distributions.
  • domain (array_like, optional) – Values to initialise the multiple colour.SpectralDistribution class instances colour.continuous.Signal.wavelengths attribute with. If both data and domain arguments are defined, the latter will be used to initialise the colour.continuous.Signal.wavelengths attribute.
  • labels (array_like, optional) – Names to use for the colour.SpectralDistribution class instances.
Other Parameters:
 
  • name (unicode, optional) – Multi-spectral distributions name.
  • interpolator (object, optional) – Interpolator class type to use as interpolating function for the colour.SpectralDistribution class instances.
  • interpolator_args (dict_like, optional) – Arguments to use when instantiating the interpolating function of the colour.SpectralDistribution class instances.
  • extrapolator (object, optional) – Extrapolator class type to use as extrapolating function for the colour.SpectralDistribution class instances.
  • extrapolator_args (dict_like, optional) – Arguments to use when instantiating the extrapolating function of the colour.SpectralDistribution class instances.
  • strict_labels (array_like, optional) – Multi-spectral distributions labels for figures, default to colour.characterisation.RGB_SpectralSensitivities.labels attribute value.
__init__(data=None, domain=None, labels=None, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([data, domain, labels]) Initialize self.
align(shape[, interpolator, …]) Aligns the multi-spectral distributions in-place to given spectral shape: Interpolates first then extrapolates to fit the given range.
arithmetical_operation(a, operation[, in_place]) Performs given arithmetical operation with \(a\) operand, the operation can be either performed on a copy or in-place.
clone()
copy() Returns a copy of the sub-class instance.
domain_distance(a) Returns the euclidean distance between given array and independent domain \(x\) closest element.
extrapolate(shape[, extrapolator, …]) Extrapolates the multi-spectral distributions in-place according to CIE 15:2004 and CIE 167:2005 recommendations or given extrapolation arguments.
fill_nan([method, default]) Fill NaNs in independent domain \(x\) variable and corresponding range \(y\) variable using given method.
get()
interpolate(shape[, interpolator, …]) Interpolates the multi-spectral distributions in-place according to CIE 167:2005 recommendation or given interpolation arguments.
is_uniform() Returns if independent domain \(x\) variable is uniform.
multi_signals_unpack_data([data, domain, …]) Unpack given data for multi-continuous signals instantiation.
normalise([factor]) Normalises the multi-spectral distributions with given normalization factor.
to_dataframe() Converts the continuous signal to a Pandas DataFrame class instance.
to_sds() Converts the multi-spectral distributions to a list of spectral distributions and update their name and strict name using the labels and strict labels.
trim(shape) Trims the multi-spectral distributions wavelengths to given shape.
trim_wavelengths(shape)
zeros()

Attributes

data
domain Getter and setter property for the colour.continuous.Signal sub-class instances independent domain \(x\) variable.
dtype Getter and setter property for the continuous signal dtype.
extrapolator Getter and setter property for the colour.continuous.Signal sub-class instances extrapolator type.
extrapolator_args Getter and setter property for the colour.continuous.Signal sub-class instances extrapolator instantiation time arguments.
function Getter and setter property for the colour.continuous.Signal sub-class instances callable.
interpolator Getter and setter property for the colour.continuous.Signal sub-class instances interpolator type.
interpolator_args Getter and setter property for the colour.continuous.Signal sub-class instances interpolator instantiation time arguments.
items
labels Getter and setter property for the colour.continuous.Signal sub-class instances name.
mapping
name Getter and setter property for the abstract continuous function name.
range Getter and setter property for the colour.continuous.Signal sub-class instances corresponding range \(y\) variable.
shape Getter and setter property for the multi-spectral distributions shape.
signal_type Getter and setter property for the colour.continuous.Signal sub-class instances type.
signals Getter and setter property for the colour.continuous.Signal sub-class instances.
strict_labels Getter and setter property for the multi-spectral distributions strict labels.
strict_name Getter and setter property for the multi-spectral distributions strict name.
title
values Getter and setter property for the multi-spectral distributions values.
wavelengths Getter and setter property for the multi-spectral distributions wavelengths \(\lambda_n\).
x
y
z