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_write_image_OpenImageIO(self) -> None: # pragma: no cover
"""Test :func:`colour.io.image.write_image_OpenImageIO` definition."""
from OpenImageIO import TypeDesc # pyright: ignore
path = os.path.join(self._temporary_directory, "8-bit.png")
RGB = full((1, 1, 3), 255, np.uint8... | Test :func:`colour.io.image.write_image_OpenImageIO` definition. | test_write_image_OpenImageIO | python | colour-science/colour | colour/io/tests/test_image.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_image.py | BSD-3-Clause |
def test_read_image_Imageio(self) -> None:
"""Test :func:`colour.io.image.read_image_Imageio` definition."""
image = read_image_Imageio(os.path.join(ROOT_RESOURCES, "CMS_Test_Pattern.exr"))
assert image.shape == (1267, 1274, 3)
assert image.dtype is np.dtype("float32")
image = ... | Test :func:`colour.io.image.read_image_Imageio` definition. | test_read_image_Imageio | python | colour-science/colour | colour/io/tests/test_image.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_image.py | BSD-3-Clause |
def test_write_image_Imageio(self) -> None:
"""Test :func:`colour.io.image.write_image_Imageio` definition."""
source_path = os.path.join(ROOT_RESOURCES, "Overflowing_Gradient.png")
source_image = read_image_Imageio(source_path, bit_depth="uint8")
target_path = os.path.join(
... | Test :func:`colour.io.image.write_image_Imageio` definition. | test_write_image_Imageio | python | colour-science/colour | colour/io/tests/test_image.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_image.py | BSD-3-Clause |
def test_read_image(self) -> None:
"""Test :func:`colour.io.image.read_image` definition."""
image = read_image(os.path.join(ROOT_RESOURCES, "CMS_Test_Pattern.exr"))
assert image.shape == (1267, 1274, 3)
assert image.dtype is np.dtype("float32")
image = read_image(os.path.join(... | Test :func:`colour.io.image.read_image` definition. | test_read_image | python | colour-science/colour | colour/io/tests/test_image.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_image.py | BSD-3-Clause |
def test_write_image(self) -> None:
"""Test :func:`colour.io.image.write_image` definition."""
source_path = os.path.join(ROOT_RESOURCES, "CMS_Test_Pattern.exr")
source_image = read_image(source_path)
target_path = os.path.join(self._temporary_directory, "CMS_Test_Pattern.exr")
... | Test :func:`colour.io.image.write_image` definition. | test_write_image | python | colour-science/colour | colour/io/tests/test_image.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_image.py | BSD-3-Clause |
def test_as_3_channels_image(self) -> None:
"""Test :func:`colour.io.image.as_3_channels_image` definition."""
a = 0.18
b = np.array([[[0.18, 0.18, 0.18]]])
np.testing.assert_equal(as_3_channels_image(a), b)
a = np.array([0.18])
np.testing.assert_equal(as_3_channels_imag... | Test :func:`colour.io.image.as_3_channels_image` definition. | test_as_3_channels_image | python | colour-science/colour | colour/io/tests/test_image.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_image.py | BSD-3-Clause |
def test_raise_exception_as_3_channels_image(self) -> None:
"""
Test :func:`colour.io.image.as_3_channels_image` definition raised
exception.
"""
pytest.raises(
ValueError,
as_3_channels_image,
[
[
[[0.18, 0... |
Test :func:`colour.io.image.as_3_channels_image` definition raised
exception.
| test_raise_exception_as_3_channels_image | python | colour-science/colour | colour/io/tests/test_image.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_image.py | BSD-3-Clause |
def test_process_image_OpenColorIO(self) -> None:
"""Test :func:`colour.io.ocio.process_image_OpenColorIO` definition."""
# TODO: Remove when "Pypi" wheel compatible with "ARM" on "macOS" is
# released.
if not is_opencolorio_installed(): # pragma: no cover
return
i... | Test :func:`colour.io.ocio.process_image_OpenColorIO` definition. | test_process_image_OpenColorIO | python | colour-science/colour | colour/io/tests/test_ocio.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_ocio.py | BSD-3-Clause |
def test_read_spectral_data_from_csv_file(self) -> None:
"""
Test :func:`colour.io.tabular.read_spectral_data_from_csv_file`
definition.
"""
colour_checker_n_ohta = os.path.join(ROOT_RESOURCES, "colorchecker_n_ohta.csv")
data = read_spectral_data_from_csv_file(colour_che... |
Test :func:`colour.io.tabular.read_spectral_data_from_csv_file`
definition.
| test_read_spectral_data_from_csv_file | python | colour-science/colour | colour/io/tests/test_tabular.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_tabular.py | BSD-3-Clause |
def test_read_sds_from_csv_file(self) -> None:
"""Test :func:`colour.io.tabular.read_sds_from_csv_file` definition."""
colour_checker_n_ohta = os.path.join(ROOT_RESOURCES, "colorchecker_n_ohta.csv")
sds = read_sds_from_csv_file(colour_checker_n_ohta)
for sd in sds.values():
... | Test :func:`colour.io.tabular.read_sds_from_csv_file` definition. | test_read_sds_from_csv_file | python | colour-science/colour | colour/io/tests/test_tabular.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_tabular.py | BSD-3-Clause |
def test_write_sds_to_csv_file(self) -> None:
"""Test :func:`colour.io.tabular.write_sds_to_csv_file` definition."""
colour_checker_n_ohta = os.path.join(ROOT_RESOURCES, "colorchecker_n_ohta.csv")
sds = read_sds_from_csv_file(colour_checker_n_ohta)
colour_checker_n_ohta_test = os.path.j... | Test :func:`colour.io.tabular.write_sds_to_csv_file` definition. | test_write_sds_to_csv_file | python | colour-science/colour | colour/io/tests/test_tabular.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_tabular.py | BSD-3-Clause |
def test_raise_exception_write_sds_to_csv_file(self) -> None:
"""
Test :func:`colour.io.tabular.write_sds_to_csv_file` definition
raised exception.
"""
colour_checker_n_ohta = os.path.join(ROOT_RESOURCES, "colorchecker_n_ohta.csv")
sds = read_sds_from_csv_file(colour_che... |
Test :func:`colour.io.tabular.write_sds_to_csv_file` definition
raised exception.
| test_raise_exception_write_sds_to_csv_file | python | colour-science/colour | colour/io/tests/test_tabular.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_tabular.py | BSD-3-Clause |
def test_read(self, sd: SpectralDistribution | None = None) -> None:
"""
Test :meth:`colour.io.tm2714.SpectralDistribution_IESTM2714.read`
method.
Parameters
----------
sd
Optional *IES TM-27-14* spectral distribution for read tests.
"""
sd =... |
Test :meth:`colour.io.tm2714.SpectralDistribution_IESTM2714.read`
method.
Parameters
----------
sd
Optional *IES TM-27-14* spectral distribution for read tests.
| test_read | python | colour-science/colour | colour/io/tests/test_tm2714.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_tm2714.py | BSD-3-Clause |
def test_raise_exception_read(self) -> None:
"""
Test :func:`colour.io.tm2714.SpectralDistribution_IESTM2714.read`
method raised exception.
"""
sd = SpectralDistribution_IESTM2714()
pytest.raises(ValueError, sd.read)
with pytest.raises(ValueError):
s... |
Test :func:`colour.io.tm2714.SpectralDistribution_IESTM2714.read`
method raised exception.
| test_raise_exception_read | python | colour-science/colour | colour/io/tests/test_tm2714.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_tm2714.py | BSD-3-Clause |
def test_write(self) -> None:
"""
Test :meth:`colour.io.tm2714.SpectralDistribution_IESTM2714.write`
method.
"""
sd_r = self._sd
sd_r.path = os.path.join(self._temporary_directory, "Fluorescent.spdx")
assert sd_r.write()
sd_t = SpectralDistribution_IESTM... |
Test :meth:`colour.io.tm2714.SpectralDistribution_IESTM2714.write`
method.
| test_write | python | colour-science/colour | colour/io/tests/test_tm2714.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_tm2714.py | BSD-3-Clause |
def test__str__(self) -> None:
"""
Test :meth:`colour.SpectralDistribution_UPRTek.__str__` and
:meth:`colour.SpectralDistribution_Sekonic.__str__` methods.
"""
assert str(
self._sd_factory(os.path.join(ROOT_RESOURCES, self._path)).read()
).startswith(self._pr... |
Test :meth:`colour.SpectralDistribution_UPRTek.__str__` and
:meth:`colour.SpectralDistribution_Sekonic.__str__` methods.
| test__str__ | python | colour-science/colour | colour/io/tests/test_uprtek_sekonic.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_uprtek_sekonic.py | BSD-3-Clause |
def test_read(self) -> None:
"""
Test :meth:`colour.SpectralDistribution_UPRTek.read` and
:meth:`colour.SpectralDistribution_Sekonic.read` methods.
"""
sd = self._sd_factory(os.path.join(ROOT_RESOURCES, self._path)).read()
sd_r = SpectralDistribution(self._spectral_data... |
Test :meth:`colour.SpectralDistribution_UPRTek.read` and
:meth:`colour.SpectralDistribution_Sekonic.read` methods.
| test_read | python | colour-science/colour | colour/io/tests/test_uprtek_sekonic.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_uprtek_sekonic.py | BSD-3-Clause |
def test_read_sds_from_xrite_file(self) -> None:
"""Test :func:`colour.io.xrite.read_sds_from_xrite_file` definition."""
colour_checker_xrite = os.path.join(
ROOT_RESOURCES, "X-Rite_Digital_Colour_Checker.txt"
)
sds = read_sds_from_xrite_file(colour_checker_xrite)
fo... | Test :func:`colour.io.xrite.read_sds_from_xrite_file` definition. | test_read_sds_from_xrite_file | python | colour-science/colour | colour/io/tests/test_xrite.py | https://github.com/colour-science/colour/blob/master/colour/io/tests/test_xrite.py | BSD-3-Clause |
def JMh_CIECAM02_to_UCS_Luo2006(
JMh: ArrayLike, coefficients: Coefficients_UCS_Luo2006
) -> NDArrayFloat:
"""
Convert from *CIECAM02* :math:`JMh` correlates array to one of the
*Luo et al. (2006)* *CAM02-LCD*, *CAM02-SCD*, or *CAM02-UCS* colourspaces
:math:`J'a'b'` array.
The :math:`JMh` corre... |
Convert from *CIECAM02* :math:`JMh` correlates array to one of the
*Luo et al. (2006)* *CAM02-LCD*, *CAM02-SCD*, or *CAM02-UCS* colourspaces
:math:`J'a'b'` array.
The :math:`JMh` correlates array is constructed using the CIECAM02
correlate of *Lightness* :math:`J`, the *CIECAM02* correlate of
... | JMh_CIECAM02_to_UCS_Luo2006 | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def UCS_Luo2006_to_JMh_CIECAM02(
Jpapbp: ArrayLike, coefficients: Coefficients_UCS_Luo2006
) -> NDArrayFloat:
"""
Convert from one of the *Luo et al. (2006)* *CAM02-LCD*, *CAM02-SCD*, or
*CAM02-UCS* colourspaces :math:`J'a'b'` array to *CIECAM02* :math:`JMh`
correlates array.
Parameters
---... |
Convert from one of the *Luo et al. (2006)* *CAM02-LCD*, *CAM02-SCD*, or
*CAM02-UCS* colourspaces :math:`J'a'b'` array to *CIECAM02* :math:`JMh`
correlates array.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-LCD*, *CAM02-SCD*, or *CAM02-UCS*
colourspaces :math:`J'a'b... | UCS_Luo2006_to_JMh_CIECAM02 | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def JMh_CIECAM02_to_CAM02LCD(JMh: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIECAM02* :math:`JMh` correlates array to
*Luo et al. (2006)* *CAM02-LCD* colourspace :math:`J'a'b'` array.
Parameters
----------
JMh
*CIECAM02* correlates array :math:`JMh`.
Returns
-------
:cl... |
Convert from *CIECAM02* :math:`JMh` correlates array to
*Luo et al. (2006)* *CAM02-LCD* colourspace :math:`J'a'b'` array.
Parameters
----------
JMh
*CIECAM02* correlates array :math:`JMh`.
Returns
-------
:class:`numpy.ndarray`
*Luo et al. (2006)* *CAM02-LCD* colourspa... | JMh_CIECAM02_to_CAM02LCD | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def CAM02LCD_to_JMh_CIECAM02(Jpapbp: ArrayLike) -> NDArrayFloat:
"""
Convert from *Luo et al. (2006)* *CAM02-LCD* colourspace :math:`J'a'b'`
array to *CIECAM02* :math:`JMh` correlates array.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-LCD* colourspace :math:`J'a'b'` array.
... |
Convert from *Luo et al. (2006)* *CAM02-LCD* colourspace :math:`J'a'b'`
array to *CIECAM02* :math:`JMh` correlates array.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-LCD* colourspace :math:`J'a'b'` array.
Returns
-------
:class:`numpy.ndarray`
*CIECAM02* co... | CAM02LCD_to_JMh_CIECAM02 | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def JMh_CIECAM02_to_CAM02SCD(JMh: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIECAM02* :math:`JMh` correlates array to
*Luo et al. (2006)* *CAM02-SCD* colourspace :math:`J'a'b'` array.
Parameters
----------
JMh
*CIECAM02* correlates array :math:`JMh`.
Returns
-------
:cl... |
Convert from *CIECAM02* :math:`JMh` correlates array to
*Luo et al. (2006)* *CAM02-SCD* colourspace :math:`J'a'b'` array.
Parameters
----------
JMh
*CIECAM02* correlates array :math:`JMh`.
Returns
-------
:class:`numpy.ndarray`
*Luo et al. (2006)* *CAM02-SCD* colourspa... | JMh_CIECAM02_to_CAM02SCD | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def CAM02SCD_to_JMh_CIECAM02(Jpapbp: ArrayLike) -> NDArrayFloat:
"""
Convert from *Luo et al. (2006)* *CAM02-SCD* colourspace :math:`J'a'b'`
array to *CIECAM02* :math:`JMh` correlates array.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-SCD* colourspace :math:`J'a'b'` array.
... |
Convert from *Luo et al. (2006)* *CAM02-SCD* colourspace :math:`J'a'b'`
array to *CIECAM02* :math:`JMh` correlates array.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-SCD* colourspace :math:`J'a'b'` array.
Returns
-------
:class:`numpy.ndarray`
*CIECAM02* co... | CAM02SCD_to_JMh_CIECAM02 | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def JMh_CIECAM02_to_CAM02UCS(JMh: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIECAM02* :math:`JMh` correlates array to
*Luo et al. (2006)* *CAM02-UCS* colourspace :math:`J'a'b'` array.
Parameters
----------
JMh
*CIECAM02* correlates array :math:`JMh`.
Returns
-------
:cl... |
Convert from *CIECAM02* :math:`JMh` correlates array to
*Luo et al. (2006)* *CAM02-UCS* colourspace :math:`J'a'b'` array.
Parameters
----------
JMh
*CIECAM02* correlates array :math:`JMh`.
Returns
-------
:class:`numpy.ndarray`
*Luo et al. (2006)* *CAM02-UCS* colourspa... | JMh_CIECAM02_to_CAM02UCS | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def CAM02UCS_to_JMh_CIECAM02(Jpapbp: ArrayLike) -> NDArrayFloat:
"""
Convert from *Luo et al. (2006)* *CAM02-UCS* colourspace :math:`J'a'b'`
array to *CIECAM02* :math:`JMh` correlates array.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-UCS* colourspace :math:`J'a'b'` array.
... |
Convert from *Luo et al. (2006)* *CAM02-UCS* colourspace :math:`J'a'b'`
array to *CIECAM02* :math:`JMh` correlates array.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-UCS* colourspace :math:`J'a'b'` array.
Returns
-------
:class:`numpy.ndarray`
*CIECAM02* co... | CAM02UCS_to_JMh_CIECAM02 | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def XYZ_to_UCS_Luo2006(
XYZ: ArrayLike, coefficients: Coefficients_UCS_Luo2006, **kwargs: Any
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to one of the
*Luo et al. (2006)* *CAM02-LCD*, *CAM02-SCD*, or *CAM02-UCS* colourspaces
:math:`J'a'b'` array.
Parameters
----------
... |
Convert from *CIE XYZ* tristimulus values to one of the
*Luo et al. (2006)* *CAM02-LCD*, *CAM02-SCD*, or *CAM02-UCS* colourspaces
:math:`J'a'b'` array.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
coefficients
Coefficients of one of the *Luo et al. (2006)* *CAM02... | XYZ_to_UCS_Luo2006 | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def UCS_Luo2006_to_XYZ(
Jpapbp: ArrayLike, coefficients: Coefficients_UCS_Luo2006, **kwargs: Any
) -> NDArrayFloat:
"""
Convert from one of the *Luo et al. (2006)* *CAM02-LCD*, *CAM02-SCD*, or
*CAM02-UCS* colourspaces :math:`J'a'b'` array to *CIE XYZ* tristimulus
values.
Parameters
--------... |
Convert from one of the *Luo et al. (2006)* *CAM02-LCD*, *CAM02-SCD*, or
*CAM02-UCS* colourspaces :math:`J'a'b'` array to *CIE XYZ* tristimulus
values.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-LCD*, *CAM02-SCD*, or *CAM02-UCS*
colourspaces :math:`J'a'b'` array.
... | UCS_Luo2006_to_XYZ | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def XYZ_to_CAM02LCD(XYZ: ArrayLike, **kwargs: Any) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to *Luo et al. (2006)*
*CAM02-LCD* colourspace :math:`J'a'b'` array.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Other Parameters
----------------
k... |
Convert from *CIE XYZ* tristimulus values to *Luo et al. (2006)*
*CAM02-LCD* colourspace :math:`J'a'b'` array.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Other Parameters
----------------
kwargs
{:func:`colour.XYZ_to_CIECAM02`},
See the documentati... | XYZ_to_CAM02LCD | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def CAM02LCD_to_XYZ(Jpapbp: ArrayLike, **kwargs: Any) -> NDArrayFloat:
"""
Convert from *Luo et al. (2006)* *CAM02-LCD* colourspace :math:`J'a'b'`
array to *CIE XYZ* tristimulus values.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-LCD* colourspace :math:`J'a'b'` array.
O... |
Convert from *Luo et al. (2006)* *CAM02-LCD* colourspace :math:`J'a'b'`
array to *CIE XYZ* tristimulus values.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-LCD* colourspace :math:`J'a'b'` array.
Other Parameters
----------------
kwargs
{:func:`colour.CIECAM0... | CAM02LCD_to_XYZ | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def XYZ_to_CAM02SCD(XYZ: ArrayLike, **kwargs: Any) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to *Luo et al. (2006)*
*CAM02-SCD* colourspace :math:`J'a'b'` array.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Other Parameters
----------------
k... |
Convert from *CIE XYZ* tristimulus values to *Luo et al. (2006)*
*CAM02-SCD* colourspace :math:`J'a'b'` array.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Other Parameters
----------------
kwargs
{:func:`colour.XYZ_to_CIECAM02`},
See the documentati... | XYZ_to_CAM02SCD | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def CAM02SCD_to_XYZ(Jpapbp: ArrayLike, **kwargs: Any) -> NDArrayFloat:
"""
Convert from *Luo et al. (2006)* *CAM02-SCD* colourspace :math:`J'a'b'`
array to *CIE XYZ* tristimulus values.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-SCD* colourspace :math:`J'a'b'` array.
O... |
Convert from *Luo et al. (2006)* *CAM02-SCD* colourspace :math:`J'a'b'`
array to *CIE XYZ* tristimulus values.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-SCD* colourspace :math:`J'a'b'` array.
Other Parameters
----------------
kwargs
{:func:`colour.CIECAM0... | CAM02SCD_to_XYZ | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def XYZ_to_CAM02UCS(XYZ: ArrayLike, **kwargs: Any) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to *Luo et al. (2006)*
*CAM02-UCS* colourspace :math:`J'a'b'` array.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Other Parameters
----------------
k... |
Convert from *CIE XYZ* tristimulus values to *Luo et al. (2006)*
*CAM02-UCS* colourspace :math:`J'a'b'` array.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Other Parameters
----------------
kwargs
{:func:`colour.XYZ_to_CIECAM02`},
See the documentati... | XYZ_to_CAM02UCS | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def CAM02UCS_to_XYZ(Jpapbp: ArrayLike, **kwargs: Any) -> NDArrayFloat:
"""
Convert from *Luo et al. (2006)* *CAM02-UCS* colourspace :math:`J'a'b'`
array to *CIE XYZ* tristimulus values.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-UCS* colourspace :math:`J'a'b'` array.
O... |
Convert from *Luo et al. (2006)* *CAM02-UCS* colourspace :math:`J'a'b'`
array to *CIE XYZ* tristimulus values.
Parameters
----------
Jpapbp
*Luo et al. (2006)* *CAM02-UCS* colourspace :math:`J'a'b'` array.
Other Parameters
----------------
kwargs
{:func:`colour.CIECAM0... | CAM02UCS_to_XYZ | python | colour-science/colour | colour/models/cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam02_ucs.py | BSD-3-Clause |
def _UCS_Luo2006_callable_to_UCS_Li2017_docstring(callable_: Callable) -> str:
"""
Convert specified *Luo et al. (2006)* callable docstring to
*Li et al. (2017)* docstring.
Parameters
----------
callable_
Callable to use the docstring from.
Returns
-------
:class:`str`
... |
Convert specified *Luo et al. (2006)* callable docstring to
*Li et al. (2017)* docstring.
Parameters
----------
callable_
Callable to use the docstring from.
Returns
-------
:class:`str`
Docstring.
| _UCS_Luo2006_callable_to_UCS_Li2017_docstring | python | colour-science/colour | colour/models/cam16_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam16_ucs.py | BSD-3-Clause |
def XYZ_to_UCS_Li2017(
XYZ: ArrayLike, coefficients: ArrayLike, **kwargs: Any
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to one of the *Li et al. (2017)*
*CAM16-LCD*, *CAM16-SCD*, or *CAM16-UCS* colourspaces :math:`J'a'b'` array.
Parameters
----------
XYZ
*CIE ... |
Convert from *CIE XYZ* tristimulus values to one of the *Li et al. (2017)*
*CAM16-LCD*, *CAM16-SCD*, or *CAM16-UCS* colourspaces :math:`J'a'b'` array.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
coefficients
Coefficients of one of the *Li et al. (2017)* *CAM16-LCD*,... | XYZ_to_UCS_Li2017 | python | colour-science/colour | colour/models/cam16_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam16_ucs.py | BSD-3-Clause |
def UCS_Li2017_to_XYZ(
Jpapbp: ArrayLike, coefficients: ArrayLike, **kwargs: Any
) -> NDArrayFloat:
"""
Convert from one of the *Li et al. (2017)* *CAM16-LCD*, *CAM16-SCD*, or
*CAM16-UCS* colourspaces :math:`J'a'b'` array to *CIE XYZ* tristimulus
values.
Parameters
----------
Jpapbp
... |
Convert from one of the *Li et al. (2017)* *CAM16-LCD*, *CAM16-SCD*, or
*CAM16-UCS* colourspaces :math:`J'a'b'` array to *CIE XYZ* tristimulus
values.
Parameters
----------
Jpapbp
*Li et al. (2017)* *CAM16-LCD*, *CAM16-SCD*, or *CAM16-UCS*
colourspaces :math:`J'a'b'` array.
... | UCS_Li2017_to_XYZ | python | colour-science/colour | colour/models/cam16_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cam16_ucs.py | BSD-3-Clause |
def XYZ_to_Lab(
XYZ: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to *CIE L\\*a\\*b\\**
colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulu... |
Convert from *CIE XYZ* tristimulus values to *CIE L\*a\*b\**
colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
illuminant
Reference *illuminant* *CIE xy* chromaticity coordinates or *CIE xyY*
colourspace array.
Returns
-------
:class:`num... | XYZ_to_Lab | python | colour-science/colour | colour/models/cie_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_lab.py | BSD-3-Clause |
def Lab_to_XYZ(
Lab: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
) -> NDArrayFloat:
"""
Convert from *CIE L\\*a\\*b\\** colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
Lab
*CIE L\\*a\\*b\\** c... |
Convert from *CIE L\*a\*b\** colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
Lab
*CIE L\*a\*b\** colourspace array.
illuminant
Reference *illuminant* *CIE xy* chromaticity coordinates or *CIE xyY*
colourspace array.
Returns
-------
:class... | Lab_to_XYZ | python | colour-science/colour | colour/models/cie_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_lab.py | BSD-3-Clause |
def XYZ_to_Luv(
XYZ: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to *CIE L\\*u\\*v\\**
colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulu... |
Convert from *CIE XYZ* tristimulus values to *CIE L\*u\*v\**
colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
illuminant
Reference *illuminant* *CIE xy* chromaticity coordinates or *CIE xyY*
colourspace array.
Returns
-------
:class:`num... | XYZ_to_Luv | python | colour-science/colour | colour/models/cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_luv.py | BSD-3-Clause |
def Luv_to_XYZ(
Luv: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
) -> NDArrayFloat:
"""
Convert from *CIE L\\*u\\*v\\** colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
Luv
*CIE L\\*u\\*v\\** c... |
Convert from *CIE L\*u\*v\** colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
Luv
*CIE L\*u\*v\** colourspace array.
illuminant
Reference *illuminant* *CIE xy* chromaticity coordinates or *CIE xyY*
colourspace array.
Returns
-------
:class... | Luv_to_XYZ | python | colour-science/colour | colour/models/cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_luv.py | BSD-3-Clause |
def Luv_to_uv(
Luv: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
) -> NDArrayFloat:
"""
Return the :math:`uv^p` chromaticity coordinates from specified
*CIE L\\*u\\*v\\** colourspace array.
Parameters
----------
Luv
... |
Return the :math:`uv^p` chromaticity coordinates from specified
*CIE L\*u\*v\** colourspace array.
Parameters
----------
Luv
*CIE L\*u\*v\** colourspace array.
illuminant
Reference *illuminant* *CIE xy* chromaticity coordinates or *CIE xyY*
colourspace array.
Retur... | Luv_to_uv | python | colour-science/colour | colour/models/cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_luv.py | BSD-3-Clause |
def uv_to_Luv(
uv: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
L: ArrayLike = 100,
) -> NDArrayFloat:
"""
Return the *CIE L\\*u\\*v\\** colourspace array from specified :math:`uv^p`
chromaticity coordinates by extending the arra... |
Return the *CIE L\*u\*v\** colourspace array from specified :math:`uv^p`
chromaticity coordinates by extending the array last dimension with specified
:math:`L` *Lightness*.
Parameters
----------
uv
:math:`uv^p` chromaticity coordinates.
illuminant
Reference *illuminant* *C... | uv_to_Luv | python | colour-science/colour | colour/models/cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_luv.py | BSD-3-Clause |
def Luv_uv_to_xy(uv: ArrayLike) -> NDArrayFloat:
"""
Return the *CIE xy* chromaticity coordinates from specified *CIE L\\*u\\*v\\**
colourspace :math:`uv^p` chromaticity coordinates.
Parameters
----------
uv
*CIE L\\*u\\*v\\* u"v"* chromaticity coordinates.
Returns
-------
... |
Return the *CIE xy* chromaticity coordinates from specified *CIE L\*u\*v\**
colourspace :math:`uv^p` chromaticity coordinates.
Parameters
----------
uv
*CIE L\*u\*v\* u"v"* chromaticity coordinates.
Returns
-------
:class:`numpy.ndarray`
*CIE xy* chromaticity coordinat... | Luv_uv_to_xy | python | colour-science/colour | colour/models/cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_luv.py | BSD-3-Clause |
def xy_to_Luv_uv(xy: ArrayLike) -> NDArrayFloat:
"""
Return the *CIE L\\*u\\*v\\** colourspace :math:`uv^p` chromaticity
coordinates from specified *CIE xy* chromaticity coordinates.
Parameters
----------
xy
*CIE xy* chromaticity coordinates.
Returns
-------
:class:`numpy.n... |
Return the *CIE L\*u\*v\** colourspace :math:`uv^p` chromaticity
coordinates from specified *CIE xy* chromaticity coordinates.
Parameters
----------
xy
*CIE xy* chromaticity coordinates.
Returns
-------
:class:`numpy.ndarray`
*CIE L\*u\*v\* u"v"* chromaticity coordinat... | xy_to_Luv_uv | python | colour-science/colour | colour/models/cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_luv.py | BSD-3-Clause |
def XYZ_to_CIE1976UCS(
XYZ: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to :math:`uv^pL\\*` colourspace.
This colourspace combines the :math:`uv^p` chromaticity coord... |
Convert from *CIE XYZ* tristimulus values to :math:`uv^pL\*` colourspace.
This colourspace combines the :math:`uv^p` chromaticity coordinates with
the *Lightness* :math:`L\*` from the *CIE L\*u\*v\** colourspace.
It is a convenient definition for use with the
*CIE 1976 UCS Chromaticity Diagram*.
... | XYZ_to_CIE1976UCS | python | colour-science/colour | colour/models/cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_luv.py | BSD-3-Clause |
def CIE1976UCS_to_XYZ(
uvL: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to :math:`uv^pL\\*` colourspace.
This colourspace combines the :math:`uv^p` chromaticity coord... |
Convert from *CIE XYZ* tristimulus values to :math:`uv^pL\*` colourspace.
This colourspace combines the :math:`uv^p` chromaticity coordinates with
the *Lightness* :math:`L\*` from the *CIE L\*u\*v\** colourspace.
It is a convenient definition for use with the
*CIE 1976 UCS Chromaticity Diagram*.
... | CIE1976UCS_to_XYZ | python | colour-science/colour | colour/models/cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_luv.py | BSD-3-Clause |
def XYZ_to_UCS(XYZ: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to *CIE 1960 UCS* :math:`UVW`
colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
*CIE 1960 UCS* :math:`UVW` colours... |
Convert from *CIE XYZ* tristimulus values to *CIE 1960 UCS* :math:`UVW`
colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
*CIE 1960 UCS* :math:`UVW` colourspace array.
Notes
-----
+------------+----... | XYZ_to_UCS | python | colour-science/colour | colour/models/cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_ucs.py | BSD-3-Clause |
def UCS_to_XYZ(UVW: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIE 1960 UCS* :math:`UVW` colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
UVW
*CIE 1960 UCS* :math:`UVW` colourspace array.
Returns
-------
:class:`numpy.ndarray`
*CIE XYZ* tristimu... |
Convert from *CIE 1960 UCS* :math:`UVW` colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
UVW
*CIE 1960 UCS* :math:`UVW` colourspace array.
Returns
-------
:class:`numpy.ndarray`
*CIE XYZ* tristimulus values.
Notes
-----
+------------+----... | UCS_to_XYZ | python | colour-science/colour | colour/models/cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_ucs.py | BSD-3-Clause |
def UCS_to_uv(UVW: ArrayLike) -> NDArrayFloat:
"""
Return the *uv* chromaticity coordinates from specified *CIE 1960 UCS*
:math:`UVW` colourspace array.
Parameters
----------
UVW
*CIE 1960 UCS* :math:`UVW` colourspace array.
Returns
-------
:class:`numpy.ndarray`
*u... |
Return the *uv* chromaticity coordinates from specified *CIE 1960 UCS*
:math:`UVW` colourspace array.
Parameters
----------
UVW
*CIE 1960 UCS* :math:`UVW` colourspace array.
Returns
-------
:class:`numpy.ndarray`
*uv* chromaticity coordinates.
Notes
-----
... | UCS_to_uv | python | colour-science/colour | colour/models/cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_ucs.py | BSD-3-Clause |
def uv_to_UCS(uv: ArrayLike, V: ArrayLike = 1) -> NDArrayFloat:
"""
Return the *CIE 1960 UCS* :math:`UVW` colourspace array from specified *uv*
chromaticity coordinates.
Parameters
----------
uv
*uv* chromaticity coordinates.
V
Optional :math:`V` *luminance* value used to co... |
Return the *CIE 1960 UCS* :math:`UVW` colourspace array from specified *uv*
chromaticity coordinates.
Parameters
----------
uv
*uv* chromaticity coordinates.
V
Optional :math:`V` *luminance* value used to construct the
*CIE 1960 UCS* :math:`UVW` colourspace array, the d... | uv_to_UCS | python | colour-science/colour | colour/models/cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_ucs.py | BSD-3-Clause |
def UCS_uv_to_xy(uv: ArrayLike) -> NDArrayFloat:
"""
Return the *CIE xy* chromaticity coordinates from specified *CIE 1960 UCS*
:math:`UVW` colourspace *uv* chromaticity coordinates.
Parameters
----------
uv
*CIE UCS uv* chromaticity coordinates.
Returns
-------
:class:`num... |
Return the *CIE xy* chromaticity coordinates from specified *CIE 1960 UCS*
:math:`UVW` colourspace *uv* chromaticity coordinates.
Parameters
----------
uv
*CIE UCS uv* chromaticity coordinates.
Returns
-------
:class:`numpy.ndarray`
*CIE xy* chromaticity coordinates.
... | UCS_uv_to_xy | python | colour-science/colour | colour/models/cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_ucs.py | BSD-3-Clause |
def xy_to_UCS_uv(xy: ArrayLike) -> NDArrayFloat:
"""
Return the *CIE 1960 UCS* :math:`UVW` colourspace *uv* chromaticity
coordinates from specified *CIE xy* chromaticity coordinates.
Parameters
----------
xy
*CIE xy* chromaticity coordinates.
Returns
-------
:class:`numpy.n... |
Return the *CIE 1960 UCS* :math:`UVW` colourspace *uv* chromaticity
coordinates from specified *CIE xy* chromaticity coordinates.
Parameters
----------
xy
*CIE xy* chromaticity coordinates.
Returns
-------
:class:`numpy.ndarray`
*CIE UCS uv* chromaticity coordinates.
... | xy_to_UCS_uv | python | colour-science/colour | colour/models/cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_ucs.py | BSD-3-Clause |
def XYZ_to_CIE1960UCS(
XYZ: ArrayLike,
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to :math:`uvV` colourspace.
This colourspace combines the *CIE 1960 UCS* :math:`UVW` colourspace *uv*
chromaticity coordinates with the luminance :math:`V` from the
*CIE 1960 UCS* :math:`UVW`... |
Convert from *CIE XYZ* tristimulus values to :math:`uvV` colourspace.
This colourspace combines the *CIE 1960 UCS* :math:`UVW` colourspace *uv*
chromaticity coordinates with the luminance :math:`V` from the
*CIE 1960 UCS* :math:`UVW` colourspace.
It is a convenient definition for use with the
... | XYZ_to_CIE1960UCS | python | colour-science/colour | colour/models/cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_ucs.py | BSD-3-Clause |
def CIE1960UCS_to_XYZ(
uvV: ArrayLike,
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to :math:`uvV` colourspace.
This colourspace combines the *CIE 1960 UCS* :math:`UVW` colourspace *uv*
chromaticity coordinates with the luminance :math:`V` from the
*CIE 1960 UCS* :math:`UVW`... |
Convert from *CIE XYZ* tristimulus values to :math:`uvV` colourspace.
This colourspace combines the *CIE 1960 UCS* :math:`UVW` colourspace *uv*
chromaticity coordinates with the luminance :math:`V` from the
*CIE 1960 UCS* :math:`UVW` colourspace.
It is a convenient definition for use with the
... | CIE1960UCS_to_XYZ | python | colour-science/colour | colour/models/cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_ucs.py | BSD-3-Clause |
def XYZ_to_UVW(
XYZ: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to *CIE 1964 U\\*V\\*W\\**
colourspace.
Parameters
----------
XYZ
*CIE XYZ* trist... |
Convert from *CIE XYZ* tristimulus values to *CIE 1964 U\*V\*W\**
colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
illuminant
Reference *illuminant* *CIE xy* chromaticity coordinates or *CIE xyY*
colourspace array.
Returns
-------
:class... | XYZ_to_UVW | python | colour-science/colour | colour/models/cie_uvw.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_uvw.py | BSD-3-Clause |
def UVW_to_XYZ(
UVW: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
) -> NDArrayFloat:
"""
Convert *CIE 1964 U\\*V\\*W\\** colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
UVW
*CIE 1964 U\\*V\\*W\... |
Convert *CIE 1964 U\*V\*W\** colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
UVW
*CIE 1964 U\*V\*W\** colourspace array.
illuminant
Reference *illuminant* *CIE xy* chromaticity coordinates or *CIE xyY*
colourspace array.
Returns
-------
:... | UVW_to_XYZ | python | colour-science/colour | colour/models/cie_uvw.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_uvw.py | BSD-3-Clause |
def XYZ_to_xyY(XYZ: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to *CIE xyY* colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
*CIE xyY* colourspace array.
Notes
-----
+... |
Convert from *CIE XYZ* tristimulus values to *CIE xyY* colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
*CIE xyY* colourspace array.
Notes
-----
+------------+-----------------------+---------------+
... | XYZ_to_xyY | python | colour-science/colour | colour/models/cie_xyy.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_xyy.py | BSD-3-Clause |
def xyY_to_XYZ(xyY: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIE xyY* colourspace to *CIE XYZ* tristimulus values.
Parameters
----------
xyY
*CIE xyY* colourspace array.
Returns
-------
:class:`numpy.ndarray`
*CIE XYZ* tristimulus values.
Notes
-----
+... |
Convert from *CIE xyY* colourspace to *CIE XYZ* tristimulus values.
Parameters
----------
xyY
*CIE xyY* colourspace array.
Returns
-------
:class:`numpy.ndarray`
*CIE XYZ* tristimulus values.
Notes
-----
+------------+-----------------------+---------------+
... | xyY_to_XYZ | python | colour-science/colour | colour/models/cie_xyy.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_xyy.py | BSD-3-Clause |
def xyY_to_xy(xyY: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIE xyY* colourspace to *CIE xy* chromaticity coordinates.
``xyY`` argument with last dimension being equal to 2 will be assumed to be
a *CIE xy* chromaticity coordinates argument and will be returned directly
by the definition.
... |
Convert from *CIE xyY* colourspace to *CIE xy* chromaticity coordinates.
``xyY`` argument with last dimension being equal to 2 will be assumed to be
a *CIE xy* chromaticity coordinates argument and will be returned directly
by the definition.
Parameters
----------
xyY
*CIE xyY* co... | xyY_to_xy | python | colour-science/colour | colour/models/cie_xyy.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_xyy.py | BSD-3-Clause |
def xy_to_xyY(xy: ArrayLike, Y: ArrayLike = 1) -> NDArrayFloat:
"""
Convert from *CIE xy* chromaticity coordinates to *CIE xyY* colourspace by
extending the array last dimension with specified :math:`Y` *luminance*.
``xy`` argument with last dimension being equal to 3 will be assumed to be
a *CIE x... |
Convert from *CIE xy* chromaticity coordinates to *CIE xyY* colourspace by
extending the array last dimension with specified :math:`Y` *luminance*.
``xy`` argument with last dimension being equal to 3 will be assumed to be
a *CIE xyY* colourspace array argument and will be returned directly by the
... | xy_to_xyY | python | colour-science/colour | colour/models/cie_xyy.py | https://github.com/colour-science/colour/blob/master/colour/models/cie_xyy.py | BSD-3-Clause |
def Jab_to_JCh(Jab: ArrayLike) -> NDArrayFloat:
"""
Convert from *Jab* colour representation to *JCh* colour representation.
This definition is used to perform conversion from *CIE L\\*a\\*b\\**
colourspace to *CIE L\\*C\\*Hab* colourspace and for other similar
conversions. It implements a generic ... |
Convert from *Jab* colour representation to *JCh* colour representation.
This definition is used to perform conversion from *CIE L\*a\*b\**
colourspace to *CIE L\*C\*Hab* colourspace and for other similar
conversions. It implements a generic transformation from *lightness*
:math:`J`, :math:`a` and... | Jab_to_JCh | python | colour-science/colour | colour/models/common.py | https://github.com/colour-science/colour/blob/master/colour/models/common.py | BSD-3-Clause |
def JCh_to_Jab(JCh: ArrayLike) -> NDArrayFloat:
"""
Convert from *JCh* colour representation to *Jab* colour representation.
This definition is used to perform conversion from *CIE L\\*C\\*Hab*
colourspace to *CIE L\\*a\\*b\\** colourspace and for other similar
conversions. It implements a generic ... |
Convert from *JCh* colour representation to *Jab* colour representation.
This definition is used to perform conversion from *CIE L\*C\*Hab*
colourspace to *CIE L\*a\*b\** colourspace and for other similar
conversions. It implements a generic transformation from the correlates of
*lightness* :math:... | JCh_to_Jab | python | colour-science/colour | colour/models/common.py | https://github.com/colour-science/colour/blob/master/colour/models/common.py | BSD-3-Clause |
def XYZ_to_Iab(
XYZ: ArrayLike,
LMS_to_LMS_p_callable: Callable,
matrix_XYZ_to_LMS: ArrayLike,
matrix_LMS_p_to_Iab: ArrayLike,
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to *IPT*-like :math:`Iab` colour
representation.
This definition is used to perform conversion ... |
Convert from *CIE XYZ* tristimulus values to *IPT*-like :math:`Iab` colour
representation.
This definition is used to perform conversion from *CIE XYZ* tristimulus
values to *IPT* colourspace and for other similar conversions. It
implements a generic transformation from *CIE XYZ* tristimulus value... | XYZ_to_Iab | python | colour-science/colour | colour/models/common.py | https://github.com/colour-science/colour/blob/master/colour/models/common.py | BSD-3-Clause |
def Iab_to_XYZ(
Iab: ArrayLike,
LMS_p_to_LMS_callable: Callable,
matrix_Iab_to_LMS_p: ArrayLike,
matrix_LMS_to_XYZ: ArrayLike,
) -> NDArrayFloat:
"""
Convert from *IPT*-like :math:`Iab` colour representation to *CIE XYZ*
tristimulus values.
This definition is used to perform conversion ... |
Convert from *IPT*-like :math:`Iab` colour representation to *CIE XYZ*
tristimulus values.
This definition is used to perform conversion from *IPT* colourspace to
*CIE XYZ* tristimulus values and for other similar conversions. It
implements a generic transformation from *lightness* :math:`I`, :mat... | Iab_to_XYZ | python | colour-science/colour | colour/models/common.py | https://github.com/colour-science/colour/blob/master/colour/models/common.py | BSD-3-Clause |
def Lab_to_DIN99(
Lab: ArrayLike,
k_E: float = 1,
k_CH: float = 1,
method: (
Literal["ASTMD2244-07", "DIN99", "DIN99b", "DIN99c", "DIN99d"] | str
) = "DIN99",
) -> NDArrayFloat:
"""
Convert from *CIE L\\*a\\*b\\** colourspace to *DIN99* colourspace or
one of the *DIN99b*, *DIN99c... |
Convert from *CIE L\*a\*b\** colourspace to *DIN99* colourspace or
one of the *DIN99b*, *DIN99c*, *DIN99d* refined formulas according
to *Cui et al. (2002)*.
Parameters
----------
Lab
*CIE L\*a\*b\** colourspace array.
k_E
Parametric factor :math:`K_E` used to compensate fo... | Lab_to_DIN99 | python | colour-science/colour | colour/models/din99.py | https://github.com/colour-science/colour/blob/master/colour/models/din99.py | BSD-3-Clause |
def DIN99_to_Lab(
Lab_99: ArrayLike,
k_E: float = 1,
k_CH: float = 1,
method: (
Literal["ASTMD2244-07", "DIN99", "DIN99b", "DIN99c", "DIN99d"] | str
) = "DIN99",
) -> NDArrayFloat:
"""
Convert from *DIN99* colourspace or one of the *DIN99b*, *DIN99c*,
*DIN99d* refined formulas ac... |
Convert from *DIN99* colourspace or one of the *DIN99b*, *DIN99c*,
*DIN99d* refined formulas according to *Cui et al. (2002)* to
*CIE L\*a\*b\** colourspace.
Parameters
----------
Lab_99
*DIN99* colourspace array.
k_E
Parametric factor :math:`K_E` used to compensate for tex... | DIN99_to_Lab | python | colour-science/colour | colour/models/din99.py | https://github.com/colour-science/colour/blob/master/colour/models/din99.py | BSD-3-Clause |
def XYZ_to_DIN99(
XYZ: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
k_E: float = 1,
k_CH: float = 1,
method: (
Literal["ASTMD2244-07", "DIN99", "DIN99b", "DIN99c", "DIN99d"] | str
) = "DIN99",
) -> NDArrayFloat:
"""
... |
Convert from *CIE XYZ* tristimulus values to *DIN99* colourspace or
one of the *DIN99b*, *DIN99c*, *DIN99d* refined formulas according
to *Cui et al. (2002)*.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
illuminant
Reference *illuminant* *CIE xy* chromaticity coo... | XYZ_to_DIN99 | python | colour-science/colour | colour/models/din99.py | https://github.com/colour-science/colour/blob/master/colour/models/din99.py | BSD-3-Clause |
def DIN99_to_XYZ(
Lab_99: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
k_E: float = 1,
k_CH: float = 1,
method: (
Literal["ASTMD2244-07", "DIN99", "DIN99b", "DIN99c", "DIN99d"] | str
) = "DIN99",
) -> NDArrayFloat:
""... |
Convert from *DIN99* colourspace or one of the *DIN99b*, *DIN99c*,
*DIN99d* refined formulas according to *Cui et al. (2002)* to *CIE XYZ*
tristimulus values.
Parameters
----------
Lab_99
*DIN99* colourspace array.
illuminant
Reference *illuminant* *CIE xy* chromaticity coo... | DIN99_to_XYZ | python | colour-science/colour | colour/models/din99.py | https://github.com/colour-science/colour/blob/master/colour/models/din99.py | BSD-3-Clause |
def exponent_hdr_CIELab(
Y_s: ArrayLike,
Y_abs: ArrayLike,
method: (Literal["Fairchild 2011", "Fairchild 2010"] | str) = "Fairchild 2011",
) -> NDArrayFloat:
"""
Compute *hdr-CIELAB* colourspace *Lightness* :math:`\\epsilon` exponent
using *Fairchild and Wyble (2010)* or *Fairchild and Chen (201... |
Compute *hdr-CIELAB* colourspace *Lightness* :math:`\epsilon` exponent
using *Fairchild and Wyble (2010)* or *Fairchild and Chen (2011)* method.
Parameters
----------
Y_s
Relative luminance :math:`Y_s` of the surround.
Y_abs
Absolute luminance :math:`Y_{abs}` of the scene diffu... | exponent_hdr_CIELab | python | colour-science/colour | colour/models/hdr_cie_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/hdr_cie_lab.py | BSD-3-Clause |
def XYZ_to_hdr_CIELab(
XYZ: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
Y_s: ArrayLike = 0.2,
Y_abs: ArrayLike = 100,
method: (Literal["Fairchild 2011", "Fairchild 2010"] | str) = "Fairchild 2011",
) -> NDArrayFloat:
"""
Con... |
Convert from *CIE XYZ* tristimulus values to *hdr-CIELAB* colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
illuminant
Reference *illuminant* *CIE xy* chromaticity coordinates or *CIE xyY*
colourspace array.
Y_s
Relative luminance :math:`Y_s` ... | XYZ_to_hdr_CIELab | python | colour-science/colour | colour/models/hdr_cie_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/hdr_cie_lab.py | BSD-3-Clause |
def hdr_CIELab_to_XYZ(
Lab_hdr: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
Y_s: ArrayLike = 0.2,
Y_abs: ArrayLike = 100,
method: (Literal["Fairchild 2011", "Fairchild 2010"] | str) = "Fairchild 2011",
) -> NDArrayFloat:
"""
... |
Convert from *hdr-CIELAB* colourspace to *CIE XYZ* tristimulus values.
Parameters
----------
Lab_hdr
*hdr-CIELAB* colourspace array.
illuminant
Reference *illuminant* *CIE xy* chromaticity coordinates or *CIE xyY*
colourspace array.
Y_s
Relative luminance :math:... | hdr_CIELab_to_XYZ | python | colour-science/colour | colour/models/hdr_cie_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/hdr_cie_lab.py | BSD-3-Clause |
def exponent_hdr_IPT(
Y_s: ArrayLike,
Y_abs: ArrayLike,
method: (Literal["Fairchild 2011", "Fairchild 2010"] | str) = "Fairchild 2011",
) -> NDArrayFloat:
"""
Compute *hdr-IPT* colourspace *Lightness* :math:`\\epsilon` exponent using
*Fairchild and Wyble (2010)* or *Fairchild and Chen (2011)* me... |
Compute *hdr-IPT* colourspace *Lightness* :math:`\epsilon` exponent using
*Fairchild and Wyble (2010)* or *Fairchild and Chen (2011)* method.
Parameters
----------
Y_s
Relative luminance :math:`Y_s` of the surround.
Y_abs
Absolute luminance :math:`Y_{abs}` of the scene diffuse ... | exponent_hdr_IPT | python | colour-science/colour | colour/models/hdr_ipt.py | https://github.com/colour-science/colour/blob/master/colour/models/hdr_ipt.py | BSD-3-Clause |
def XYZ_to_hdr_IPT(
XYZ: ArrayLike,
Y_s: ArrayLike = 0.2,
Y_abs: ArrayLike = 100,
method: (Literal["Fairchild 2011", "Fairchild 2010"] | str) = "Fairchild 2011",
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to *hdr-IPT* colourspace.
Parameters
----------
XYZ
... |
Convert from *CIE XYZ* tristimulus values to *hdr-IPT* colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Y_s
Relative luminance :math:`Y_s` of the surround.
Y_abs
Absolute luminance :math:`Y_{abs}` of the scene diffuse white in
:math:`cd/m^2`.... | XYZ_to_hdr_IPT | python | colour-science/colour | colour/models/hdr_ipt.py | https://github.com/colour-science/colour/blob/master/colour/models/hdr_ipt.py | BSD-3-Clause |
def hdr_IPT_to_XYZ(
IPT_hdr: ArrayLike,
Y_s: ArrayLike = 0.2,
Y_abs: ArrayLike = 100,
method: (Literal["Fairchild 2011", "Fairchild 2010"] | str) = "Fairchild 2011",
) -> NDArrayFloat:
"""
Convert from *hdr-IPT* colourspace to *CIE XYZ* tristimulus values.
Parameters
----------
IPT_... |
Convert from *hdr-IPT* colourspace to *CIE XYZ* tristimulus values.
Parameters
----------
IPT_hdr
*hdr-IPT* colourspace array.
Y_s
Relative luminance :math:`Y_s` of the surround.
Y_abs
Absolute luminance :math:`Y_{abs}` of the scene diffuse white in
:math:`cd/m^... | hdr_IPT_to_XYZ | python | colour-science/colour | colour/models/hdr_ipt.py | https://github.com/colour-science/colour/blob/master/colour/models/hdr_ipt.py | BSD-3-Clause |
def XYZ_to_K_ab_HunterLab1966(XYZ: ArrayLike) -> NDArrayFloat:
"""
Convert from *whitepoint* *CIE XYZ* tristimulus values to
*Hunter L,a,b* :math:`K_{a}` and :math:`K_{b}` chromaticity
coefficients.
Parameters
----------
XYZ
*Whitepoint* *CIE XYZ* tristimulus values.
Returns
... |
Convert from *whitepoint* *CIE XYZ* tristimulus values to
*Hunter L,a,b* :math:`K_{a}` and :math:`K_{b}` chromaticity
coefficients.
Parameters
----------
XYZ
*Whitepoint* *CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
*Hunter L,a,b* :math:`K_{... | XYZ_to_K_ab_HunterLab1966 | python | colour-science/colour | colour/models/hunter_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/hunter_lab.py | BSD-3-Clause |
def XYZ_to_Hunter_Lab(
XYZ: ArrayLike,
XYZ_n: ArrayLike = TVS_ILLUMINANTS_HUNTERLAB["CIE 1931 2 Degree Standard Observer"][
"D65"
].XYZ_n,
K_ab: ArrayLike | None = TVS_ILLUMINANTS_HUNTERLAB[
"CIE 1931 2 Degree Standard Observer"
]["D65"].K_ab,
) -> NDArrayFloat:
"""
Convert f... |
Convert from *CIE XYZ* tristimulus values to *Hunter L,a,b* colour scale.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
XYZ_n
Reference *illuminant* tristimulus values.
K_ab
Reference *illuminant* chromaticity coefficients, if ``K_ab`` is set to
*None*... | XYZ_to_Hunter_Lab | python | colour-science/colour | colour/models/hunter_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/hunter_lab.py | BSD-3-Clause |
def Hunter_Lab_to_XYZ(
Lab: ArrayLike,
XYZ_n: ArrayLike = TVS_ILLUMINANTS_HUNTERLAB["CIE 1931 2 Degree Standard Observer"][
"D65"
].XYZ_n,
K_ab: ArrayLike | None = TVS_ILLUMINANTS_HUNTERLAB[
"CIE 1931 2 Degree Standard Observer"
]["D65"].K_ab,
) -> NDArrayFloat:
"""
Convert f... |
Convert from *Hunter L,a,b* colour scale to *CIE XYZ* tristimulus values.
Parameters
----------
Lab
*Hunter L,a,b* colour scale array.
XYZ_n
Reference *illuminant* tristimulus values.
K_ab
Reference *illuminant* chromaticity coefficients, if ``K_ab`` is set to
*... | Hunter_Lab_to_XYZ | python | colour-science/colour | colour/models/hunter_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/hunter_lab.py | BSD-3-Clause |
def XYZ_to_Hunter_Rdab(
XYZ: ArrayLike,
XYZ_n: ArrayLike = TVS_ILLUMINANTS_HUNTERLAB["CIE 1931 2 Degree Standard Observer"][
"D65"
].XYZ_n,
K_ab: ArrayLike | None = TVS_ILLUMINANTS_HUNTERLAB[
"CIE 1931 2 Degree Standard Observer"
]["D65"].K_ab,
) -> NDArrayFloat:
"""
Convert ... |
Convert from *CIE XYZ* tristimulus values to *Hunter Rd,a,b* colour scale.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
XYZ_n
Reference *illuminant* tristimulus values.
K_ab
Reference *illuminant* chromaticity coefficients, if ``K_ab`` is set to
*None... | XYZ_to_Hunter_Rdab | python | colour-science/colour | colour/models/hunter_rdab.py | https://github.com/colour-science/colour/blob/master/colour/models/hunter_rdab.py | BSD-3-Clause |
def Hunter_Rdab_to_XYZ(
R_d_ab: ArrayLike,
XYZ_n: ArrayLike = TVS_ILLUMINANTS_HUNTERLAB["CIE 1931 2 Degree Standard Observer"][
"D65"
].XYZ_n,
K_ab: ArrayLike | None = TVS_ILLUMINANTS_HUNTERLAB[
"CIE 1931 2 Degree Standard Observer"
]["D65"].K_ab,
) -> NDArrayFloat:
"""
Conve... |
Convert from *Hunter Rd,a,b* colour scale to *CIE XYZ* tristimulus values.
Parameters
----------
R_d_ab
*Hunter Rd,a,b* colour scale array.
XYZ_n
Reference *illuminant* tristimulus values.
K_ab
Reference *illuminant* chromaticity coefficients, if ``K_ab`` is set to
... | Hunter_Rdab_to_XYZ | python | colour-science/colour | colour/models/hunter_rdab.py | https://github.com/colour-science/colour/blob/master/colour/models/hunter_rdab.py | BSD-3-Clause |
def XYZ_to_ICaCb(XYZ: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to :math:`IC_AC_B` colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
:math:`IC_AC_B` colourspace array.
Notes
... |
Convert from *CIE XYZ* tristimulus values to :math:`IC_AC_B` colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
:math:`IC_AC_B` colourspace array.
Notes
-----
+------------+-----------------------+------... | XYZ_to_ICaCb | python | colour-science/colour | colour/models/icacb.py | https://github.com/colour-science/colour/blob/master/colour/models/icacb.py | BSD-3-Clause |
def ICaCb_to_XYZ(ICaCb: ArrayLike) -> NDArrayFloat:
"""
Convert from :math:`IC_AC_B` tristimulus values to *CIE XYZ* colourspace.
Parameters
----------
ICaCb
:math:`IC_AC_B` tristimulus values.
Returns
-------
:class:`numpy.ndarray`
*CIE XYZ* colourspace array.
Not... |
Convert from :math:`IC_AC_B` tristimulus values to *CIE XYZ* colourspace.
Parameters
----------
ICaCb
:math:`IC_AC_B` tristimulus values.
Returns
-------
:class:`numpy.ndarray`
*CIE XYZ* colourspace array.
Notes
-----
+------------+-----------------------+----... | ICaCb_to_XYZ | python | colour-science/colour | colour/models/icacb.py | https://github.com/colour-science/colour/blob/master/colour/models/icacb.py | BSD-3-Clause |
def XYZ_to_IgPgTg(XYZ: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to :math:`I_GP_GT_G`
colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
:math:`I_GP_GT_G` colourspace array.
... |
Convert from *CIE XYZ* tristimulus values to :math:`I_GP_GT_G`
colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
:math:`I_GP_GT_G` colourspace array.
Notes
-----
+------------+----------------------... | XYZ_to_IgPgTg | python | colour-science/colour | colour/models/igpgtg.py | https://github.com/colour-science/colour/blob/master/colour/models/igpgtg.py | BSD-3-Clause |
def IgPgTg_to_XYZ(IgPgTg: ArrayLike) -> NDArrayFloat:
"""
Convert from :math:`I_GP_GT_G` colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
IgPgTg
:math:`I_GP_GT_G` colourspace array.
Returns
-------
:class:`numpy.ndarray`
*CIE XYZ* tristimulus value... |
Convert from :math:`I_GP_GT_G` colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
IgPgTg
:math:`I_GP_GT_G` colourspace array.
Returns
-------
:class:`numpy.ndarray`
*CIE XYZ* tristimulus values.
Notes
-----
+------------+-------------------... | IgPgTg_to_XYZ | python | colour-science/colour | colour/models/igpgtg.py | https://github.com/colour-science/colour/blob/master/colour/models/igpgtg.py | BSD-3-Clause |
def XYZ_to_IPT(XYZ: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to *IPT* colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
*IPT* colourspace array.
Notes
-----
+--------... |
Convert from *CIE XYZ* tristimulus values to *IPT* colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
*IPT* colourspace array.
Notes
-----
+------------+-----------------------+-----------------+
| *... | XYZ_to_IPT | python | colour-science/colour | colour/models/ipt.py | https://github.com/colour-science/colour/blob/master/colour/models/ipt.py | BSD-3-Clause |
def IPT_to_XYZ(IPT: ArrayLike) -> NDArrayFloat:
"""
Convert from *IPT* colourspace to *CIE XYZ* tristimulus values.
Parameters
----------
IPT
*IPT* colourspace array.
Returns
-------
:class:`numpy.ndarray`
*CIE XYZ* tristimulus values.
Notes
-----
+--------... |
Convert from *IPT* colourspace to *CIE XYZ* tristimulus values.
Parameters
----------
IPT
*IPT* colourspace array.
Returns
-------
:class:`numpy.ndarray`
*CIE XYZ* tristimulus values.
Notes
-----
+------------+-----------------------+-----------------+
| *... | IPT_to_XYZ | python | colour-science/colour | colour/models/ipt.py | https://github.com/colour-science/colour/blob/master/colour/models/ipt.py | BSD-3-Clause |
def IPT_hue_angle(IPT: ArrayLike) -> NDArrayFloat:
"""
Compute the hue angle in degrees from *IPT* colourspace.
Parameters
----------
IPT
*IPT* colourspace array.
Returns
-------
:class:`numpy.ndarray`
Hue angle in degrees.
Notes
-----
+------------+-------... |
Compute the hue angle in degrees from *IPT* colourspace.
Parameters
----------
IPT
*IPT* colourspace array.
Returns
-------
:class:`numpy.ndarray`
Hue angle in degrees.
Notes
-----
+------------+-----------------------+-----------------+
| **Domain** | **S... | IPT_hue_angle | python | colour-science/colour | colour/models/ipt.py | https://github.com/colour-science/colour/blob/master/colour/models/ipt.py | BSD-3-Clause |
def XYZ_to_Izazbz(
XYZ_D65: ArrayLike,
constants: Structure | None = None,
method: (Literal["Safdar 2017", "Safdar 2021", "ZCAM"] | str) = "Safdar 2017",
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to :math:`I_za_zb_z`
colourspace.
Parameters
----------
XYZ_D65
... |
Convert from *CIE XYZ* tristimulus values to :math:`I_za_zb_z`
colourspace.
Parameters
----------
XYZ_D65
*CIE XYZ* tristimulus values under
*CIE Standard Illuminant D Series D65*.
constants
:math:`J_za_zb_z` colourspace constants.
method
Computation method,... | XYZ_to_Izazbz | python | colour-science/colour | colour/models/jzazbz.py | https://github.com/colour-science/colour/blob/master/colour/models/jzazbz.py | BSD-3-Clause |
def Izazbz_to_XYZ(
Izazbz: ArrayLike,
constants: Structure | None = None,
method: (Literal["Safdar 2017", "Safdar 2021", "ZCAM"] | str) = "Safdar 2017",
) -> NDArrayFloat:
"""
Convert from :math:`I_za_zb_z` colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
Izazbz
... |
Convert from :math:`I_za_zb_z` colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
Izazbz
:math:`I_za_zb_z` colourspace array where :math:`I_z` is the
achromatic response, :math:`a_z` is redness-greenness and
:math:`b_z` is yellowness-blueness.
constants
... | Izazbz_to_XYZ | python | colour-science/colour | colour/models/jzazbz.py | https://github.com/colour-science/colour/blob/master/colour/models/jzazbz.py | BSD-3-Clause |
def XYZ_to_Jzazbz(
XYZ_D65: ArrayLike, constants: Structure = CONSTANTS_JZAZBZ_SAFDAR2017
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to :math:`J_za_zb_z`
colourspace.
Parameters
----------
XYZ_D65
*CIE XYZ* tristimulus values under
*CIE Standard Illumin... |
Convert from *CIE XYZ* tristimulus values to :math:`J_za_zb_z`
colourspace.
Parameters
----------
XYZ_D65
*CIE XYZ* tristimulus values under
*CIE Standard Illuminant D Series D65*.
constants
:math:`J_za_zb_z` colourspace constants.
Returns
-------
:class:`n... | XYZ_to_Jzazbz | python | colour-science/colour | colour/models/jzazbz.py | https://github.com/colour-science/colour/blob/master/colour/models/jzazbz.py | BSD-3-Clause |
def Jzazbz_to_XYZ(
Jzazbz: ArrayLike, constants: Structure = CONSTANTS_JZAZBZ_SAFDAR2017
) -> NDArrayFloat:
"""
Convert from :math:`J_za_zb_z` colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
Jzazbz
:math:`J_za_zb_z` colourspace array where :math:`J_z` is Lightnes... |
Convert from :math:`J_za_zb_z` colourspace to *CIE XYZ* tristimulus
values.
Parameters
----------
Jzazbz
:math:`J_za_zb_z` colourspace array where :math:`J_z` is Lightness,
:math:`a_z` is redness-greenness and :math:`b_z` is
yellowness-blueness.
constants
:math... | Jzazbz_to_XYZ | python | colour-science/colour | colour/models/jzazbz.py | https://github.com/colour-science/colour/blob/master/colour/models/jzazbz.py | BSD-3-Clause |
def XYZ_to_Oklab(XYZ: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to *Oklab* colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
*Oklab* colourspace array.
Notes
-----
+--... |
Convert from *CIE XYZ* tristimulus values to *Oklab* colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
*Oklab* colourspace array.
Notes
-----
+------------+-----------------------+-----------------+
... | XYZ_to_Oklab | python | colour-science/colour | colour/models/oklab.py | https://github.com/colour-science/colour/blob/master/colour/models/oklab.py | BSD-3-Clause |
def Oklab_to_XYZ(Lab: ArrayLike) -> NDArrayFloat:
"""
Convert from *Oklab* colourspace to *CIE XYZ* tristimulus values.
Parameters
----------
Lab
*Oklab* colourspace array.
Returns
-------
:class:`numpy.ndarray`
*CIE XYZ* tristimulus values.
Notes
-----
+--... |
Convert from *Oklab* colourspace to *CIE XYZ* tristimulus values.
Parameters
----------
Lab
*Oklab* colourspace array.
Returns
-------
:class:`numpy.ndarray`
*CIE XYZ* tristimulus values.
Notes
-----
+------------+-----------------------+-----------------+
... | Oklab_to_XYZ | python | colour-science/colour | colour/models/oklab.py | https://github.com/colour-science/colour/blob/master/colour/models/oklab.py | BSD-3-Clause |
def XYZ_to_OSA_UCS(XYZ: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values under the
*CIE 1964 10 Degree Standard Observer* to *OSA UCS* colourspace.
The lightness axis, *L* is usually in range [-9, 5] and centered around
middle gray (Munsell N/6). The yellow-blue axis, *j* i... |
Convert from *CIE XYZ* tristimulus values under the
*CIE 1964 10 Degree Standard Observer* to *OSA UCS* colourspace.
The lightness axis, *L* is usually in range [-9, 5] and centered around
middle gray (Munsell N/6). The yellow-blue axis, *j* is usually in range
[-15, 15]. The red-green axis, *g* i... | XYZ_to_OSA_UCS | python | colour-science/colour | colour/models/osa_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/osa_ucs.py | BSD-3-Clause |
def OSA_UCS_to_XYZ(
Ljg: ArrayLike, optimisation_kwargs: dict | None = None
) -> NDArrayFloat:
"""
Convert from *OSA UCS* colourspace to *CIE XYZ* tristimulus values under
the *CIE 1964 10 Degree Standard Observer*.
Parameters
----------
Ljg
*OSA UCS* :math:`Ljg` lightness, jaune (y... |
Convert from *OSA UCS* colourspace to *CIE XYZ* tristimulus values under
the *CIE 1964 10 Degree Standard Observer*.
Parameters
----------
Ljg
*OSA UCS* :math:`Ljg` lightness, jaune (yellowness), and greenness.
optimisation_kwargs
Parameters for :func:`scipy.optimize.fmin` defi... | OSA_UCS_to_XYZ | python | colour-science/colour | colour/models/osa_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/osa_ucs.py | BSD-3-Clause |
def projective_transformation(a: ArrayLike, Q: ArrayLike) -> NDArrayFloat:
"""
Transform specified array :math:`a` with the projective transformation matrix
:math:`Q`.
Parameters
----------
a
Array :math:`a` to apply the projective transformation matrix onto.
Q
Projective tr... |
Transform specified array :math:`a` with the projective transformation matrix
:math:`Q`.
Parameters
----------
a
Array :math:`a` to apply the projective transformation matrix onto.
Q
Projective transformation matrix :math:`Q`.
Returns
-------
:class:`numpy.ndarray`... | projective_transformation | python | colour-science/colour | colour/models/prolab.py | https://github.com/colour-science/colour/blob/master/colour/models/prolab.py | BSD-3-Clause |
def XYZ_to_ProLab(
XYZ: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to *ProLab* colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
... |
Convert from *CIE XYZ* tristimulus values to *ProLab* colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
illuminant
Reference *illuminant* *CIE xy* chromaticity coordinates or *CIE xyY*
colourspace array.
Returns
-------
:class:`numpy.ndarray`... | XYZ_to_ProLab | python | colour-science/colour | colour/models/prolab.py | https://github.com/colour-science/colour/blob/master/colour/models/prolab.py | BSD-3-Clause |
def ProLab_to_XYZ(
ProLab: ArrayLike,
illuminant: ArrayLike = CCS_ILLUMINANTS["CIE 1931 2 Degree Standard Observer"][
"D65"
],
) -> NDArrayFloat:
"""
Convert from *ProLab* colourspace to *CIE XYZ* tristimulus values.
Parameters
----------
ProLab
*ProLab* colourspace arra... |
Convert from *ProLab* colourspace to *CIE XYZ* tristimulus values.
Parameters
----------
ProLab
*ProLab* colourspace array.
illuminant
Reference *illuminant* *CIE xy* chromaticity coordinates or *CIE xyY*
colourspace array.
Returns
-------
:class:`numpy.ndarray... | ProLab_to_XYZ | python | colour-science/colour | colour/models/prolab.py | https://github.com/colour-science/colour/blob/master/colour/models/prolab.py | BSD-3-Clause |
def XYZ_to_IPT_Ragoo2021(XYZ: ArrayLike) -> NDArrayFloat:
"""
Convert from *CIE XYZ* tristimulus values to
*Ragoo and Farup (2021)* *Optimised IPT* colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
*Ragoo and... |
Convert from *CIE XYZ* tristimulus values to
*Ragoo and Farup (2021)* *Optimised IPT* colourspace.
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
Returns
-------
:class:`numpy.ndarray`
*Ragoo and Farup (2021)* *Optimised IPT* colourspace array.
Notes
... | XYZ_to_IPT_Ragoo2021 | python | colour-science/colour | colour/models/ragoo2021.py | https://github.com/colour-science/colour/blob/master/colour/models/ragoo2021.py | BSD-3-Clause |
def IPT_Ragoo2021_to_XYZ(IPT: ArrayLike) -> NDArrayFloat:
"""
Convert from *Ragoo and Farup (2021)* *Optimised IPT* colourspace to
*CIE XYZ* tristimulus values.
Parameters
----------
IPT
*Ragoo and Farup (2021)* *Optimised IPT* colourspace array.
Returns
-------
:class:`num... |
Convert from *Ragoo and Farup (2021)* *Optimised IPT* colourspace to
*CIE XYZ* tristimulus values.
Parameters
----------
IPT
*Ragoo and Farup (2021)* *Optimised IPT* colourspace array.
Returns
-------
:class:`numpy.ndarray`
*CIE XYZ* tristimulus values.
Notes
... | IPT_Ragoo2021_to_XYZ | python | colour-science/colour | colour/models/ragoo2021.py | https://github.com/colour-science/colour/blob/master/colour/models/ragoo2021.py | BSD-3-Clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.