colour.CAM_Specification_Nayatani95#

class colour.CAM_Specification_Nayatani95(L_star_P: float | NDArrayFloat | None = <factory>, C: float | NDArrayFloat | None = <factory>, h: float | NDArrayFloat | None = <factory>, s: float | NDArrayFloat | None = <factory>, Q: float | NDArrayFloat | None = <factory>, M: float | NDArrayFloat | None = <factory>, H: float | NDArrayFloat | None = <factory>, HC: float | NDArrayFloat | None = <factory>, L_star_N: float | NDArrayFloat | None = <factory>)[source]#

Define the Nayatani (1995) 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:
  • L_star_P (float | NDArrayFloat | None) – Correlate of achromatic Lightness \(L_p^\star\).

  • C (float | NDArrayFloat | None) – Correlate of chroma \(C\).

  • h (float | NDArrayFloat | None) – Hue angle \(\theta\) in degrees.

  • s (float | NDArrayFloat | None) – Correlate of saturation \(S\).

  • Q (float | NDArrayFloat | None) – Correlate of brightness \(B_r\).

  • M (float | NDArrayFloat | None) – Correlate of colourfulness \(M\).

  • H (float | NDArrayFloat | None) – Hue \(h\) quadrature \(H\).

  • HC (float | NDArrayFloat | None) – Hue \(h\) composition \(H_C\).

  • L_star_N (float | NDArrayFloat | None) – Correlate of normalised achromatic Lightness \(L_n^\star\).

Notes

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

References

[Fai13c], [NSY95]

__init__(L_star_P: float | NDArrayFloat | None = <factory>, C: float | NDArrayFloat | None = <factory>, h: float | NDArrayFloat | None = <factory>, s: float | NDArrayFloat | None = <factory>, Q: float | NDArrayFloat | None = <factory>, M: float | NDArrayFloat | None = <factory>, H: float | NDArrayFloat | None = <factory>, HC: float | NDArrayFloat | None = <factory>, L_star_N: float | NDArrayFloat | None = <factory>) None#
Parameters:
  • L_star_P (float | NDArrayFloat | None)

  • C (float | NDArrayFloat | None)

  • h (float | NDArrayFloat | None)

  • s (float | NDArrayFloat | None)

  • Q (float | NDArrayFloat | None)

  • M (float | NDArrayFloat | None)

  • H (float | NDArrayFloat | None)

  • HC (float | NDArrayFloat | None)

  • L_star_N (float | NDArrayFloat | None)

Return type:

None

Methods

__init__([L_star_P, C, h, s, Q, M, H, HC, ...])

arithmetical_operation(a, operation[, in_place])

Perform given arithmetical operation with \(a\) operand on the dataclass-like class.

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.

L_star_P

C

h

s

Q

M

H

HC

L_star_N