示例#1
0
from colour.colorimetry import MultiSpectralDistributions, SpectralShape

__author__ = 'Colour Developers'
__copyright__ = 'Copyright (C) 2013-2020 - Colour Developers'
__license__ = 'New BSD License - https://opensource.org/licenses/BSD-3-Clause'
__maintainer__ = 'Colour Developers'
__email__ = '*****@*****.**'
__status__ = 'Production'

__all__ = [
    'SPECTRAL_SHAPE_sRGB_MALLETT2019', 'DATA_BASIS_FUNCTIONS_sRGB_MALLETT2019',
    'MSDS_BASIS_FUNCTIONS_sRGB_MALLETT2019'
]

SPECTRAL_SHAPE_sRGB_MALLETT2019 = SpectralShape(380, 780, 5)
SPECTRAL_SHAPE_sRGB_MALLETT2019.__doc__ = """
Shape for *Mallett and Yuksel (2019)* *sRGB* colourspace basis functions:
(380, 780, 5).

References
----------
:cite:`Mallett2019`

SPECTRAL_SHAPE_sRGB_MALLETT2019 : SpectralShape
"""

DATA_BASIS_FUNCTIONS_sRGB_MALLETT2019 = np.array([
    [0.32745741382705500, 0.33186171308587400, 0.34068079154805200],
    [0.32375057827054100, 0.32968818775939900, 0.34656118662485200],
    [0.31343946125157700, 0.32786002162469700, 0.35870049314035100],
    [0.28887938275526500, 0.31917358023175600, 0.39194702658819500],
示例#2
0
文件: otsu2018.py 项目: wenh06/colour
from colour.colorimetry import SpectralShape

__author__ = 'Colour Developers'
__copyright__ = 'Copyright (C) 2013-2020 - Colour Developers'
__license__ = 'New BSD License - https://opensource.org/licenses/BSD-3-Clause'
__maintainer__ = 'Colour Developers'
__email__ = '*****@*****.**'
__status__ = 'Production'

__all__ = [
    'SPECTRAL_SHAPE_OTSU2018', 'BASIS_FUNCTIONS_OTSU2018',
    'CLUSTER_MEANS_OTSU2018', 'SELECTOR_ARRAY_OTSU2018'
]

SPECTRAL_SHAPE_OTSU2018 = SpectralShape(380, 730, 10)
SPECTRAL_SHAPE_OTSU2018.__doc__ = """
The spectral shape of *Otsu et al. (2018)* basis functions and means.

References
----------
:cite:`Otsu2018`

SPECTRAL_SHAPE_OTSU2018 : SpectralShape
"""

BASIS_FUNCTIONS_OTSU2018 = np.array([
    [
        [
            0.033359794,
            0.069816766,
            0.145858662,