Skip to content

Commit

Permalink
Implement metadata support in "colour.models.ucs_luo2006” module.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Feb 20, 2018
1 parent d842d22 commit 283026d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions colour/models/cam02_ucs.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def JMh_CIECAM02_to_UCS_Luo2006(JMh, coefficients):
Parameters
----------
JMh : array_like
metadata : {'type': 'CIECAM02 JMh', 'symbol': 'JMh', 'extent':
((0, 100), (0, 100), (0, 360))}
*CIECAM02* correlates array :math:`JMh`.
coefficients : array_like
Coefficients of one of the *Luo et alii (2006)* *CAM02-LCD*,
Expand All @@ -94,9 +96,16 @@ def JMh_CIECAM02_to_UCS_Luo2006(JMh, coefficients):
Returns
-------
ndarray
metadata : {'type': 'Jpapbp', 'symbol': "J'a'b'", 'extent':
((0, 100), (-1, 1), (-1, 1))}
*Luo et alii (2006)* *CAM02-LCD*, *CAM02-SCD*, or *CAM02-UCS*
colourspaces :math:`J'a'b'` array.
Notes
-----
metadata : {'classifier': 'Colour Model Conversion Function',
'method_name': 'Luo 2006', 'method_strict_name': 'Luo et al. (2006)'}
Examples
--------
>>> from colour.appearance import (
Expand Down Expand Up @@ -135,6 +144,8 @@ def UCS_Luo2006_to_JMh_CIECAM02(Jpapbp, coefficients):
Parameters
----------
Jpapbp : array_like
metadata : {'type': 'Jpapbp', 'symbol': "J'a'b'", 'extent':
((0, 100), (-1, 1), (-1, 1))}
*Luo et alii (2006)* *CAM02-LCD*, *CAM02-SCD*, or *CAM02-UCS*
colourspaces :math:`J'a'b'` array.
coefficients : array_like
Expand All @@ -144,8 +155,15 @@ def UCS_Luo2006_to_JMh_CIECAM02(Jpapbp, coefficients):
Returns
-------
ndarray
metadata : {'type': 'CIECAM02 JMh', 'symbol': 'JMh', 'extent':
((0, 100), (0, 100), (0, 360))}
*CIECAM02* correlates array :math:`JMh`.
Notes
-----
metadata : {'classifier': 'Colour Model Conversion Function',
'method_name': 'Luo 2006', 'method_strict_name': 'Luo et al. (2006)'}
Examples
--------
>>> Jpapbp = np.array([54.90433134, -0.08450395, -0.06854831])
Expand Down

0 comments on commit 283026d

Please sign in to comment.