colour.CAM_Specification_Hunt#

class colour.CAM_Specification_Hunt(J: 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>)[source]#

Define the Hunt 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 (float | NDArrayFloat | None) – Correlate of Lightness \(J\).

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

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

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

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

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

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

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

Notes

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

References

[Fai13b], [Hun04]

__init__(J: 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>) None#
Parameters:
  • J (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)

Return type:

None

Methods

__init__([J, 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.

J

C

h

s

Q

M

H

HC