Defines RLAB colour appearance model objects:
References
[1] | Fairchild, M. D. (1996). Refinement of the RLAB color space. Color Research & Application, 21(5), 338–346. doi:10.1002/(SICI)1520-6378(199610)21:5<338::AID-COL3>3.0.CO;2-Z |
[2] | Fairchild, M. D. (2013). The RLAB Model. In Color Appearance Models (3rd ed., pp. 5563–5824). Wiley. ASIN:B00DAYO8E2 |
RLAB colour appearance model precomputed helper matrix.
R_MATRIX : array_like, (3, 3)
Reference RLAB colour appearance model viewing conditions.
RLAB colour appearance model Discounting-the-Illuminant factor values.
Aliases:
Bases: colour.appearance.rlab.RLAB_ReferenceSpecification
Defines the RLAB colour appearance model reference specification.
This specification has field names consistent with Fairchild (2013) reference.
Parameters: |
|
---|
Bases: colour.appearance.rlab.RLAB_Specification
Defines 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: |
|
---|
Computes the RLAB model color appearance correlates.
Parameters: |
|
---|---|
Returns: | RLAB colour appearance model specification. |
Return type: | RLAB_Specification |
Warning
The input domain of that definition is non standard!
Notes
Examples
>>> XYZ = np.array([19.01, 20.00, 21.78])
>>> XYZ_n = np.array([109.85, 100, 35.58])
>>> Y_n = 31.83
>>> sigma = RLAB_VIEWING_CONDITIONS['Average']
>>> D = RLAB_D_FACTOR['Hard Copy Images']
>>> XYZ_to_RLAB(XYZ, XYZ_n, Y_n, sigma, D)
RLAB_Specification(J=49.8347069..., C=54.8700585..., h=286.4860208..., s=1.1010410..., HC=None, a=15.5711021..., b=-52.6142956...)