colour.XYZ_to_Nayatani95#

colour.XYZ_to_Nayatani95(XYZ: ArrayLike, XYZ_n: ArrayLike, Y_o: ArrayLike, E_o: ArrayLike, E_or: ArrayLike, n: ArrayLike = 1) CAM_Specification_Nayatani95[source]#

Compute the Nayatani (1995) colour appearance model correlates.

Parameters:
  • XYZ (ArrayLike) – CIE XYZ tristimulus values of test sample / stimulus.

  • XYZ_n (ArrayLike) – CIE XYZ tristimulus values of reference white.

  • Y_o (ArrayLike) – Luminance factor \(Y_o\) of achromatic background as percentage normalised to domain [0.18, 1.0] in ‘Reference’ domain-range scale.

  • E_o (ArrayLike) – Illuminance \(E_o\) of the viewing field in lux.

  • E_or (ArrayLike) – Normalising illuminance \(E_{or}\) in lux usually normalised to domain [1000, 3000].

  • n (ArrayLike) – Noise term used in the non-linear chromatic adaptation model.

Returns:

Nayatani (1995) colour appearance model specification.

Return type:

colour.CAM_Specification_Nayatani95

Notes

Domain

Scale - Reference

Scale - 1

XYZ

[0, 100]

[0, 1]

XYZ_n

[0, 100]

[0, 1]

Range

Scale - Reference

Scale - 1

CAM_Specification_Nayatani95.h

[0, 360]

[0, 1]

References

[Fai13c], [NSY95]

Examples

>>> XYZ = np.array([19.01, 20.00, 21.78])
>>> XYZ_n = np.array([95.05, 100.00, 108.88])
>>> Y_o = 20.0
>>> E_o = 5000.0
>>> E_or = 1000.0
>>> XYZ_to_Nayatani95(XYZ, XYZ_n, Y_o, E_o, E_or)  
CAM_Specification_Nayatani95(L_star_P=49.9998829..., C=0.0133550..., h=257.5232268..., s=0.0133550..., Q=62.6266734..., M=0.0167262..., H=None, HC=None, L_star_N=50.0039154...)