colour.CAM_Specification_RLAB#

class colour.CAM_Specification_RLAB(J: NDArrayFloat | None = <factory>, C: NDArrayFloat | None = <factory>, h: NDArrayFloat | None = <factory>, s: NDArrayFloat | None = <factory>, HC: NDArrayFloat | None = <factory>, a: NDArrayFloat | None = <factory>, b: NDArrayFloat | None = <factory>)[source]#

Define the RLAB colour appearance model specification.

This specification has field names consistent with the remaining colour appearance models in colour.appearance but diverge from Fairchild (2013) reference.

Parameters:
  • J (NDArrayFloat | None) – Correlate of Lightness \(L^R\).

  • C (NDArrayFloat | None) – Correlate of achromatic chroma \(C^R\).

  • h (NDArrayFloat | None) – Hue angle \(h^R\) in degrees.

  • s (NDArrayFloat | None) – Correlate of saturation \(s^R\).

  • HC (NDArrayFloat | None) – Hue \(h\) composition \(H^C\).

  • a (NDArrayFloat | None) – Red-green chromatic response \(a^R\).

  • b (NDArrayFloat | None) – Yellow-blue chromatic response \(b^R\).

Notes

  • This specification is the one used in the current model implementation.

References

[Fai96], [Fai13d]

__init__(J: NDArrayFloat | None = <factory>, C: NDArrayFloat | None = <factory>, h: NDArrayFloat | None = <factory>, s: NDArrayFloat | None = <factory>, HC: NDArrayFloat | None = <factory>, a: NDArrayFloat | None = <factory>, b: NDArrayFloat | None = <factory>) None#
Parameters:
  • J (NDArrayFloat | None)

  • C (NDArrayFloat | None)

  • h (NDArrayFloat | None)

  • s (NDArrayFloat | None)

  • HC (NDArrayFloat | None)

  • a (NDArrayFloat | None)

  • b (NDArrayFloat | None)

Return type:

None

Methods

__init__([J, C, h, s, HC, a, b])

Attributes

fields

Getter property for the fields of the dataclass-like class.

items

Getter property for the dataclass-like class items, i.e. the field names and values.

keys

Getter property for the dataclass-like class keys, i.e. the field names.

values

Getter property for the dataclass-like class values, i.e. the field values.

J

C

h

s

HC

a

b