colour.CAM_Specification_Nayatani95#

class colour.CAM_Specification_Nayatani95(L_star_P: Optional[FloatingOrNDArray] = <factory>, C: Optional[FloatingOrNDArray] = <factory>, h: Optional[FloatingOrNDArray] = <factory>, s: Optional[FloatingOrNDArray] = <factory>, Q: Optional[FloatingOrNDArray] = <factory>, M: Optional[FloatingOrNDArray] = <factory>, H: Optional[FloatingOrNDArray] = <factory>, HC: Optional[FloatingOrNDArray] = <factory>, L_star_N: Optional[FloatingOrNDArray] = <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 (Optional[FloatingOrNDArray]) – Correlate of achromatic Lightness \(L_p^\star\).

  • C (Optional[FloatingOrNDArray]) – Correlate of chroma \(C\).

  • h (Optional[FloatingOrNDArray]) – Hue angle \(\theta\) in degrees.

  • s (Optional[FloatingOrNDArray]) – Correlate of saturation \(S\).

  • Q (Optional[FloatingOrNDArray]) – Correlate of brightness \(B_r\).

  • M (Optional[FloatingOrNDArray]) – Correlate of colourfulness \(M\).

  • H (Optional[FloatingOrNDArray]) – Hue \(h\) quadrature \(H\).

  • HC (Optional[FloatingOrNDArray]) – Hue \(h\) composition \(H_C\).

  • L_star_N (Optional[FloatingOrNDArray]) – Correlate of normalised achromatic Lightness \(L_n^\star\).

Return type

None

Notes

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

References

[Fai13c], [NSY95]

__init__(L_star_P: Optional[FloatingOrNDArray] = <factory>, C: Optional[FloatingOrNDArray] = <factory>, h: Optional[FloatingOrNDArray] = <factory>, s: Optional[FloatingOrNDArray] = <factory>, Q: Optional[FloatingOrNDArray] = <factory>, M: Optional[FloatingOrNDArray] = <factory>, H: Optional[FloatingOrNDArray] = <factory>, HC: Optional[FloatingOrNDArray] = <factory>, L_star_N: Optional[FloatingOrNDArray] = <factory>) None#
Parameters
  • L_star_P (Optional[FloatingOrNDArray]) –

  • C (Optional[FloatingOrNDArray]) –

  • h (Optional[FloatingOrNDArray]) –

  • s (Optional[FloatingOrNDArray]) –

  • Q (Optional[FloatingOrNDArray]) –

  • M (Optional[FloatingOrNDArray]) –

  • H (Optional[FloatingOrNDArray]) –

  • HC (Optional[FloatingOrNDArray]) –

  • L_star_N (Optional[FloatingOrNDArray]) –

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