code stringlengths 66 870k | docstring stringlengths 19 26.7k | func_name stringlengths 1 138 | language stringclasses 1
value | repo stringlengths 7 68 | path stringlengths 5 324 | url stringlengths 46 389 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
def test_n_dimensional_XYZ_to_CIECAM16(self) -> None:
"""
Test :func:`colour.appearance.ciecam16.XYZ_to_CIECAM16` definition
n-dimensional support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
L_A = 318.31
Y_b = 20
... |
Test :func:`colour.appearance.ciecam16.XYZ_to_CIECAM16` definition
n-dimensional support.
| test_n_dimensional_XYZ_to_CIECAM16 | python | colour-science/colour | colour/appearance/tests/test_ciecam16.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_ciecam16.py | BSD-3-Clause |
def test_domain_range_scale_XYZ_to_CIECAM16(self) -> None:
"""
Test :func:`colour.appearance.ciecam16.XYZ_to_CIECAM16` definition
domain and range scale support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
L_A = 318.31
... |
Test :func:`colour.appearance.ciecam16.XYZ_to_CIECAM16` definition
domain and range scale support.
| test_domain_range_scale_XYZ_to_CIECAM16 | python | colour-science/colour | colour/appearance/tests/test_ciecam16.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_ciecam16.py | BSD-3-Clause |
def test_nan_XYZ_to_CIECAM16(self) -> None:
"""
Test :func:`colour.appearance.ciecam16.XYZ_to_CIECAM16` definition
nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
surround = InductionFactors... |
Test :func:`colour.appearance.ciecam16.XYZ_to_CIECAM16` definition
nan support.
| test_nan_XYZ_to_CIECAM16 | python | colour-science/colour | colour/appearance/tests/test_ciecam16.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_ciecam16.py | BSD-3-Clause |
def test_n_dimensional_CIECAM16_to_XYZ(self) -> None:
"""
Test :func:`colour.appearance.ciecam16.CIECAM16_to_XYZ` definition
n-dimensional support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
L_A = 318.31
Y_b = 20
... |
Test :func:`colour.appearance.ciecam16.CIECAM16_to_XYZ` definition
n-dimensional support.
| test_n_dimensional_CIECAM16_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_ciecam16.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_ciecam16.py | BSD-3-Clause |
def test_domain_range_scale_CIECAM16_to_XYZ(self) -> None:
"""
Test :func:`colour.appearance.ciecam16.CIECAM16_to_XYZ` definition
domain and range scale support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
L_A = 318.31
... |
Test :func:`colour.appearance.ciecam16.CIECAM16_to_XYZ` definition
domain and range scale support.
| test_domain_range_scale_CIECAM16_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_ciecam16.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_ciecam16.py | BSD-3-Clause |
def test_raise_exception_CIECAM16_to_XYZ(self) -> None:
"""
Test :func:`colour.appearance.ciecam16.CIECAM16_to_XYZ` definition
raised exception.
"""
pytest.raises(
ValueError,
CIECAM16_to_XYZ,
CAM_Specification_CIECAM16(41.731207905126638, Non... |
Test :func:`colour.appearance.ciecam16.CIECAM16_to_XYZ` definition
raised exception.
| test_raise_exception_CIECAM16_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_ciecam16.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_ciecam16.py | BSD-3-Clause |
def test_nan_CIECAM16_to_XYZ(self) -> None:
"""
Test :func:`colour.appearance.ciecam16.CIECAM16_to_XYZ` definition nan
support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
surround = InductionFactors... |
Test :func:`colour.appearance.ciecam16.CIECAM16_to_XYZ` definition nan
support.
| test_nan_CIECAM16_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_ciecam16.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_ciecam16.py | BSD-3-Clause |
def test_n_dimensional_XYZ_to_Hellwig2022(self) -> None:
"""
Test :func:`colour.appearance.hellwig2022.XYZ_to_Hellwig2022` definition
n-dimensional support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
L_A = 318.31
Y... |
Test :func:`colour.appearance.hellwig2022.XYZ_to_Hellwig2022` definition
n-dimensional support.
| test_n_dimensional_XYZ_to_Hellwig2022 | python | colour-science/colour | colour/appearance/tests/test_hellwig2022.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hellwig2022.py | BSD-3-Clause |
def test_domain_range_scale_XYZ_to_Hellwig2022(self) -> None:
"""
Test :func:`colour.appearance.hellwig2022.XYZ_to_Hellwig2022`
definition domain and range scale support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
L_A = 31... |
Test :func:`colour.appearance.hellwig2022.XYZ_to_Hellwig2022`
definition domain and range scale support.
| test_domain_range_scale_XYZ_to_Hellwig2022 | python | colour-science/colour | colour/appearance/tests/test_hellwig2022.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hellwig2022.py | BSD-3-Clause |
def test_nan_XYZ_to_Hellwig2022(self) -> None:
"""
Test :func:`colour.appearance.hellwig2022.XYZ_to_Hellwig2022
definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
surround = Inductio... |
Test :func:`colour.appearance.hellwig2022.XYZ_to_Hellwig2022
definition nan support.
| test_nan_XYZ_to_Hellwig2022 | python | colour-science/colour | colour/appearance/tests/test_hellwig2022.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hellwig2022.py | BSD-3-Clause |
def test_n_dimensional_Hellwig2022_to_XYZ(self) -> None:
"""
Test :func:`colour.appearance.hellwig2022.Hellwig2022_to_XYZ`
definition n-dimensional support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
L_A = 318.31
Y... |
Test :func:`colour.appearance.hellwig2022.Hellwig2022_to_XYZ`
definition n-dimensional support.
| test_n_dimensional_Hellwig2022_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_hellwig2022.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hellwig2022.py | BSD-3-Clause |
def test_domain_range_scale_Hellwig2022_to_XYZ(self) -> None:
"""
Test :func:`colour.appearance.hellwig2022.Hellwig2022_to_XYZ`
definition domain and range scale support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
L_A = 31... |
Test :func:`colour.appearance.hellwig2022.Hellwig2022_to_XYZ`
definition domain and range scale support.
| test_domain_range_scale_Hellwig2022_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_hellwig2022.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hellwig2022.py | BSD-3-Clause |
def test_raise_exception_Hellwig2022_to_XYZ(self) -> None:
"""
Test :func:`colour.appearance.hellwig2022.Hellwig2022_to_XYZ`
definition raised exception.
"""
pytest.raises(
ValueError,
Hellwig2022_to_XYZ,
CAM_Specification_Hellwig2022(
... |
Test :func:`colour.appearance.hellwig2022.Hellwig2022_to_XYZ`
definition raised exception.
| test_raise_exception_Hellwig2022_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_hellwig2022.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hellwig2022.py | BSD-3-Clause |
def test_nan_Hellwig2022_to_XYZ(self) -> None:
"""
Test :func:`colour.appearance.hellwig2022.Hellwig2022_to_XYZ`
definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
surround = Inducti... |
Test :func:`colour.appearance.hellwig2022.Hellwig2022_to_XYZ`
definition nan support.
| test_nan_Hellwig2022_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_hellwig2022.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hellwig2022.py | BSD-3-Clause |
def test_HelmholtzKohlrausch_effect_object_Nayatani1997(self) -> None:
"""
Test :func:`colour.appearance.hke.\
HelmholtzKohlrausch_effect_object_Nayatani1997` definition.
"""
np.testing.assert_allclose(
HelmholtzKohlrausch_effect_object_Nayatani1997(
np.array... |
Test :func:`colour.appearance.hke.HelmholtzKohlrausch_effect_object_Nayatani1997` definition.
| test_HelmholtzKohlrausch_effect_object_Nayatani1997 | python | colour-science/colour | colour/appearance/tests/test_hke.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hke.py | BSD-3-Clause |
def test_n_dimensional_HelmholtzKohlrausch_effect_object_Nayatani1997(
self,
) -> None:
"""
Test :func:`colour.appearance.hke.\
HelmholtzKohlrausch_effect_object_Nayatani1997` definition n_dimensional
arrays support.
"""
uv_d65 = np.array([0.19783001, 0.46831999])
... |
Test :func:`colour.appearance.hke.HelmholtzKohlrausch_effect_object_Nayatani1997` definition n_dimensional
arrays support.
| test_n_dimensional_HelmholtzKohlrausch_effect_object_Nayatani1997 | python | colour-science/colour | colour/appearance/tests/test_hke.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hke.py | BSD-3-Clause |
def test_nan_HelmholtzKohlrausch_effect_object_Nayatani1997(self) -> None:
"""
Test :func:`colour.appearance.hke.\
HelmholtzKohlrausch_effect_object_Nayatani1997` definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(case... |
Test :func:`colour.appearance.hke.HelmholtzKohlrausch_effect_object_Nayatani1997` definition nan support.
| test_nan_HelmholtzKohlrausch_effect_object_Nayatani1997 | python | colour-science/colour | colour/appearance/tests/test_hke.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hke.py | BSD-3-Clause |
def test_HelmholtzKohlrausch_effect_luminous_Nayatani1997(self) -> None:
"""
Test :func:`colour.appearance.hke.\
HelmholtzKohlrausch_effect_luminous_Nayatani1997` definition.
"""
np.testing.assert_allclose(
HelmholtzKohlrausch_effect_luminous_Nayatani1997(
np... |
Test :func:`colour.appearance.hke.HelmholtzKohlrausch_effect_luminous_Nayatani1997` definition.
| test_HelmholtzKohlrausch_effect_luminous_Nayatani1997 | python | colour-science/colour | colour/appearance/tests/test_hke.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hke.py | BSD-3-Clause |
def test_n_dimensional_HelmholtzKohlrausch_effect_luminous_Nayatani1997(
self,
) -> None:
"""
Test :func:`colour.appearance.hke.\
HelmholtzKohlrausch_effect_luminous_Nayatani1997` definition n_dimensional
arrays support.
"""
uv_d65 = np.array([0.19783001, 0.46831999]... |
Test :func:`colour.appearance.hke.HelmholtzKohlrausch_effect_luminous_Nayatani1997` definition n_dimensional
arrays support.
| test_n_dimensional_HelmholtzKohlrausch_effect_luminous_Nayatani1997 | python | colour-science/colour | colour/appearance/tests/test_hke.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hke.py | BSD-3-Clause |
def test_nan_HelmholtzKohlrausch_effect_luminous_Nayatani1997(self) -> None:
"""
Test :func:`colour.appearance.hke.\
HelmholtzKohlrausch_effect_luminous_Nayatani1997` definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(... |
Test :func:`colour.appearance.hke.HelmholtzKohlrausch_effect_luminous_Nayatani1997` definition nan support.
| test_nan_HelmholtzKohlrausch_effect_luminous_Nayatani1997 | python | colour-science/colour | colour/appearance/tests/test_hke.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hke.py | BSD-3-Clause |
def test_coefficient_K_Br_Nayatani1997(self) -> None:
"""
Test :func:`colour.appearance.hke.coefficient_K_Br_Nayatani1997`
definition.
"""
np.testing.assert_allclose(
coefficient_K_Br_Nayatani1997(10.00000000),
0.71344817765758839,
atol=TOLERA... |
Test :func:`colour.appearance.hke.coefficient_K_Br_Nayatani1997`
definition.
| test_coefficient_K_Br_Nayatani1997 | python | colour-science/colour | colour/appearance/tests/test_hke.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hke.py | BSD-3-Clause |
def test_n_dimensional_coefficient_K_Br_Nayatani1997(self) -> None:
"""
Test :func:`colour.appearance.hke.coefficient_K_Br_Nayatani1997`
definition n_dimensional arrays support.
"""
L_a = 63.66
K_Br = coefficient_K_Br_Nayatani1997(L_a)
L_a = np.tile(L_a, 6)
... |
Test :func:`colour.appearance.hke.coefficient_K_Br_Nayatani1997`
definition n_dimensional arrays support.
| test_n_dimensional_coefficient_K_Br_Nayatani1997 | python | colour-science/colour | colour/appearance/tests/test_hke.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hke.py | BSD-3-Clause |
def test_coefficient_q_Nayatani1997(self) -> None:
"""
Test :func:`colour.appearance.hke.coefficient_q_Nayatani1997`
definition.
"""
np.testing.assert_allclose(
coefficient_q_Nayatani1997(0.00000000),
-0.121200000000000,
atol=TOLERANCE_ABSOLUT... |
Test :func:`colour.appearance.hke.coefficient_q_Nayatani1997`
definition.
| test_coefficient_q_Nayatani1997 | python | colour-science/colour | colour/appearance/tests/test_hke.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hke.py | BSD-3-Clause |
def test_n_dimensional_coefficient_q_Nayatani1997(self) -> None:
"""
Test :func:`colour.appearance.hke.coefficient_q_Nayatani1997`
definition n_dimensional arrays support.
"""
L_a = 63.66
q = coefficient_q_Nayatani1997(L_a)
L_a = np.tile(L_a, 6)
q = np.t... |
Test :func:`colour.appearance.hke.coefficient_q_Nayatani1997`
definition n_dimensional arrays support.
| test_n_dimensional_coefficient_q_Nayatani1997 | python | colour-science/colour | colour/appearance/tests/test_hke.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hke.py | BSD-3-Clause |
def test_XYZ_to_Hunt(self) -> None:
"""
Test :func:`colour.appearance.hunt.XYZ_to_Hunt` definition.
Notes
-----
- The test values have been generated from data of the following file
by *Fairchild (2013)*:
http://rit-mcsl.org/fairchild//files/AppModEx.xl... |
Test :func:`colour.appearance.hunt.XYZ_to_Hunt` definition.
Notes
-----
- The test values have been generated from data of the following file
by *Fairchild (2013)*:
http://rit-mcsl.org/fairchild//files/AppModEx.xls
| test_XYZ_to_Hunt | python | colour-science/colour | colour/appearance/tests/test_hunt.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hunt.py | BSD-3-Clause |
def test_n_dimensional_XYZ_to_Hunt(self) -> None:
"""
Test :func:`colour.appearance.hunt.XYZ_to_Hunt` definition
n-dimensional support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
XYZ_b = XYZ_w * np.array([1, 0.2, 1])
... |
Test :func:`colour.appearance.hunt.XYZ_to_Hunt` definition
n-dimensional support.
| test_n_dimensional_XYZ_to_Hunt | python | colour-science/colour | colour/appearance/tests/test_hunt.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hunt.py | BSD-3-Clause |
def test_domain_range_scale_XYZ_to_Hunt(self) -> None:
"""
Test :func:`colour.appearance.hunt.XYZ_to_Hunt` definition domain
and range scale support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
XYZ_b = np.array([95.05, 100.... |
Test :func:`colour.appearance.hunt.XYZ_to_Hunt` definition domain
and range scale support.
| test_domain_range_scale_XYZ_to_Hunt | python | colour-science/colour | colour/appearance/tests/test_hunt.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hunt.py | BSD-3-Clause |
def test_raise_exception_XYZ_to_Hunt(self) -> None:
"""
Test :func:`colour.appearance.hunt.XYZ_to_Hunt` definition raised
exception.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
XYZ_b = np.array([95.05, 100.00, 108.88])
... |
Test :func:`colour.appearance.hunt.XYZ_to_Hunt` definition raised
exception.
| test_raise_exception_XYZ_to_Hunt | python | colour-science/colour | colour/appearance/tests/test_hunt.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hunt.py | BSD-3-Clause |
def test_XYZ_p_XYZ_to_Hunt(self) -> None:
"""
Test :func:`colour.appearance.hunt.XYZ_to_Hunt` definition *XYZ_p*
argument handling.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
XYZ_b = XYZ_p = np.array([95.05, 100.00, 108.88... |
Test :func:`colour.appearance.hunt.XYZ_to_Hunt` definition *XYZ_p*
argument handling.
| test_XYZ_p_XYZ_to_Hunt | python | colour-science/colour | colour/appearance/tests/test_hunt.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hunt.py | BSD-3-Clause |
def test_nan_XYZ_to_Hunt(self) -> None:
"""
Test :func:`colour.appearance.hunt.XYZ_to_Hunt` definition
nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
surround = InductionFactors_Hunt(cases[... |
Test :func:`colour.appearance.hunt.XYZ_to_Hunt` definition
nan support.
| test_nan_XYZ_to_Hunt | python | colour-science/colour | colour/appearance/tests/test_hunt.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_hunt.py | BSD-3-Clause |
def test_n_dimensional_XYZ_to_Kim2009(self) -> None:
"""
Test :func:`colour.appearance.kim2009.XYZ_to_Kim2009` definition
n-dimensional support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
L_a = 318.31
media = MEDIA... |
Test :func:`colour.appearance.kim2009.XYZ_to_Kim2009` definition
n-dimensional support.
| test_n_dimensional_XYZ_to_Kim2009 | python | colour-science/colour | colour/appearance/tests/test_kim2009.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_kim2009.py | BSD-3-Clause |
def test_domain_range_scale_XYZ_to_Kim2009(self) -> None:
"""
Test :func:`colour.appearance.kim2009.XYZ_to_Kim2009` definition
domain and range scale support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
L_a = 318.31
... |
Test :func:`colour.appearance.kim2009.XYZ_to_Kim2009` definition
domain and range scale support.
| test_domain_range_scale_XYZ_to_Kim2009 | python | colour-science/colour | colour/appearance/tests/test_kim2009.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_kim2009.py | BSD-3-Clause |
def test_nan_XYZ_to_Kim2009(self) -> None:
"""
Test :func:`colour.appearance.kim2009.XYZ_to_Kim2009` definition
nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
media = MediaParameters_Kim200... |
Test :func:`colour.appearance.kim2009.XYZ_to_Kim2009` definition
nan support.
| test_nan_XYZ_to_Kim2009 | python | colour-science/colour | colour/appearance/tests/test_kim2009.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_kim2009.py | BSD-3-Clause |
def test_n_dimensional_Kim2009_to_XYZ(self) -> None:
"""
Test :func:`colour.appearance.kim2009.Kim2009_to_XYZ` definition
n-dimensional support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
L_a = 318.31
media = MEDIA... |
Test :func:`colour.appearance.kim2009.Kim2009_to_XYZ` definition
n-dimensional support.
| test_n_dimensional_Kim2009_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_kim2009.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_kim2009.py | BSD-3-Clause |
def test_domain_range_scale_Kim2009_to_XYZ(self) -> None:
"""
Test :func:`colour.appearance.kim2009.Kim2009_to_XYZ` definition
domain and range scale support.
"""
XYZ_i = np.array([19.01, 20.00, 21.78])
XYZ_w = np.array([95.05, 100.00, 108.88])
L_a = 318.31
... |
Test :func:`colour.appearance.kim2009.Kim2009_to_XYZ` definition
domain and range scale support.
| test_domain_range_scale_Kim2009_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_kim2009.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_kim2009.py | BSD-3-Clause |
def test_raise_exception_Kim2009_to_XYZ(self) -> None:
"""
Test :func:`colour.appearance.kim2009.Kim2009_to_XYZ` definition
raised exception.
"""
pytest.raises(
ValueError,
Kim2009_to_XYZ,
CAM_Specification_Kim2009(
41.73109113... |
Test :func:`colour.appearance.kim2009.Kim2009_to_XYZ` definition
raised exception.
| test_raise_exception_Kim2009_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_kim2009.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_kim2009.py | BSD-3-Clause |
def test_nan_Kim2009_to_XYZ(self) -> None:
"""
Test :func:`colour.appearance.kim2009.Kim2009_to_XYZ` definition nan
support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
media = MediaParameters_Kim200... |
Test :func:`colour.appearance.kim2009.Kim2009_to_XYZ` definition nan
support.
| test_nan_Kim2009_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_kim2009.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_kim2009.py | BSD-3-Clause |
def test_XYZ_to_Nayatani95(self) -> None:
"""
Test :func:`colour.appearance.nayatani95.XYZ_to_Nayatani95`
definition.
Notes
-----
- The test values have been generated from data of the following file
by *Fairchild (2013)*:
http://rit-mcsl.org/fa... |
Test :func:`colour.appearance.nayatani95.XYZ_to_Nayatani95`
definition.
Notes
-----
- The test values have been generated from data of the following file
by *Fairchild (2013)*:
http://rit-mcsl.org/fairchild//files/AppModEx.xls
| test_XYZ_to_Nayatani95 | python | colour-science/colour | colour/appearance/tests/test_nayatani95.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_nayatani95.py | BSD-3-Clause |
def test_n_dimensional_XYZ_to_Nayatani95(self) -> None:
"""
Test :func:`colour.appearance.nayatani95.XYZ_to_Nayatani95` definition
n-dimensional support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_n = np.array([95.05, 100.00, 108.88])
Y_o = 20
E_o = 50... |
Test :func:`colour.appearance.nayatani95.XYZ_to_Nayatani95` definition
n-dimensional support.
| test_n_dimensional_XYZ_to_Nayatani95 | python | colour-science/colour | colour/appearance/tests/test_nayatani95.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_nayatani95.py | BSD-3-Clause |
def test_domain_range_scale_XYZ_to_Nayatani95(self) -> None:
"""
Test :func:`colour.appearance.nayatani95.XYZ_to_Nayatani95` definition
domain and range scale support.
"""
XYZ = np.array([19.01, 20.00, 21.78])
XYZ_n = np.array([95.05, 100.00, 108.88])
Y_o = 20.0
... |
Test :func:`colour.appearance.nayatani95.XYZ_to_Nayatani95` definition
domain and range scale support.
| test_domain_range_scale_XYZ_to_Nayatani95 | python | colour-science/colour | colour/appearance/tests/test_nayatani95.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_nayatani95.py | BSD-3-Clause |
def test_nan_XYZ_to_Nayatani95(self) -> None:
"""
Test :func:`colour.appearance.nayatani95.XYZ_to_Nayatani95` definition
nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
XYZ_to_Nayatani95(cas... |
Test :func:`colour.appearance.nayatani95.XYZ_to_Nayatani95` definition
nan support.
| test_nan_XYZ_to_Nayatani95 | python | colour-science/colour | colour/appearance/tests/test_nayatani95.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_nayatani95.py | BSD-3-Clause |
def test_XYZ_to_ZCAM(self) -> None:
"""
Tests :func:`colour.appearance.zcam.XYZ_to_ZCAM` definition.
"""
XYZ = np.array([185, 206, 163])
XYZ_w = np.array([256, 264, 202])
L_a = 264
Y_b = 100
surround = VIEWING_CONDITIONS_ZCAM["Average"]
np.testing... |
Tests :func:`colour.appearance.zcam.XYZ_to_ZCAM` definition.
| test_XYZ_to_ZCAM | python | colour-science/colour | colour/appearance/tests/test_zcam.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_zcam.py | BSD-3-Clause |
def test_n_dimensional_XYZ_to_ZCAM(self) -> None:
"""
Tests :func:`colour.appearance.zcam.XYZ_to_ZCAM` definition
n-dimensional support.
"""
XYZ = np.array([185, 206, 163])
XYZ_w = np.array([256, 264, 202])
L_a = 264
Y_b = 100
surround = VIEWING_C... |
Tests :func:`colour.appearance.zcam.XYZ_to_ZCAM` definition
n-dimensional support.
| test_n_dimensional_XYZ_to_ZCAM | python | colour-science/colour | colour/appearance/tests/test_zcam.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_zcam.py | BSD-3-Clause |
def test_domain_range_scale_XYZ_to_ZCAM(self) -> None:
"""
Tests :func:`colour.appearance.zcam.XYZ_to_ZCAM` definition
domain and range scale support.
"""
XYZ = np.array([185, 206, 163])
XYZ_w = np.array([256, 264, 202])
L_a = 264
Y_b = 100
surrou... |
Tests :func:`colour.appearance.zcam.XYZ_to_ZCAM` definition
domain and range scale support.
| test_domain_range_scale_XYZ_to_ZCAM | python | colour-science/colour | colour/appearance/tests/test_zcam.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_zcam.py | BSD-3-Clause |
def test_nan_XYZ_to_ZCAM(self) -> None:
"""
Tests :func:`colour.appearance.zcam.XYZ_to_ZCAM` definition
nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = set(permutations(cases * 3, r=3))
for case in cases:
XYZ = np.array(case... |
Tests :func:`colour.appearance.zcam.XYZ_to_ZCAM` definition
nan support.
| test_nan_XYZ_to_ZCAM | python | colour-science/colour | colour/appearance/tests/test_zcam.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_zcam.py | BSD-3-Clause |
def test_ZCAM_to_XYZ(self) -> None:
"""
Tests :func:`colour.appearance.zcam.ZCAM_to_XYZ` definition.
"""
specification = CAM_Specification_ZCAM(
92.2520,
3.0216,
196.3524,
19.1314,
321.3464,
10.5252,
237... |
Tests :func:`colour.appearance.zcam.ZCAM_to_XYZ` definition.
| test_ZCAM_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_zcam.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_zcam.py | BSD-3-Clause |
def test_n_dimensional_ZCAM_to_XYZ(self) -> None:
"""
Tests :func:`colour.appearance.zcam.ZCAM_to_XYZ` definition
n-dimensional support.
"""
XYZ = np.array([185, 206, 163])
XYZ_w = np.array([256, 264, 202])
L_a = 264
Y_b = 100
surround = VIEWING_C... |
Tests :func:`colour.appearance.zcam.ZCAM_to_XYZ` definition
n-dimensional support.
| test_n_dimensional_ZCAM_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_zcam.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_zcam.py | BSD-3-Clause |
def test_domain_range_scale_ZCAM_to_XYZ(self) -> None:
"""
Tests :func:`colour.appearance.zcam.ZCAM_to_XYZ` definition
domain and range scale support.
"""
XYZ_i = np.array([185, 206, 163])
XYZ_w = np.array([256, 264, 202])
L_a = 264
Y_b = 100
surr... |
Tests :func:`colour.appearance.zcam.ZCAM_to_XYZ` definition
domain and range scale support.
| test_domain_range_scale_ZCAM_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_zcam.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_zcam.py | BSD-3-Clause |
def test_raise_exception_ZCAM_to_XYZ(self) -> None:
"""
Tests :func:`colour.appearance.zcam.ZCAM_to_XYZ` definition
raised exception.
"""
pytest.raises(
ValueError,
ZCAM_to_XYZ,
CAM_Specification_ZCAM(
41.731091132513917,
... |
Tests :func:`colour.appearance.zcam.ZCAM_to_XYZ` definition
raised exception.
| test_raise_exception_ZCAM_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_zcam.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_zcam.py | BSD-3-Clause |
def test_nan_ZCAM_to_XYZ(self) -> None:
"""
Tests :func:`colour.appearance.zcam.ZCAM_to_XYZ` definition nan
support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = set(permutations(cases * 3, r=3))
for case in cases:
J = case[0]
... |
Tests :func:`colour.appearance.zcam.ZCAM_to_XYZ` definition nan
support.
| test_nan_ZCAM_to_XYZ | python | colour-science/colour | colour/appearance/tests/test_zcam.py | https://github.com/colour-science/colour/blob/master/colour/appearance/tests/test_zcam.py | BSD-3-Clause |
def reaction_rate_MichaelisMenten_Michaelis1913(
S: ArrayLike,
V_max: ArrayLike,
K_m: ArrayLike,
) -> NDArrayFloat:
"""
Compute the rate of enzymatic reactions by relating reaction rate
:math:`v` to the concentration of a substrate :math:`S`.
Parameters
----------
S
Concentr... |
Compute the rate of enzymatic reactions by relating reaction rate
:math:`v` to the concentration of a substrate :math:`S`.
Parameters
----------
S
Concentration of a substrate :math:`S`.
V_max
Maximum rate :math:`V_{max}` achieved by the system at saturating
substrate c... | reaction_rate_MichaelisMenten_Michaelis1913 | python | colour-science/colour | colour/biochemistry/michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/michaelis_menten.py | BSD-3-Clause |
def reaction_rate_MichaelisMenten_Abebe2017(
S: ArrayLike,
V_max: ArrayLike,
K_m: ArrayLike,
b_m: ArrayLike,
) -> NDArrayFloat:
"""
Compute the rate of enzymatic reactions by relating reaction rate
:math:`v` to the concentration of a substrate :math:`S` according to the
modified *Michael... |
Compute the rate of enzymatic reactions by relating reaction rate
:math:`v` to the concentration of a substrate :math:`S` according to the
modified *Michaelis-Menten* kinetics equation as specified by
*Abebe, Pouli, Larabi and Reinhard (2017)*.
Parameters
----------
S
Concentration... | reaction_rate_MichaelisMenten_Abebe2017 | python | colour-science/colour | colour/biochemistry/michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/michaelis_menten.py | BSD-3-Clause |
def reaction_rate_MichaelisMenten(
S: ArrayLike,
V_max: ArrayLike,
K_m: ArrayLike,
method: Literal["Michaelis 1913", "Abebe 2017"] | str = "Michaelis 1913",
**kwargs: Any,
) -> NDArrayFloat:
"""
Compute the rate of enzymatic reactions by relating reaction rate
:math:`v` to the concentrat... |
Compute the rate of enzymatic reactions by relating reaction rate
:math:`v` to the concentration of a substrate :math:`S` according to the
specified method.
Parameters
----------
S
Concentration of a substrate :math:`S`.
V_max
Maximum rate :math:`V_{max}` achieved by the sy... | reaction_rate_MichaelisMenten | python | colour-science/colour | colour/biochemistry/michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/michaelis_menten.py | BSD-3-Clause |
def substrate_concentration_MichaelisMenten_Michaelis1913(
v: ArrayLike,
V_max: ArrayLike,
K_m: ArrayLike,
) -> NDArrayFloat:
"""
Compute the substrate concentration by relating the concentration of a
substrate :math:`S` to the reaction rate :math:`v`.
Parameters
----------
v
... |
Compute the substrate concentration by relating the concentration of a
substrate :math:`S` to the reaction rate :math:`v`.
Parameters
----------
v
Reaction rate :math:`v`.
V_max
Maximum rate :math:`V_{max}` achieved by the system at saturating
substrate concentration.
... | substrate_concentration_MichaelisMenten_Michaelis1913 | python | colour-science/colour | colour/biochemistry/michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/michaelis_menten.py | BSD-3-Clause |
def substrate_concentration_MichaelisMenten_Abebe2017(
v: ArrayLike,
V_max: ArrayLike,
K_m: ArrayLike,
b_m: ArrayLike,
) -> NDArrayFloat:
"""
Compute the substrate concentration by relating the concentration of a
substrate :math:`S` to the reaction rate :math:`v` according to the
modifie... |
Compute the substrate concentration by relating the concentration of a
substrate :math:`S` to the reaction rate :math:`v` according to the
modified *Michaelis-Menten* kinetics equation as specified by
*Abebe, Pouli, Larabi and Reinhard (2017)*.
Parameters
----------
v
Reaction rate... | substrate_concentration_MichaelisMenten_Abebe2017 | python | colour-science/colour | colour/biochemistry/michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/michaelis_menten.py | BSD-3-Clause |
def substrate_concentration_MichaelisMenten(
v: ArrayLike,
V_max: ArrayLike,
K_m: ArrayLike,
method: Literal["Michaelis 1913", "Abebe 2017"] | str = "Michaelis 1913",
**kwargs: Any,
) -> NDArrayFloat:
"""
Compute the substrate concentration by relating the concentration of a
substrate :m... |
Compute the substrate concentration by relating the concentration of a
substrate :math:`S` to the reaction rate :math:`v` according to the specified
method.
Parameters
----------
v
Reaction rate :math:`v`.
V_max
Maximum rate :math:`V_{max}` achieved by the system at saturat... | substrate_concentration_MichaelisMenten | python | colour-science/colour | colour/biochemistry/michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/michaelis_menten.py | BSD-3-Clause |
def test_n_dimensional_reaction_rate_MichaelisMenten_Michaelis1913(self) -> None:
"""
Test :func:`colour.biochemistry.michaelis_menten.\
reaction_rate_MichaelisMenten_Michaelis1913` definition n-dimensional arrays
support.
"""
v = 0.5
V_max = 0.5
K_m = 0.25
... |
Test :func:`colour.biochemistry.michaelis_menten.reaction_rate_MichaelisMenten_Michaelis1913` definition n-dimensional arrays
support.
| test_n_dimensional_reaction_rate_MichaelisMenten_Michaelis1913 | python | colour-science/colour | colour/biochemistry/tests/test_michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/tests/test_michaelis_menten.py | BSD-3-Clause |
def test_nan_reaction_rate_MichaelisMenten_Michaelis1913(self) -> None:
"""
Test :func:`colour.biochemistry.michaelis_menten.\
reaction_rate_MichaelisMenten_Michaelis1913` definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(pro... |
Test :func:`colour.biochemistry.michaelis_menten.reaction_rate_MichaelisMenten_Michaelis1913` definition nan support.
| test_nan_reaction_rate_MichaelisMenten_Michaelis1913 | python | colour-science/colour | colour/biochemistry/tests/test_michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/tests/test_michaelis_menten.py | BSD-3-Clause |
def test_n_dimensional_substrate_concentration_MichaelisMenten_Michaelis1913(
self,
) -> None:
"""
Test :func:`colour.biochemistry.michaelis_menten.\
substrate_concentration_MichaelisMenten_Michaelis1913` definition n-dimensional
arrays support.
"""
S = 1 / 3
... |
Test :func:`colour.biochemistry.michaelis_menten.substrate_concentration_MichaelisMenten_Michaelis1913` definition n-dimensional
arrays support.
| test_n_dimensional_substrate_concentration_MichaelisMenten_Michaelis1913 | python | colour-science/colour | colour/biochemistry/tests/test_michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/tests/test_michaelis_menten.py | BSD-3-Clause |
def test_nan_substrate_concentration_MichaelisMenten_Michaelis1913(self) -> None:
"""
Test :func:`colour.biochemistry.michaelis_menten.\
substrate_concentration_MichaelisMenten_Michaelis1913` definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = n... |
Test :func:`colour.biochemistry.michaelis_menten.substrate_concentration_MichaelisMenten_Michaelis1913` definition nan support.
| test_nan_substrate_concentration_MichaelisMenten_Michaelis1913 | python | colour-science/colour | colour/biochemistry/tests/test_michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/tests/test_michaelis_menten.py | BSD-3-Clause |
def test_n_dimensional_reaction_rate_MichaelisMenten_Abebe2017(self) -> None:
"""
Test :func:`colour.biochemistry.michaelis_menten.\
reaction_rate_MichaelisMenten_Abebe2017` definition n-dimensional arrays
support.
"""
v = 0.5
V_max = 0.5
K_m = 0.25
b_m =... |
Test :func:`colour.biochemistry.michaelis_menten.reaction_rate_MichaelisMenten_Abebe2017` definition n-dimensional arrays
support.
| test_n_dimensional_reaction_rate_MichaelisMenten_Abebe2017 | python | colour-science/colour | colour/biochemistry/tests/test_michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/tests/test_michaelis_menten.py | BSD-3-Clause |
def test_nan_reaction_rate_MichaelisMenten_Abebe2017(self) -> None:
"""
Test :func:`colour.biochemistry.michaelis_menten.\
reaction_rate_MichaelisMenten_Abebe2017` definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cas... |
Test :func:`colour.biochemistry.michaelis_menten.reaction_rate_MichaelisMenten_Abebe2017` definition nan support.
| test_nan_reaction_rate_MichaelisMenten_Abebe2017 | python | colour-science/colour | colour/biochemistry/tests/test_michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/tests/test_michaelis_menten.py | BSD-3-Clause |
def test_n_dimensional_substrate_concentration_MichaelisMenten_Abebe2017(
self,
) -> None:
"""
Test :func:`colour.biochemistry.michaelis_menten.\
substrate_concentration_MichaelisMenten_Abebe2017` definition n-dimensional
arrays support.
"""
S = 0.400000000000000
... |
Test :func:`colour.biochemistry.michaelis_menten.substrate_concentration_MichaelisMenten_Abebe2017` definition n-dimensional
arrays support.
| test_n_dimensional_substrate_concentration_MichaelisMenten_Abebe2017 | python | colour-science/colour | colour/biochemistry/tests/test_michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/tests/test_michaelis_menten.py | BSD-3-Clause |
def test_nan_substrate_concentration_MichaelisMenten_Abebe2017(self) -> None:
"""
Test :func:`colour.biochemistry.michaelis_menten.\
substrate_concentration_MichaelisMenten_Abebe2017` definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(... |
Test :func:`colour.biochemistry.michaelis_menten.substrate_concentration_MichaelisMenten_Abebe2017` definition nan support.
| test_nan_substrate_concentration_MichaelisMenten_Abebe2017 | python | colour-science/colour | colour/biochemistry/tests/test_michaelis_menten.py | https://github.com/colour-science/colour/blob/master/colour/biochemistry/tests/test_michaelis_menten.py | BSD-3-Clause |
def matrix_RGB_to_WSYBRG(
cmfs: LMS_ConeFundamentals, primaries: RGB_DisplayPrimaries
) -> NDArrayFloat:
"""
Compute the matrix for transforming from *RGB* colourspace to
opponent-colour space using *Machado et al. (2009)* method.
Parameters
----------
cmfs
*LMS* cone fundamentals c... |
Compute the matrix for transforming from *RGB* colourspace to
opponent-colour space using *Machado et al. (2009)* method.
Parameters
----------
cmfs
*LMS* cone fundamentals colour matching functions.
primaries
*RGB* display primaries tri-spectral distributions.
Returns
... | matrix_RGB_to_WSYBRG | python | colour-science/colour | colour/blindness/machado2009.py | https://github.com/colour-science/colour/blob/master/colour/blindness/machado2009.py | BSD-3-Clause |
def msds_cmfs_anomalous_trichromacy_Machado2009(
cmfs: LMS_ConeFundamentals, d_LMS: ArrayLike
) -> LMS_ConeFundamentals:
"""
Shift specified *LMS* cone fundamentals colour matching functions with specified
:math:`\\Delta_{LMS}` shift amount in nanometers to simulate anomalous
trichromacy using *Mach... |
Shift specified *LMS* cone fundamentals colour matching functions with specified
:math:`\Delta_{LMS}` shift amount in nanometers to simulate anomalous
trichromacy using *Machado et al. (2009)* method.
Parameters
----------
cmfs
*LMS* cone fundamentals colour matching functions.
d_L... | msds_cmfs_anomalous_trichromacy_Machado2009 | python | colour-science/colour | colour/blindness/machado2009.py | https://github.com/colour-science/colour/blob/master/colour/blindness/machado2009.py | BSD-3-Clause |
def matrix_anomalous_trichromacy_Machado2009(
cmfs: LMS_ConeFundamentals,
primaries: RGB_DisplayPrimaries,
d_LMS: ArrayLike,
) -> NDArrayFloat:
"""
Compute the *Machado et al. (2009)* colour vision deficiency matrix for
specified *LMS* cone fundamentals colour matching functions and display
... |
Compute the *Machado et al. (2009)* colour vision deficiency matrix for
specified *LMS* cone fundamentals colour matching functions and display
primaries tri-spectral distributions with specified :math:`\Delta_{LMS}` shift
amount in nanometers to simulate anomalous trichromacy.
Parameters
----... | matrix_anomalous_trichromacy_Machado2009 | python | colour-science/colour | colour/blindness/machado2009.py | https://github.com/colour-science/colour/blob/master/colour/blindness/machado2009.py | BSD-3-Clause |
def matrix_cvd_Machado2009(
deficiency: Literal["Deuteranomaly", "Protanomaly", "Tritanomaly"] | str,
severity: float,
) -> NDArrayFloat:
"""
Compute *Machado et al. (2009)* colour vision deficiency matrix for specified
deficiency and severity using the pre-computed matrices dataset.
Parameters... |
Compute *Machado et al. (2009)* colour vision deficiency matrix for specified
deficiency and severity using the pre-computed matrices dataset.
Parameters
----------
deficiency
Colour blindness / vision deficiency types :
- *Protanomaly* : defective long-wavelength cones (L-cones). ... | matrix_cvd_Machado2009 | python | colour-science/colour | colour/blindness/machado2009.py | https://github.com/colour-science/colour/blob/master/colour/blindness/machado2009.py | BSD-3-Clause |
def sd_to_aces_relative_exposure_values(
sd: SpectralDistribution,
illuminant: SpectralDistribution | None = None,
chromatic_adaptation_transform: (
LiteralChromaticAdaptationTransform | str | None
) = "CAT02",
**kwargs: Any,
) -> NDArrayFloat:
"""
Convert spectral distribution to *A... |
Convert spectral distribution to *ACES2065-1* colourspace relative exposure
values.
Parameters
----------
sd
Spectral distribution.
illuminant
*Illuminant* spectral distribution, default to
*CIE Standard Illuminant D65*.
chromatic_adaptation_transform
*Chrom... | sd_to_aces_relative_exposure_values | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def read_training_data_rawtoaces_v1() -> MultiSpectralDistributions:
"""
Read the *RAW to ACES* v1 190 patches.
Returns
-------
:class:`colour.MultiSpectralDistributions`
*RAW to ACES* v1 190 patches.
References
----------
:cite:`Dyer2017`
Examples
--------
>>> len... |
Read the *RAW to ACES* v1 190 patches.
Returns
-------
:class:`colour.MultiSpectralDistributions`
*RAW to ACES* v1 190 patches.
References
----------
:cite:`Dyer2017`
Examples
--------
>>> len(read_training_data_rawtoaces_v1().labels)
190
| read_training_data_rawtoaces_v1 | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def generate_illuminants_rawtoaces_v1() -> CanonicalMapping:
"""
Generate a series of illuminants according to *RAW to ACES* v1:
- *CIE Illuminant D Series* in range [4000, 25000] kelvin degrees.
- *Blackbodies* in range [1000, 3500] kelvin degrees.
- A.M.P.A.S. variant of *ISO 7589 Studio Tu... |
Generate a series of illuminants according to *RAW to ACES* v1:
- *CIE Illuminant D Series* in range [4000, 25000] kelvin degrees.
- *Blackbodies* in range [1000, 3500] kelvin degrees.
- A.M.P.A.S. variant of *ISO 7589 Studio Tungsten*.
Returns
-------
:class:`colour.utilities.Canon... | generate_illuminants_rawtoaces_v1 | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def white_balance_multipliers(
sensitivities: RGB_CameraSensitivities, illuminant: SpectralDistribution
) -> NDArrayFloat:
"""
Compute *RGB* white balance multipliers for camera *RGB* spectral
sensitivities and illuminant.
Parameters
----------
sensitivities
Camera *RGB* spectral s... |
Compute *RGB* white balance multipliers for camera *RGB* spectral
sensitivities and illuminant.
Parameters
----------
sensitivities
Camera *RGB* spectral sensitivities.
illuminant
Illuminant spectral distribution.
Returns
-------
:class:`numpy.ndarray`
*RG... | white_balance_multipliers | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def best_illuminant(
RGB_w: ArrayLike,
sensitivities: RGB_CameraSensitivities,
illuminants: Mapping,
) -> SpectralDistribution:
"""
Select the best illuminant for *RGB* white balance multipliers and
sensitivities in series of illuminants.
Parameters
----------
RGB_w
*RGB* wh... |
Select the best illuminant for *RGB* white balance multipliers and
sensitivities in series of illuminants.
Parameters
----------
RGB_w
*RGB* white balance multipliers.
sensitivities
Camera *RGB* spectral sensitivities.
illuminants
Illuminant spectral distributions ... | best_illuminant | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def normalise_illuminant(
illuminant: SpectralDistribution, sensitivities: RGB_CameraSensitivities
) -> SpectralDistribution:
"""
Normalise illuminant with camera *RGB* spectral sensitivities.
The multiplicative inverse scaling factor :math:`k` is computed by
multiplying the illuminant by the sensi... |
Normalise illuminant with camera *RGB* spectral sensitivities.
The multiplicative inverse scaling factor :math:`k` is computed by
multiplying the illuminant by the sensitivities channel with the maximum
value.
Parameters
----------
illuminant
Illuminant spectral distribution.
... | normalise_illuminant | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def training_data_sds_to_RGB(
training_data: MultiSpectralDistributions,
sensitivities: RGB_CameraSensitivities,
illuminant: SpectralDistribution,
) -> Tuple[NDArrayFloat, NDArrayFloat]:
"""
Convert training data to *RGB* tristimulus values using illuminant and
camera *RGB* spectral sensitivitie... |
Convert training data to *RGB* tristimulus values using illuminant and
camera *RGB* spectral sensitivities.
Parameters
----------
training_data
Training data multi-spectral distributions.
sensitivities
Camera *RGB* spectral sensitivities.
illuminant
Illuminant spec... | training_data_sds_to_RGB | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def training_data_sds_to_XYZ(
training_data: MultiSpectralDistributions,
cmfs: MultiSpectralDistributions,
illuminant: SpectralDistribution,
chromatic_adaptation_transform: (
LiteralChromaticAdaptationTransform | str | None
) = "CAT02",
) -> NDArrayFloat:
"""
Convert training data to... |
Convert training data to *CIE XYZ* tristimulus values using illuminant
and standard observer colour matching functions.
Parameters
----------
training_data
Training data multi-spectral distributions.
cmfs
Standard observer colour matching functions.
illuminant
Illum... | training_data_sds_to_XYZ | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def whitepoint_preserving_matrix(
M: ArrayLike, RGB_w: ArrayLike = (1, 1, 1)
) -> NDArrayFloat:
"""
Normalise matrix :math:`M` to preserve white point :math:`RGB_w`.
Parameters
----------
M
Matrix :math:`M` to normalise.
RGB_w
White point :math:`RGB_w` to normalise the matri... |
Normalise matrix :math:`M` to preserve white point :math:`RGB_w`.
Parameters
----------
M
Matrix :math:`M` to normalise.
RGB_w
White point :math:`RGB_w` to normalise the matrix :math:`M` with.
Returns
-------
:class:`numpy.ndarray`
Normalised matrix :math:`M`.
... | whitepoint_preserving_matrix | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def optimisation_factory_rawtoaces_v1() -> (
Tuple[NDArrayFloat, Callable, Callable, Callable]
):
"""
Produce the objective function and *CIE XYZ* colourspace to optimisation
colourspace/colour model function according to *RAW to ACES* v1.
The objective function returns the Euclidean distance betwe... |
Produce the objective function and *CIE XYZ* colourspace to optimisation
colourspace/colour model function according to *RAW to ACES* v1.
The objective function returns the Euclidean distance between the training
data *RGB* tristimulus values and the training data *CIE XYZ* tristimulus
values** in... | optimisation_factory_rawtoaces_v1 | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def objective_function(
M: NDArrayFloat, RGB: NDArrayFloat, Lab: NDArrayFloat
) -> DTypeFloat:
"""Objective function according to *RAW to ACES* v1."""
M = finaliser_function(M)
XYZ_t = vecmul(RGB_COLOURSPACE_ACES2065_1.matrix_RGB_to_XYZ, vecmul(M, RGB))
Lab_t = XYZ_to_optim... | Objective function according to *RAW to ACES* v1. | objective_function | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def optimisation_factory_Jzazbz() -> Tuple[NDArrayFloat, Callable, Callable, Callable]:
"""
Produce the objective function and *CIE XYZ* colourspace to optimisation
colourspace/colour model function based on the :math:`J_za_zb_z`
colourspace.
The objective function returns the Euclidean distance be... |
Produce the objective function and *CIE XYZ* colourspace to optimisation
colourspace/colour model function based on the :math:`J_za_zb_z`
colourspace.
The objective function returns the Euclidean distance between the training
data *RGB* tristimulus values and the training data *CIE XYZ* tristimulu... | optimisation_factory_Jzazbz | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def optimisation_factory_Oklab_15() -> (
Tuple[NDArrayFloat, Callable, Callable, Callable]
):
"""
Produce the objective function and *CIE XYZ* colourspace to optimisation
colourspace/colour model function based on the *Oklab* colourspace.
The objective function returns the Euclidean distance betwee... |
Produce the objective function and *CIE XYZ* colourspace to optimisation
colourspace/colour model function based on the *Oklab* colourspace.
The objective function returns the Euclidean distance between the training
data *RGB* tristimulus values and the training data *CIE XYZ* tristimulus
values**... | optimisation_factory_Oklab_15 | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def matrix_idt(
sensitivities: RGB_CameraSensitivities,
illuminant: SpectralDistribution,
training_data: MultiSpectralDistributions | None = None,
cmfs: MultiSpectralDistributions | None = None,
optimisation_factory: Callable = optimisation_factory_rawtoaces_v1,
optimisation_kwargs: dict | None ... |
Compute an *Input Device Transform* (IDT) matrix for camera *RGB* spectral
sensitivities, illuminant, training data, standard observer colour matching
functions and optimisation settings according to *RAW to ACES* v1 and
*P-2013-001* procedures.
Parameters
----------
sensitivities
... | matrix_idt | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def camera_RGB_to_ACES2065_1(
RGB: ArrayLike,
B: ArrayLike,
b: ArrayLike,
k: ArrayLike = (1, 1, 1),
clip: bool = False,
) -> NDArrayFloat:
"""
Convert camera *RGB* colourspace array to *ACES2065-1* colourspace using
the *Input Device Transform* (IDT) matrix :math:`B`, the white balance
... |
Convert camera *RGB* colourspace array to *ACES2065-1* colourspace using
the *Input Device Transform* (IDT) matrix :math:`B`, the white balance
multipliers :math:`b` and the exposure factor :math:`k` according to
*P-2013-001* procedure.
Parameters
----------
RGB
Camera *RGB* colour... | camera_RGB_to_ACES2065_1 | python | colour-science/colour | colour/characterisation/aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/aces_it.py | BSD-3-Clause |
def matrix_augmented_Cheung2004(
RGB: ArrayLike,
terms: Literal[3, 4, 5, 7, 8, 10, 11, 14, 16, 17, 19, 20, 22, 35] | int = 3,
) -> NDArrayFloat: # pyright: ignore
"""
Perform polynomial expansion of *RGB* colourspace array using
*Cheung et al. (2004)* method.
Parameters
----------
RGB
... |
Perform polynomial expansion of *RGB* colourspace array using
*Cheung et al. (2004)* method.
Parameters
----------
RGB
*RGB* colourspace array to expand.
terms
Number of terms of the expanded polynomial.
Returns
-------
:class:`numpy.ndarray`
Expanded *RGB*... | matrix_augmented_Cheung2004 | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def polynomial_expansion_Finlayson2015(
RGB: ArrayLike,
degree: Literal[1, 2, 3, 4] | int = 1,
root_polynomial_expansion: bool = True,
) -> NDArrayFloat: # pyright: ignore
"""
Perform polynomial expansion of *RGB* colourspace array using
*Finlayson et al. (2015)* method.
Parameters
---... |
Perform polynomial expansion of *RGB* colourspace array using
*Finlayson et al. (2015)* method.
Parameters
----------
RGB
*RGB* colourspace array to expand.
degree
Expanded polynomial degree.
root_polynomial_expansion
Whether to use the root-polynomials set for the ... | polynomial_expansion_Finlayson2015 | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def polynomial_expansion_Vandermonde(a: ArrayLike, degree: int = 1) -> NDArrayFloat:
"""
Perform polynomial expansion of :math:`a` array using *Vandermonde*
method.
Parameters
----------
a
:math:`a` array to expand.
degree
Expanded polynomial degree.
Returns
-------... |
Perform polynomial expansion of :math:`a` array using *Vandermonde*
method.
Parameters
----------
a
:math:`a` array to expand.
degree
Expanded polynomial degree.
Returns
-------
:class:`numpy.ndarray`
Expanded :math:`a` array.
References
----------... | polynomial_expansion_Vandermonde | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def polynomial_expansion(
a: ArrayLike,
method: (
Literal["Cheung 2004", "Finlayson 2015", "Vandermonde"] | str
) = "Cheung 2004",
**kwargs: Any,
) -> NDArrayFloat:
"""
Perform polynomial expansion of :math:`a` array.
Parameters
----------
a
:math:`a` array to expand... |
Perform polynomial expansion of :math:`a` array.
Parameters
----------
a
:math:`a` array to expand.
method
Computation method.
Other Parameters
----------------
degree
{:func:`colour.characterisation.polynomial_expansion_Finlayson2015`,
:func:`colour.ch... | polynomial_expansion | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def matrix_colour_correction_Cheung2004(
M_T: ArrayLike,
M_R: ArrayLike,
terms: Literal[3, 4, 5, 7, 8, 10, 11, 14, 16, 17, 19, 20, 22, 35] | int = 3,
) -> NDArrayFloat:
"""
Compute a colour correction matrix from :math:`M_T` colour array to
:math:`M_R` colour array using *Cheung et al. (2004)* m... |
Compute a colour correction matrix from :math:`M_T` colour array to
:math:`M_R` colour array using *Cheung et al. (2004)* method.
Parameters
----------
M_T
Test array :math:`M_T` to fit onto array :math:`M_R`.
M_R
Reference array the array :math:`M_T` will be colour fitted agai... | matrix_colour_correction_Cheung2004 | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def matrix_colour_correction_Finlayson2015(
M_T: ArrayLike,
M_R: ArrayLike,
degree: Literal[1, 2, 3, 4] | int = 1,
root_polynomial_expansion: bool = True,
) -> NDArrayFloat:
"""
Compute a colour correction matrix from :math:`M_T` colour array to
:math:`M_R` colour array using *Finlayson et a... |
Compute a colour correction matrix from :math:`M_T` colour array to
:math:`M_R` colour array using *Finlayson et al. (2015)* method.
Parameters
----------
M_T
Test array :math:`M_T` to fit onto array :math:`M_R`.
M_R
Reference array the array :math:`M_T` will be colour fitted a... | matrix_colour_correction_Finlayson2015 | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def matrix_colour_correction_Vandermonde(
M_T: ArrayLike, M_R: ArrayLike, degree: int = 1
) -> NDArrayFloat:
"""
Compute a colour correction matrix from :math:`M_T` colour array to
:math:`M_R` colour array using *Vandermonde* method.
Parameters
----------
M_T
Test array :math:`M_T` ... |
Compute a colour correction matrix from :math:`M_T` colour array to
:math:`M_R` colour array using *Vandermonde* method.
Parameters
----------
M_T
Test array :math:`M_T` to fit onto array :math:`M_R`.
M_R
Reference array the array :math:`M_T` will be colour fitted against.
... | matrix_colour_correction_Vandermonde | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def matrix_colour_correction(
M_T: ArrayLike,
M_R: ArrayLike,
method: (
Literal["Cheung 2004", "Finlayson 2015", "Vandermonde"] | str
) = "Cheung 2004",
**kwargs: Any,
) -> NDArrayFloat:
"""
Compute a colour correction matrix from :math:`M_T` colour array to
:math:`M_R` colour ar... |
Compute a colour correction matrix from :math:`M_T` colour array to
:math:`M_R` colour array.
The resulting colour correction matrix is computed using multiple linear or
polynomial regression using specified method. The purpose of that object
is for example the matching of two *ColorChecker* colou... | matrix_colour_correction | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def apply_matrix_colour_correction_Cheung2004(
RGB: ArrayLike,
CCM: ArrayLike,
terms: Literal[3, 4, 5, 7, 8, 10, 11, 14, 16, 17, 19, 20, 22, 35] | int = 3,
) -> NDArrayFloat:
"""
Apply colour correction matrix :math:`CCM` computed using
*Cheung et al. (2004)* method to *RGB* colourspace array.
... |
Apply colour correction matrix :math:`CCM` computed using
*Cheung et al. (2004)* method to *RGB* colourspace array.
Parameters
----------
RGB
*RGB* colourspace array to apply the colour correction matrix
:math:`CCM` to.
CCM
Colour correction matrix :math:`CCM`.
term... | apply_matrix_colour_correction_Cheung2004 | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def apply_matrix_colour_correction_Finlayson2015(
RGB: ArrayLike,
CCM: ArrayLike,
degree: Literal[1, 2, 3, 4] | int = 1,
root_polynomial_expansion: bool = True,
) -> NDArrayFloat:
"""
Apply colour correction matrix :math:`CCM` computed using
*Finlayson et al. (2015)* method to *RGB* coloursp... |
Apply colour correction matrix :math:`CCM` computed using
*Finlayson et al. (2015)* method to *RGB* colourspace array.
Parameters
----------
RGB
*RGB* colourspace array to apply the colour correction matrix
:math:`CCM` to.
CCM
Colour correction matrix :math:`CCM`.
d... | apply_matrix_colour_correction_Finlayson2015 | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def apply_matrix_colour_correction_Vandermonde(
RGB: ArrayLike, CCM: ArrayLike, degree: int = 1
) -> NDArrayFloat:
"""
Apply colour correction matrix :math:`CCM` computed using
*Vandermonde* method to *RGB* colourspace array.
Parameters
----------
RGB
*RGB* colourspace array to appl... |
Apply colour correction matrix :math:`CCM` computed using
*Vandermonde* method to *RGB* colourspace array.
Parameters
----------
RGB
*RGB* colourspace array to apply the colour correction matrix
:math:`CCM` to.
CCM
Colour correction matrix :math:`CCM`.
degree
... | apply_matrix_colour_correction_Vandermonde | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def apply_matrix_colour_correction(
RGB: ArrayLike,
CCM: ArrayLike,
method: (
Literal["Cheung 2004", "Finlayson 2015", "Vandermonde"] | str
) = "Cheung 2004",
**kwargs: Any,
) -> NDArrayFloat:
"""
Apply colour correction matrix :math:`CCM` to *RGB* colourspace array.
Parameters
... |
Apply colour correction matrix :math:`CCM` to *RGB* colourspace array.
Parameters
----------
RGB
*RGB* colourspace array to apply the colour correction matrix
:math:`CCM` to.
CCM
Colour correction matrix :math:`CCM`.
method
Computation method.
Other Paramet... | apply_matrix_colour_correction | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def colour_correction_Cheung2004(
RGB: ArrayLike,
M_T: ArrayLike,
M_R: ArrayLike,
terms: Literal[3, 4, 5, 7, 8, 10, 11, 14, 16, 17, 19, 20, 22, 35] | int = 3,
) -> NDArrayFloat:
"""
Perform colour correction of *RGB* colourspace array using the colour
correction matrix from :math:`M_T` colou... |
Perform colour correction of *RGB* colourspace array using the colour
correction matrix from :math:`M_T` colour array to :math:`M_R` colour
array using *Cheung et al. (2004)* method.
Parameters
----------
RGB
*RGB* colourspace array to colour correct.
M_T
Test array :math:`... | colour_correction_Cheung2004 | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def colour_correction_Finlayson2015(
RGB: ArrayLike,
M_T: ArrayLike,
M_R: ArrayLike,
degree: Literal[1, 2, 3, 4] | int = 1,
root_polynomial_expansion: bool = True,
) -> NDArrayFloat:
"""
Perform colour correction of *RGB* colourspace array using the colour
correction matrix from :math:`M... |
Perform colour correction of *RGB* colourspace array using the colour
correction matrix from :math:`M_T` colour array to :math:`M_R` colour
array using *Finlayson et al. (2015)* method.
Parameters
----------
RGB
*RGB* colourspace array to colour correct.
M_T
Test array :mat... | colour_correction_Finlayson2015 | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def colour_correction_Vandermonde(
RGB: ArrayLike, M_T: ArrayLike, M_R: ArrayLike, degree: int = 1
) -> NDArrayFloat:
"""
Perform colour correction of *RGB* colourspace array using the colour
correction matrix from :math:`M_T` colour array to :math:`M_R` colour
array using *Vandermonde* method.
... |
Perform colour correction of *RGB* colourspace array using the colour
correction matrix from :math:`M_T` colour array to :math:`M_R` colour
array using *Vandermonde* method.
Parameters
----------
RGB
*RGB* colourspace array to colour correct.
M_T
Test array :math:`M_T` to f... | colour_correction_Vandermonde | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def colour_correction(
RGB: ArrayLike,
M_T: ArrayLike,
M_R: ArrayLike,
method: (
Literal["Cheung 2004", "Finlayson 2015", "Vandermonde"] | str
) = "Cheung 2004",
**kwargs: Any,
) -> NDArrayFloat:
"""
Perform colour correction of *RGB* colourspace array using the colour
correc... |
Perform colour correction of *RGB* colourspace array using the colour
correction matrix from :math:`M_T` colour array to :math:`M_R` colour
array.
Parameters
----------
RGB
*RGB* colourspace array to colour correct.
M_T
Test array :math:`M_T` to fit onto array :math:`M_R`.
... | colour_correction | python | colour-science/colour | colour/characterisation/correction.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/correction.py | BSD-3-Clause |
def test_domain_range_scale_spectral_to_aces_relative_exposure_values(
self,
) -> None:
"""
Test :func:`colour.characterisation.aces_it.
sd_to_aces_relative_exposure_values` definition domain and range scale
support.
"""
shape = MSDS_ACES_RIC... |
Test :func:`colour.characterisation.aces_it.
sd_to_aces_relative_exposure_values` definition domain and range scale
support.
| test_domain_range_scale_spectral_to_aces_relative_exposure_values | python | colour-science/colour | colour/characterisation/tests/test_aces_it.py | https://github.com/colour-science/colour/blob/master/colour/characterisation/tests/test_aces_it.py | BSD-3-Clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.