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 oetf_inverse_BlackmagicFilmGeneration5(
y: ArrayLike,
constants: Structure = CONSTANTS_BLACKMAGIC_FILM_GENERATION_5,
) -> NDArrayFloat:
"""
Define the *Blackmagic Film Generation 5* inverse opto-electronic transfer
function (OETF).
Parameters
----------
y
Encoded value :math... |
Define the *Blackmagic Film Generation 5* inverse opto-electronic transfer
function (OETF).
Parameters
----------
y
Encoded value :math:`y`.
constants
*Blackmagic Film Generation 5* constants.
Returns
-------
:class:`numpy.ndarray`
Linear light value :math`... | oetf_inverse_BlackmagicFilmGeneration5 | python | colour-science/colour | colour/models/rgb/transfer_functions/blackmagic_design.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/blackmagic_design.py | BSD-3-Clause |
def log_encoding_CanonLog_v1(
x: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Canon Log* v1 log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear da... |
Define the *Canon Log* v1 log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the *Canon Log* non-linear data is encoded as normalised code
... | log_encoding_CanonLog_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_decoding_CanonLog_v1(
clog: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Canon Log* v1 log decoding curve / electro-optical transfer
function.
Parameters
----------
clog
*Ca... |
Define the *Canon Log* v1 log decoding curve / electro-optical transfer
function.
Parameters
----------
clog
*Canon Log* non-linear data.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the *Canon Log* non-linear data is encoded with normal... | log_decoding_CanonLog_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_encoding_CanonLog_v1_2(
x: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Canon Log* v1.2 log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linea... |
Define the *Canon Log* v1.2 log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the *Canon Log* non-linear data is encoded as normalised cod... | log_encoding_CanonLog_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_decoding_CanonLog_v1_2(
clog: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Canon Log* v1.2 log decoding curve / electro-optical transfer
function.
Parameters
----------
clog
... |
Define the *Canon Log* v1.2 log decoding curve / electro-optical transfer
function.
Parameters
----------
clog
*Canon Log* non-linear data.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the *Canon Log* non-linear data is encoded with norm... | log_decoding_CanonLog_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_encoding_CanonLog(
x: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
method: Literal["v1", "v1.2"] | str = "v1.2",
) -> NDArrayFloat:
"""
Define the *Canon Log* log encoding curve / opto-electronic transfer
function.
Param... |
Define the *Canon Log* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the *Canon Log* non-linear data is encoded as normalised code
... | log_encoding_CanonLog | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_decoding_CanonLog(
clog: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
method: Literal["v1", "v1.2"] | str = "v1.2",
) -> NDArrayFloat:
"""
Define the *Canon Log* log decoding curve / electro-optical transfer
function.
Pa... |
Define the *Canon Log* log decoding curve / electro-optical transfer
function.
Parameters
----------
clog
*Canon Log* non-linear data.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the *Canon Log* non-linear data is encoded with normalise... | log_decoding_CanonLog | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_encoding_CanonLog2_v1(
x: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Canon Log 2* v1 log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear... |
Define the *Canon Log 2* v1 log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the *Canon Log 2* non-linear data is encoded as normalised
... | log_encoding_CanonLog2_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_decoding_CanonLog2_v1(
clog2: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Canon Log 2* v1 log decoding curve / electro-optical transfer
function.
Parameters
----------
clog2
... |
Define the *Canon Log 2* v1 log decoding curve / electro-optical transfer
function.
Parameters
----------
clog2
*Canon Log 2* non-linear data.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the *Canon Log 2* non-linear data is encoded with... | log_decoding_CanonLog2_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_encoding_CanonLog2_v1_2(
x: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Canon Log 2* v1.2 log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Li... |
Define the *Canon Log 2* v1.2 log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the *Canon Log 2* non-linear data is encoded as normalised... | log_encoding_CanonLog2_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_decoding_CanonLog2_v1_2(
clog2: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Canon Log 2* v1.2 log decoding curve / electro-optical transfer
function.
Parameters
----------
clog2
... |
Define the *Canon Log 2* v1.2 log decoding curve / electro-optical transfer
function.
Parameters
----------
clog2
*Canon Log 2* non-linear data.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the *Canon Log 2* non-linear data is encoded wi... | log_decoding_CanonLog2_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_encoding_CanonLog2(
x: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
method: Literal["v1", "v1.2"] | str = "v1.2",
) -> NDArrayFloat:
"""
Define the *Canon Log 2* log encoding curve / opto-electronic transfer
function.
Pa... |
Define the *Canon Log 2* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the *Canon Log 2* non-linear data is encoded as normalised
... | log_encoding_CanonLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_decoding_CanonLog2(
clog2: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
method: Literal["v1", "v1.2"] | str = "v1.2",
) -> NDArrayFloat:
"""
Define the *Canon Log 2* log decoding curve / electro-optical transfer
function.
... |
Define the *Canon Log 2* log decoding curve / electro-optical transfer
function.
Parameters
----------
clog2
*Canon Log 2* non-linear data.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the *Canon Log 2* non-linear data is encoded with no... | log_decoding_CanonLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_encoding_CanonLog3_v1(
x: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Canon Log 3* v1 log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear... |
Define the *Canon Log 3* v1 log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the *Canon Log 3* non-linear data is encoded as normalised c... | log_encoding_CanonLog3_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_decoding_CanonLog3_v1(
clog3: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Canon Log 3* v1 log decoding curve / electro-optical transfer
function.
Parameters
----------
clog3
... |
Define the *Canon Log 3* v1 log decoding curve / electro-optical transfer
function.
Parameters
----------
clog3
*Canon Log 3* non-linear data.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the *Canon Log 3* non-linear data is encoded with... | log_decoding_CanonLog3_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_encoding_CanonLog3_v1_2(
x: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Canon Log 3* v1.2 log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Li... |
Define the *Canon Log 3* v1.2 log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the *Canon Log 3* non-linear data is encoded as normalised... | log_encoding_CanonLog3_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_decoding_CanonLog3_v1_2(
clog3: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Canon Log 3* v1.2 log decoding curve / electro-optical transfer
function.
Parameters
----------
clog3
... |
Define the *Canon Log 3* v1.2 log decoding curve / electro-optical transfer
function.
Parameters
----------
clog3
*Canon Log 3* non-linear data.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the *Canon Log 3* non-linear data is encoded wi... | log_decoding_CanonLog3_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_encoding_CanonLog3(
x: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
method: Literal["v1", "v1.2"] | str = "v1.2",
) -> NDArrayFloat:
"""
Define the *Canon Log 3* log encoding curve / opto-electronic transfer
function.
Pa... |
Define the *Canon Log 3* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the *Canon Log 3* non-linear data is encoded as normalised
... | log_encoding_CanonLog3 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_decoding_CanonLog3(
clog3: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
method: Literal["v1", "v1.2"] | str = "v1.2",
) -> NDArrayFloat:
"""
Define the *Canon Log 3* log decoding curve / electro-optical transfer
function.
... |
Define the *Canon Log 3* log decoding curve / electro-optical transfer
function.
Parameters
----------
clog3
*Canon Log 3* non-linear data.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the *Canon Log 3* non-linear data is encoded with no... | log_decoding_CanonLog3 | python | colour-science/colour | colour/models/rgb/transfer_functions/canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/canon.py | BSD-3-Clause |
def log_encoding_Cineon(
x: ArrayLike,
black_offset: ArrayLike = 10 ** ((95 - 685) / 300),
) -> NDArrayFloat:
"""
Define the *Cineon* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
black_offset
Black offset.
... |
Define the *Cineon* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
black_offset
Black offset.
Returns
-------
:class:`numpy.ndarray`
Non-linear data :math:`y`.
Notes
-----
+------------+--... | log_encoding_Cineon | python | colour-science/colour | colour/models/rgb/transfer_functions/cineon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/cineon.py | BSD-3-Clause |
def log_decoding_Cineon(
y: ArrayLike,
black_offset: ArrayLike = 10 ** ((95 - 685) / 300),
) -> NDArrayFloat:
"""
Define the *Cineon* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
black_offset
Black offset.... |
Define the *Cineon* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
black_offset
Black offset.
Returns
-------
:class:`numpy.ndarray`
Linear data :math:`x`.
Notes
-----
+------------+--... | log_decoding_Cineon | python | colour-science/colour | colour/models/rgb/transfer_functions/cineon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/cineon.py | BSD-3-Clause |
def CV_range(
bit_depth: int = 10, is_legal: bool = False, is_int: bool = False
) -> NDArrayReal:
"""
Return the code value :math:`CV` range for specified bit-depth, range legality
and representation.
Parameters
----------
bit_depth
Bit-depth of the code value :math:`CV` range.
... |
Return the code value :math:`CV` range for specified bit-depth, range legality
and representation.
Parameters
----------
bit_depth
Bit-depth of the code value :math:`CV` range.
is_legal
Whether the code value :math:`CV` range is legal.
is_int
Whether the code value ... | CV_range | python | colour-science/colour | colour/models/rgb/transfer_functions/common.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/common.py | BSD-3-Clause |
def legal_to_full(
CV: ArrayLike,
bit_depth: int = 10,
in_int: bool = False,
out_int: bool = False,
) -> NDArrayReal:
"""
Convert specified code value :math:`CV` or float equivalent of a code value at
a specified bit-depth from legal range (studio swing) to full range
(full swing).
... |
Convert specified code value :math:`CV` or float equivalent of a code value at
a specified bit-depth from legal range (studio swing) to full range
(full swing).
Parameters
----------
CV
Legal range code value :math:`CV` or float equivalent of a code value
at a specified bit-dep... | legal_to_full | python | colour-science/colour | colour/models/rgb/transfer_functions/common.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/common.py | BSD-3-Clause |
def full_to_legal(
CV: ArrayLike,
bit_depth: int = 10,
in_int: bool = False,
out_int: bool = False,
) -> NDArrayReal:
"""
Convert specified code value :math:`CV` or float equivalent of a code value at
a specified bit-depth from full range (full swing) to legal range
(studio swing).
... |
Convert specified code value :math:`CV` or float equivalent of a code value at
a specified bit-depth from full range (full swing) to legal range
(studio swing).
Parameters
----------
CV
Full range code value :math:`CV` or float equivalent of a code value at
a specified bit-dept... | full_to_legal | python | colour-science/colour | colour/models/rgb/transfer_functions/common.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/common.py | BSD-3-Clause |
def oetf_DaVinciIntermediate(
L: ArrayLike,
constants: Structure = CONSTANTS_DAVINCI_INTERMEDIATE,
) -> NDArrayFloat:
"""
Define the *DaVinci Intermediate* opto-electronic transfer function.
Parameters
----------
L
Linear light value :math`L`.
constants
*DaVinci Intermed... |
Define the *DaVinci Intermediate* opto-electronic transfer function.
Parameters
----------
L
Linear light value :math`L`.
constants
*DaVinci Intermediate* colour component transfer function constants.
Returns
-------
:class:`numpy.ndarray`
Encoded value :math:`... | oetf_DaVinciIntermediate | python | colour-science/colour | colour/models/rgb/transfer_functions/davinci_intermediate.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/davinci_intermediate.py | BSD-3-Clause |
def oetf_inverse_DaVinciIntermediate(
V: ArrayLike,
constants: Structure = CONSTANTS_DAVINCI_INTERMEDIATE,
) -> NDArrayFloat:
"""
Define the *DaVinci Intermediate* inverse opto-electronic transfer
function (OETF).
Parameters
----------
V
Encoded value :math:`V`.
constants
... |
Define the *DaVinci Intermediate* inverse opto-electronic transfer
function (OETF).
Parameters
----------
V
Encoded value :math:`V`.
constants
*DaVinci Intermediate* colour component transfer function constants.
Returns
-------
:class:`numpy.ndarray`
Linear... | oetf_inverse_DaVinciIntermediate | python | colour-science/colour | colour/models/rgb/transfer_functions/davinci_intermediate.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/davinci_intermediate.py | BSD-3-Clause |
def eotf_inverse_DCDM(XYZ: ArrayLike, out_int: bool = False) -> NDArrayReal:
"""
Define the *DCDM* inverse electro-optical transfer function (EOTF).
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
out_int
Whether to return value as int code value or float equivalent of a... |
Define the *DCDM* inverse electro-optical transfer function (EOTF).
Parameters
----------
XYZ
*CIE XYZ* tristimulus values.
out_int
Whether to return value as int code value or float equivalent of a
code value at a specified bit-depth.
Returns
-------
:class:`n... | eotf_inverse_DCDM | python | colour-science/colour | colour/models/rgb/transfer_functions/dcdm.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/dcdm.py | BSD-3-Clause |
def eotf_DCDM(
XYZ_p: ArrayLike,
in_int: bool = False,
) -> NDArrayFloat:
"""
Define the *DCDM* electro-optical transfer function (EOTF).
Parameters
----------
XYZ_p
Non-linear *CIE XYZ'* tristimulus values.
in_int
Whether to treat the input value as int code value or fl... |
Define the *DCDM* electro-optical transfer function (EOTF).
Parameters
----------
XYZ_p
Non-linear *CIE XYZ'* tristimulus values.
in_int
Whether to treat the input value as int code value or float
equivalent of a code value at a specified bit-depth.
Returns
-------... | eotf_DCDM | python | colour-science/colour | colour/models/rgb/transfer_functions/dcdm.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/dcdm.py | BSD-3-Clause |
def eotf_inverse_DICOMGSDF(
L: ArrayLike,
out_int: bool = False,
constants: Structure = CONSTANTS_DICOMGSDF,
) -> NDArrayReal:
"""
Define the *DICOM - Grayscale Standard Display Function* inverse
electro-optical transfer function (EOTF).
Parameters
----------
L
*Luminance* :... |
Define the *DICOM - Grayscale Standard Display Function* inverse
electro-optical transfer function (EOTF).
Parameters
----------
L
*Luminance* :math:`L`.
out_int
Whether to return value as int code value or float equivalent of a
code value at a specified bit-depth.
... | eotf_inverse_DICOMGSDF | python | colour-science/colour | colour/models/rgb/transfer_functions/dicom_gsdf.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/dicom_gsdf.py | BSD-3-Clause |
def eotf_DICOMGSDF(
J: ArrayLike,
in_int: bool = False,
constants: Structure = CONSTANTS_DICOMGSDF,
) -> NDArrayFloat:
"""
Define the *DICOM - Grayscale Standard Display Function* electro-optical
transfer function (EOTF).
Parameters
----------
J
Just-Noticeable Difference (J... |
Define the *DICOM - Grayscale Standard Display Function* electro-optical
transfer function (EOTF).
Parameters
----------
J
Just-Noticeable Difference (JND) Index, :math:`j`.
in_int
Whether to treat the input value as int code value or float
equivalent of a code value at... | eotf_DICOMGSDF | python | colour-science/colour | colour/models/rgb/transfer_functions/dicom_gsdf.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/dicom_gsdf.py | BSD-3-Clause |
def log_encoding_DJIDLog(x: ArrayLike) -> NDArrayFloat:
"""
Define the *DJI D-Log* log encoding curve.
Parameters
----------
x
Linear reflection data :math`x`.
Returns
-------
:class:`numpy.ndarray`
*DJI D-Log* encoded data :math:`y`.
References
----------
... |
Define the *DJI D-Log* log encoding curve.
Parameters
----------
x
Linear reflection data :math`x`.
Returns
-------
:class:`numpy.ndarray`
*DJI D-Log* encoded data :math:`y`.
References
----------
:cite:`DJI2017`
Notes
-----
+------------+--------... | log_encoding_DJIDLog | python | colour-science/colour | colour/models/rgb/transfer_functions/dji_d_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/dji_d_log.py | BSD-3-Clause |
def log_decoding_DJIDLog(y: ArrayLike) -> NDArrayFloat:
"""
Define the *DJI D-Log* log decoding curve.
Parameters
----------
y
*DJI D-Log* encoded data :math:`y`.
Returns
-------
:class:`numpy.ndarray`
Linear reflection data :math`x`.
References
----------
... |
Define the *DJI D-Log* log decoding curve.
Parameters
----------
y
*DJI D-Log* encoded data :math:`y`.
Returns
-------
:class:`numpy.ndarray`
Linear reflection data :math`x`.
References
----------
:cite:`DJI2017`
Notes
-----
+------------+--------... | log_decoding_DJIDLog | python | colour-science/colour | colour/models/rgb/transfer_functions/dji_d_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/dji_d_log.py | BSD-3-Clause |
def exponent_function_basic(
x: ArrayLike,
exponent: ArrayLike = 1,
style: (
Literal[
"basicFwd",
"basicRev",
"basicMirrorFwd",
"basicMirrorRev",
"basicPassThruFwd",
"basicPassThruRev",
]
| str
) = "basicFwd"... |
Define the *basic* exponent transfer function.
Parameters
----------
x
Data to undergo the basic exponent conversion.
exponent
Exponent value used for the conversion.
style
Defines the behaviour for the transfer function to operate:
- *basicFwd*: *Basic Forwa... | exponent_function_basic | python | colour-science/colour | colour/models/rgb/transfer_functions/exponent.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/exponent.py | BSD-3-Clause |
def exponent_function_monitor_curve(
x: ArrayLike,
exponent: ArrayLike = 1,
offset: ArrayLike = 0,
style: (
Literal[
"monCurveFwd",
"monCurveRev",
"monCurveMirrorFwd",
"monCurveMirrorRev",
]
| str
) = "monCurveFwd",
) -> NDArray... |
Define the *Monitor Curve* exponent transfer function.
Parameters
----------
x
Data to undergo the monitor curve exponential conversion.
exponent
Exponent value used for the conversion.
offset
Offset value used for the conversion.
style
Defines the behaviour... | exponent_function_monitor_curve | python | colour-science/colour | colour/models/rgb/transfer_functions/exponent.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/exponent.py | BSD-3-Clause |
def monitor_curve_forward(
x: NDArrayFloat, offset: NDArrayFloat, exponent: NDArrayFloat
) -> NDArrayFloat:
"""Define the *Monitor Curve Forward* function."""
with sdiv_mode():
x_break = sdiv(offset, exponent - 1)
y = as_float_array(x * s)
y[x >= x_break] = ((x... | Define the *Monitor Curve Forward* function. | monitor_curve_forward | python | colour-science/colour | colour/models/rgb/transfer_functions/exponent.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/exponent.py | BSD-3-Clause |
def monitor_curve_reverse(
y: NDArrayFloat, offset: NDArrayFloat, exponent: NDArrayFloat
) -> NDArrayFloat:
"""Define the *Monitor Curve Reverse* function."""
with sdiv_mode():
y_break = (
sdiv(exponent * offset, (exponent - 1) * (1 + offset))
) ** ex... | Define the *Monitor Curve Reverse* function. | monitor_curve_reverse | python | colour-science/colour | colour/models/rgb/transfer_functions/exponent.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/exponent.py | BSD-3-Clause |
def log_encoding_FilmicPro6(t: ArrayLike) -> NDArrayFloat:
"""
Define the *FiLMiC Pro 6* log encoding curve / opto-electronic transfer
function.
Parameters
----------
t
Linear data :math:`t`.
Returns
-------
:class:`numpy.ndarray`
Non-linear data :math:`y`.
Not... |
Define the *FiLMiC Pro 6* log encoding curve / opto-electronic transfer
function.
Parameters
----------
t
Linear data :math:`t`.
Returns
-------
:class:`numpy.ndarray`
Non-linear data :math:`y`.
Notes
-----
+------------+-----------------------+-----------... | log_encoding_FilmicPro6 | python | colour-science/colour | colour/models/rgb/transfer_functions/filmic_pro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/filmic_pro.py | BSD-3-Clause |
def _log_decoding_FilmicPro6_interpolator() -> Extrapolator:
"""
Return the *FiLMiC Pro 6* log decoding curve / electro-optical transfer
function interpolator and caches it if not existing.
Returns
-------
:class:`colour.Extrapolator`
*FiLMiC Pro 6* log decoding curve / electro-optical ... |
Return the *FiLMiC Pro 6* log decoding curve / electro-optical transfer
function interpolator and caches it if not existing.
Returns
-------
:class:`colour.Extrapolator`
*FiLMiC Pro 6* log decoding curve / electro-optical transfer
function interpolator.
| _log_decoding_FilmicPro6_interpolator | python | colour-science/colour | colour/models/rgb/transfer_functions/filmic_pro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/filmic_pro.py | BSD-3-Clause |
def log_decoding_FilmicPro6(y: ArrayLike) -> NDArrayFloat:
"""
Define the *FiLMiC Pro 6* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
Returns
-------
:class:`numpy.ndarray`
Linear data :math:`t`.
Not... |
Define the *FiLMiC Pro 6* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
Returns
-------
:class:`numpy.ndarray`
Linear data :math:`t`.
Notes
-----
+------------+-----------------------+-----------... | log_decoding_FilmicPro6 | python | colour-science/colour | colour/models/rgb/transfer_functions/filmic_pro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/filmic_pro.py | BSD-3-Clause |
def log_encoding_FilmLightTLog(
x: ArrayLike,
w: float = 128.0,
g: float = 16.0,
o: float = 0.075,
) -> NDArrayFloat:
"""
Define the *FilmLight T-Log* log encoding curve.
Parameters
----------
x
Linear reflection data :math`x`.
w
Value of :math:`x` for :math:`t =... |
Define the *FilmLight T-Log* log encoding curve.
Parameters
----------
x
Linear reflection data :math`x`.
w
Value of :math:`x` for :math:`t = 1.0`.
g
Gradient at :math:`x = 0.0`.
o
Value of :math:`t` for :math:`x = 0.0`.
Returns
-------
:class:`... | log_encoding_FilmLightTLog | python | colour-science/colour | colour/models/rgb/transfer_functions/filmlight_t_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/filmlight_t_log.py | BSD-3-Clause |
def log_decoding_FilmLightTLog(
t: ArrayLike,
w: float = 128.0,
g: float = 16.0,
o: float = 0.075,
) -> NDArrayFloat:
"""
Define the *FilmLight T-Log* log decoding curve.
Parameters
----------
t
Non-linear data :math:`t`.
w
Value of :math:`x` for :math:`t = 1.0`.... |
Define the *FilmLight T-Log* log decoding curve.
Parameters
----------
t
Non-linear data :math:`t`.
w
Value of :math:`x` for :math:`t = 1.0`.
g
Gradient at :math:`x = 0.0`.
o
Value of :math:`t` for :math:`x = 0.0`.
Returns
-------
:class:`numpy.... | log_decoding_FilmLightTLog | python | colour-science/colour | colour/models/rgb/transfer_functions/filmlight_t_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/filmlight_t_log.py | BSD-3-Clause |
def log_encoding_FLog(
in_r: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
constants: Structure = CONSTANTS_FLOG,
) -> NDArrayFloat:
"""
Define the *Fujifilm F-Log* log encoding curve / opto-electronic transfer
function.
Paramete... |
Define the *Fujifilm F-Log* log encoding curve / opto-electronic transfer
function.
Parameters
----------
in_r
Linear reflection data :math`in`.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the non-linear *Fujifilm F-Log* data :math:`ou... | log_encoding_FLog | python | colour-science/colour | colour/models/rgb/transfer_functions/fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/fujifilm_f_log.py | BSD-3-Clause |
def log_decoding_FLog(
out_r: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
constants: Structure = CONSTANTS_FLOG,
) -> NDArrayFloat:
"""
Define the *Fujifilm F-Log* log decoding curve / electro-optical transfer
function.
Paramet... |
Define the *Fujifilm F-Log* log decoding curve / electro-optical transfer
function.
Parameters
----------
out_r
Non-linear data :math:`out`.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the non-linear *Fujifilm F-Log* data :math:`out` is... | log_decoding_FLog | python | colour-science/colour | colour/models/rgb/transfer_functions/fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/fujifilm_f_log.py | BSD-3-Clause |
def log_encoding_FLog2(
in_r: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
constants: Structure = CONSTANTS_FLOG2,
) -> NDArrayFloat:
"""
Define the *Fujifilm F-Log2* log encoding curve / opto-electronic transfer
function.
Param... |
Define the *Fujifilm F-Log2* log encoding curve / opto-electronic transfer
function.
Parameters
----------
in_r
Linear reflection data :math`in`.
bit_depth
Bit depth used for conversion.
out_normalised_code_value
Whether the non-linear *Fujifilm F-Log2* data :math:`... | log_encoding_FLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/fujifilm_f_log.py | BSD-3-Clause |
def log_decoding_FLog2(
out_r: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
constants: Structure = CONSTANTS_FLOG2,
) -> NDArrayFloat:
"""
Define the *Fujifilm F-Log2* log decoding curve / electro-optical transfer
function.
Para... |
Define the *Fujifilm F-Log2* log decoding curve / electro-optical transfer
function.
Parameters
----------
out_r
Non-linear data :math:`out`.
bit_depth
Bit depth used for conversion.
in_normalised_code_value
Whether the non-linear *Fujifilm F-Log2* data :math:`out` ... | log_decoding_FLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/fujifilm_f_log.py | BSD-3-Clause |
def gamma_function(
a: ArrayLike,
exponent: ArrayLike = 1,
negative_number_handling: (
Literal["Clamp", "Indeterminate", "Mirror", "Preserve"] | str
) = "Indeterminate",
) -> NDArrayFloat:
"""
Define a typical gamma encoding / decoding function.
Parameters
----------
a
... |
Define a typical gamma encoding / decoding function.
Parameters
----------
a
Array to encode / decode.
exponent
Encoding / decoding exponent.
negative_number_handling
Defines the behaviour for ``a`` negative numbers and / or the
definition return value:
... | gamma_function | python | colour-science/colour | colour/models/rgb/transfer_functions/gamma.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/gamma.py | BSD-3-Clause |
def log_encoding_Protune(x: ArrayLike) -> NDArrayFloat:
"""
Define the *Protune* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
Returns
-------
:class:`numpy.ndarray`
Non-linear data :math:`y`.
Notes
-... |
Define the *Protune* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
Returns
-------
:class:`numpy.ndarray`
Non-linear data :math:`y`.
Notes
-----
+------------+-----------------------+---------------+... | log_encoding_Protune | python | colour-science/colour | colour/models/rgb/transfer_functions/gopro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/gopro.py | BSD-3-Clause |
def log_decoding_Protune(y: ArrayLike) -> NDArrayFloat:
"""
Define the *Protune* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
Returns
-------
:class:`numpy.ndarray`
Linear data :math:`x`.
Notes
-... |
Define the *Protune* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
Returns
-------
:class:`numpy.ndarray`
Linear data :math:`x`.
Notes
-----
+------------+-----------------------+---------------+... | log_decoding_Protune | python | colour-science/colour | colour/models/rgb/transfer_functions/gopro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/gopro.py | BSD-3-Clause |
def oetf_BT1361(L: ArrayLike) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.1361* extended color gamut system
opto-electronic transfer function (OETF).
Parameters
----------
L
Scene *Luminance* :math:`L`.
Returns
-------
:class:`numpy.ndarray`
Corresponding n... |
Define *Recommendation ITU-R BT.1361* extended color gamut system
opto-electronic transfer function (OETF).
Parameters
----------
L
Scene *Luminance* :math:`L`.
Returns
-------
:class:`numpy.ndarray`
Corresponding non-linear primary signal :math:`E'`.
Notes
--... | oetf_BT1361 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_1361.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_1361.py | BSD-3-Clause |
def oetf_inverse_BT1361(E_p: ArrayLike) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.1361* extended color gamut system inverse
opto-electronic transfer functions (OETF).
Parameters
----------
E_p
Non-linear primary signal :math:`E'`.
Returns
-------
:class:`numpy.nd... |
Define *Recommendation ITU-R BT.1361* extended color gamut system inverse
opto-electronic transfer functions (OETF).
Parameters
----------
E_p
Non-linear primary signal :math:`E'`.
Returns
-------
:class:`numpy.ndarray`
Corresponding scene *Luminance* :math:`L`.
N... | oetf_inverse_BT1361 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_1361.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_1361.py | BSD-3-Clause |
def eotf_inverse_BT1886(L: ArrayLike, L_B: float = 0, L_W: float = 1) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.1886* inverse electro-optical transfer
function (EOTF).
Parameters
----------
L
Screen luminance in :math:`cd/m^2`.
L_B
Screen luminance for black.
... |
Define *Recommendation ITU-R BT.1886* inverse electro-optical transfer
function (EOTF).
Parameters
----------
L
Screen luminance in :math:`cd/m^2`.
L_B
Screen luminance for black.
L_W
Screen luminance for white.
Returns
-------
:class:`numpy.ndarray`
... | eotf_inverse_BT1886 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_1886.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_1886.py | BSD-3-Clause |
def eotf_BT1886(V: ArrayLike, L_B: float = 0, L_W: float = 1) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.1886* electro-optical transfer function
(EOTF).
Parameters
----------
V
Input video signal level (normalised, black at :math:`V = 0`, to white
at :math:`V = 1`. For... |
Define *Recommendation ITU-R BT.1886* electro-optical transfer function
(EOTF).
Parameters
----------
V
Input video signal level (normalised, black at :math:`V = 0`, to white
at :math:`V = 1`. For content mastered per
*Recommendation ITU-R BT.709*, 10-bit digital code value... | eotf_BT1886 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_1886.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_1886.py | BSD-3-Clause |
def oetf_BT2020(
E: ArrayLike,
is_12_bits_system: bool = False,
constants: Structure = CONSTANTS_BT2020,
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2020* opto-electronic transfer function
(OETF).
Parameters
----------
E
Voltage :math:`E` normalised by the referen... |
Define *Recommendation ITU-R BT.2020* opto-electronic transfer function
(OETF).
Parameters
----------
E
Voltage :math:`E` normalised by the reference white level and
proportional to the implicit light intensity that would be detected
with a reference camera colour channel R... | oetf_BT2020 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2020.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2020.py | BSD-3-Clause |
def oetf_inverse_BT2020(
E_p: ArrayLike,
is_12_bits_system: bool = False,
constants: Structure = CONSTANTS_BT2020,
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2020* inverse opto-electronic transfer
function (OETF).
Parameters
----------
E_p
Non-linear signal :math... |
Define *Recommendation ITU-R BT.2020* inverse opto-electronic transfer
function (OETF).
Parameters
----------
E_p
Non-linear signal :math:`E'`.
is_12_bits_system
*BT.709* *alpha* and *beta* constants are used if system is not 12-bit.
constants
*Recommendation ITU-R ... | oetf_inverse_BT2020 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2020.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2020.py | BSD-3-Clause |
def ootf_BT2100_PQ(E: ArrayLike) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference PQ* opto-optical transfer
function (OOTF / OOCF).
The OOTF maps relative scene linear light to display linear light.
Parameters
----------
E
:math:`E = {R_S, G_S, B_S; Y_S; or I_S... |
Define *Recommendation ITU-R BT.2100* *Reference PQ* opto-optical transfer
function (OOTF / OOCF).
The OOTF maps relative scene linear light to display linear light.
Parameters
----------
E
:math:`E = {R_S, G_S, B_S; Y_S; or I_S}` is the signal determined by
scene light and sc... | ootf_BT2100_PQ | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def ootf_inverse_BT2100_PQ(F_D: ArrayLike) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference PQ* inverse opto-optical
transfer function (OOTF / OOCF).
Parameters
----------
F_D
:math:`F_D` is the luminance of a displayed linear component
(:math:`R_D`, :math:`... |
Define *Recommendation ITU-R BT.2100* *Reference PQ* inverse opto-optical
transfer function (OOTF / OOCF).
Parameters
----------
F_D
:math:`F_D` is the luminance of a displayed linear component
(:math:`R_D`, :math:`G_D`, :math:`B_D`; :math:`Y_D`; or :math:`I_D`).
Returns
-... | ootf_inverse_BT2100_PQ | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def oetf_BT2100_HLG(
E: ArrayLike, constants: Structure = CONSTANTS_BT2100_HLG
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference HLG* opto-electrical
transfer function (OETF).
The OETF maps relative scene linear light into the non-linear *HLG* signal
value.
Parameters... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* opto-electrical
transfer function (OETF).
The OETF maps relative scene linear light into the non-linear *HLG* signal
value.
Parameters
----------
E
:math:`E` is the signal for each colour component
:math:`{R_S, G_S, B_S... | oetf_BT2100_HLG | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def oetf_inverse_BT2100_HLG(
E_p: ArrayLike, constants: Structure = CONSTANTS_BT2100_HLG
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference HLG* inverse
opto-electrical transfer function (OETF).
Parameters
----------
E_p
:math:`E'` is the resulting non-linear si... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* inverse
opto-electrical transfer function (OETF).
Parameters
----------
E_p
:math:`E'` is the resulting non-linear signal :math:`{R', G', B'}`.
constants
*Recommendation ITU-R BT.2100* *Reference HLG* constants.
Returns... | oetf_inverse_BT2100_HLG | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def black_level_lift_BT2100_HLG(
L_B: float = 0, L_W: float = 1000, gamma: float | None = None
) -> float:
"""
Return the *Reference HLG* black level lift :math:`\\beta` for specified
display luminance for black, nominal peak luminance and system gamma value.
Parameters
----------
L_B
... |
Return the *Reference HLG* black level lift :math:`\beta` for specified
display luminance for black, nominal peak luminance and system gamma value.
Parameters
----------
L_B
:math:`L_B` is the display luminance for black in :math:`cd/m^2`.
L_W
:math:`L_W` is nominal peak lumina... | black_level_lift_BT2100_HLG | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def eotf_BT2100_HLG_1(
E_p: ArrayLike,
L_B: float = 0,
L_W: float = 1000,
gamma: float | None = None,
constants: Structure = CONSTANTS_BT2100_HLG,
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference HLG* electro-optical
transfer function (EOTF) as specified in *ITU-R ... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* electro-optical
transfer function (EOTF) as specified in *ITU-R BT.2100-1*.
The EOTF maps the non-linear *HLG* signal into display light.
Parameters
----------
E_p
:math:`E'` is the non-linear signal :math:`{R', G', B'}` as defined... | eotf_BT2100_HLG_1 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def eotf_BT2100_HLG_2(
E_p: ArrayLike,
L_B: float = 0,
L_W: float = 1000,
gamma: float | None = None,
constants: Structure = CONSTANTS_BT2100_HLG,
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference HLG* electro-optical
transfer function (EOTF) as specified in *ITU-R ... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* electro-optical
transfer function (EOTF) as specified in *ITU-R BT.2100-2* with the
modified black level behaviour.
The EOTF maps the non-linear *HLG* signal into display light.
Parameters
----------
E_p
:math:`E'` is the non-l... | eotf_BT2100_HLG_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def eotf_BT2100_HLG(
E_p: ArrayLike,
L_B: float = 0,
L_W: float = 1000,
gamma: float | None = None,
constants: Structure = CONSTANTS_BT2100_HLG,
method: (Literal["ITU-R BT.2100-1", "ITU-R BT.2100-2"] | str) = "ITU-R BT.2100-2",
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100*... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* electro-optical
transfer function (EOTF).
The EOTF maps the non-linear *HLG* signal into display light.
Parameters
----------
E_p
:math:`E'` denotes a non-linear colour value :math:`{R', G', B'}` or
:math:`{L', M', S'}` in ... | eotf_BT2100_HLG | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def eotf_inverse_BT2100_HLG_1(
F_D: ArrayLike,
L_B: float = 0,
L_W: float = 1000,
gamma: float | None = None,
constants: Structure = CONSTANTS_BT2100_HLG,
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference HLG* inverse
electro-optical transfer function (EOTF) as spec... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* inverse
electro-optical transfer function (EOTF) as specified in
*ITU-R BT.2100-1*.
Parameters
----------
F_D
Luminance :math:`F_D` of a displayed linear component
:math:`{R_D, G_D, B_D}` or :math:`Y_D` or :math:`I_D`, in
... | eotf_inverse_BT2100_HLG_1 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def eotf_inverse_BT2100_HLG_2(
F_D: ArrayLike,
L_B: float = 0,
L_W: float = 1000,
gamma: float | None = None,
constants: Structure = CONSTANTS_BT2100_HLG,
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference HLG* inverse
electro-optical transfer function (EOTF) as spec... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* inverse
electro-optical transfer function (EOTF) as specified in
*ITU-R BT.2100-2* with the modified black level behaviour.
Parameters
----------
F_D
Luminance :math:`F_D` of a displayed linear component
:math:`{R_D, G_D, B_... | eotf_inverse_BT2100_HLG_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def eotf_inverse_BT2100_HLG(
F_D: ArrayLike,
L_B: float = 0,
L_W: float = 1000,
gamma: float | None = None,
constants: Structure = CONSTANTS_BT2100_HLG,
method: (Literal["ITU-R BT.2100-1", "ITU-R BT.2100-2"] | str) = "ITU-R BT.2100-2",
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R ... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* inverse
electro-optical transfer function (EOTF).
Parameters
----------
F_D
Luminance :math:`F_D` of a displayed linear component
:math:`{R_D, G_D, B_D}` or :math:`Y_D` or :math:`I_D`, in
:math:`cd/m^2`.
L_B
... | eotf_inverse_BT2100_HLG | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def ootf_BT2100_HLG_1(
E: ArrayLike,
L_B: float = 0,
L_W: float = 1000,
gamma: float | None = None,
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference HLG* opto-optical
transfer function (OOTF / OOCF) as specified in *ITU-R BT.2100-1*.
The OOTF maps relative scene l... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* opto-optical
transfer function (OOTF / OOCF) as specified in *ITU-R BT.2100-1*.
The OOTF maps relative scene linear light to display linear light.
Parameters
----------
E
:math:`E` is the signal for each colour component
:m... | ootf_BT2100_HLG_1 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def ootf_BT2100_HLG_2(
E: ArrayLike,
L_W: float = 1000,
gamma: float | None = None,
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference HLG* opto-optical
transfer function (OOTF / OOCF) as specified in *ITU-R BT.2100-2*.
The OOTF maps relative scene linear light to displ... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* opto-optical
transfer function (OOTF / OOCF) as specified in *ITU-R BT.2100-2*.
The OOTF maps relative scene linear light to display linear light.
Parameters
----------
E
:math:`E` is the signal for each colour component
:m... | ootf_BT2100_HLG_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def ootf_BT2100_HLG(
E: ArrayLike,
L_B: float = 0,
L_W: float = 1000,
gamma: float | None = None,
method: (Literal["ITU-R BT.2100-1", "ITU-R BT.2100-2"] | str) = "ITU-R BT.2100-2",
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference HLG* opto-optical
transfer function... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* opto-optical
transfer function (OOTF / OOCF).
The OOTF maps relative scene linear light to display linear light.
Parameters
----------
E
:math:`E` is the signal for each colour component
:math:`{R_S, G_S, B_S}` proportional... | ootf_BT2100_HLG | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def ootf_inverse_BT2100_HLG_1(
F_D: ArrayLike,
L_B: float = 0,
L_W: float = 1000,
gamma: float | None = None,
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference HLG* inverse opto-optical
transfer function (OOTF / OOCF) as specified in *ITU-R BT.2100-1*.
Parameters
... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* inverse opto-optical
transfer function (OOTF / OOCF) as specified in *ITU-R BT.2100-1*.
Parameters
----------
F_D
:math:`F_D` is the luminance of a displayed linear component
:math:`{R_D, G_D, or B_D}`, in :math:`cd/m^2`.
L_... | ootf_inverse_BT2100_HLG_1 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def ootf_inverse_BT2100_HLG_2(
F_D: ArrayLike,
L_W: float = 1000,
gamma: float | None = None,
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference HLG* inverse opto-optical
transfer function (OOTF / OOCF) as specified in *ITU-R BT.2100-2*.
Parameters
----------
F_... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* inverse opto-optical
transfer function (OOTF / OOCF) as specified in *ITU-R BT.2100-2*.
Parameters
----------
F_D
:math:`F_D` is the luminance of a displayed linear component
:math:`{R_D, G_D, or B_D}`, in :math:`cd/m^2`.
L_... | ootf_inverse_BT2100_HLG_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def ootf_inverse_BT2100_HLG(
F_D: ArrayLike,
L_B: float = 0,
L_W: float = 1000,
gamma: float | None = None,
method: (Literal["ITU-R BT.2100-1", "ITU-R BT.2100-2"] | str) = "ITU-R BT.2100-2",
) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.2100* *Reference HLG* inverse opto-optical
... |
Define *Recommendation ITU-R BT.2100* *Reference HLG* inverse opto-optical
transfer function (OOTF / OOCF).
Parameters
----------
F_D
:math:`F_D` is the luminance of a displayed linear component
:math:`{R_D, G_D, or B_D}`, in :math:`cd/m^2`.
L_B
:math:`L_B` is the displ... | ootf_inverse_BT2100_HLG | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_2100.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_2100.py | BSD-3-Clause |
def oetf_BT601(L: ArrayLike) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.601-7* opto-electronic transfer function
(OETF).
Parameters
----------
L
*Luminance* :math:`L` of the image.
Returns
-------
:class:`numpy.ndarray`
Corresponding electrical signal :mat... |
Define *Recommendation ITU-R BT.601-7* opto-electronic transfer function
(OETF).
Parameters
----------
L
*Luminance* :math:`L` of the image.
Returns
-------
:class:`numpy.ndarray`
Corresponding electrical signal :math:`E`.
Notes
-----
+------------+-------... | oetf_BT601 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_601.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_601.py | BSD-3-Clause |
def oetf_inverse_BT601(E: ArrayLike) -> NDArrayFloat:
"""
Define *Recommendation ITU-R BT.601-7* inverse opto-electronic transfer
function (OETF).
Parameters
----------
E
Electrical signal :math:`E`.
Returns
-------
:class:`numpy.ndarray`
Corresponding *luminance* :... |
Define *Recommendation ITU-R BT.601-7* inverse opto-electronic transfer
function (OETF).
Parameters
----------
E
Electrical signal :math:`E`.
Returns
-------
:class:`numpy.ndarray`
Corresponding *luminance* :math:`L` of the image.
Notes
-----
+------------... | oetf_inverse_BT601 | python | colour-science/colour | colour/models/rgb/transfer_functions/itur_bt_601.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itur_bt_601.py | BSD-3-Clause |
def oetf_H273_Log(L_c: ArrayLike) -> NDArrayFloat:
"""
Define *Recommendation ITU-T H.273* opto-electronic transfer function
(OETF) for logarithmic encoding (100:1 range).
Parameters
----------
L_c
Scene *Luminance* :math:`L_c`.
Returns
-------
:class:`numpy.ndarray`
... |
Define *Recommendation ITU-T H.273* opto-electronic transfer function
(OETF) for logarithmic encoding (100:1 range).
Parameters
----------
L_c
Scene *Luminance* :math:`L_c`.
Returns
-------
:class:`numpy.ndarray`
Corresponding electrical signal :math:`V`.
Notes
... | oetf_H273_Log | python | colour-science/colour | colour/models/rgb/transfer_functions/itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itut_h_273.py | BSD-3-Clause |
def oetf_inverse_H273_Log(V: ArrayLike) -> NDArrayFloat:
"""
Define *Recommendation ITU-T H.273* inverse-opto-electronic transfer
function (OETF) for logarithmic encoding (100:1 range).
Parameters
----------
V
Electrical signal :math:`V`.
Returns
-------
:class:`numpy.ndarr... |
Define *Recommendation ITU-T H.273* inverse-opto-electronic transfer
function (OETF) for logarithmic encoding (100:1 range).
Parameters
----------
V
Electrical signal :math:`V`.
Returns
-------
:class:`numpy.ndarray`
Corresponding scene *Luminance* :math:`L_c`.
No... | oetf_inverse_H273_Log | python | colour-science/colour | colour/models/rgb/transfer_functions/itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itut_h_273.py | BSD-3-Clause |
def oetf_H273_LogSqrt(L_c: ArrayLike) -> NDArrayFloat:
"""
Define *Recommendation ITU-T H.273* opto-electronic transfer function
(OETF) for logarithmic encoding (100\\*Sqrt(10):1 range).
Parameters
----------
L_c
Scene *Luminance* :math:`L_c`.
Returns
-------
:class:`numpy.... |
Define *Recommendation ITU-T H.273* opto-electronic transfer function
(OETF) for logarithmic encoding (100\*Sqrt(10):1 range).
Parameters
----------
L_c
Scene *Luminance* :math:`L_c`.
Returns
-------
:class:`numpy.ndarray`
Corresponding electrical signal :math:`V`.
... | oetf_H273_LogSqrt | python | colour-science/colour | colour/models/rgb/transfer_functions/itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itut_h_273.py | BSD-3-Clause |
def oetf_inverse_H273_LogSqrt(V: ArrayLike) -> NDArrayFloat:
"""
Define *Recommendation ITU-T H.273* inverse-opto-electronic transfer
function (OETF) for logarithmic encoding (100\\*Sqrt(10):1 range).
Parameters
----------
V
Electrical signal :math:`V`.
Returns
-------
:cla... |
Define *Recommendation ITU-T H.273* inverse-opto-electronic transfer
function (OETF) for logarithmic encoding (100\*Sqrt(10):1 range).
Parameters
----------
V
Electrical signal :math:`V`.
Returns
-------
:class:`numpy.ndarray`
Corresponding scene *Luminance* :math:`L_c... | oetf_inverse_H273_LogSqrt | python | colour-science/colour | colour/models/rgb/transfer_functions/itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itut_h_273.py | BSD-3-Clause |
def oetf_H273_IEC61966_2(L_c: ArrayLike) -> NDArrayFloat:
"""
Define *Recommendation ITU-T H.273* opto-electronic transfer function
(OETF) for *IEC 61966-2* family of transfer functions (*2-1 sRGB*,
*2-1 sYCC*, *2-4 xvYCC*).
Parameters
----------
L_c
Scene *Luminance* :math:`L_c`.
... |
Define *Recommendation ITU-T H.273* opto-electronic transfer function
(OETF) for *IEC 61966-2* family of transfer functions (*2-1 sRGB*,
*2-1 sYCC*, *2-4 xvYCC*).
Parameters
----------
L_c
Scene *Luminance* :math:`L_c`.
Returns
-------
:class:`numpy.ndarray`
Corres... | oetf_H273_IEC61966_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itut_h_273.py | BSD-3-Clause |
def oetf_inverse_H273_IEC61966_2(V: ArrayLike) -> NDArrayFloat:
"""
Define *Recommendation ITU-T H.273* inverse opto-electronic transfer
function (OETF) for *IEC 61966-2* family of transfer functions (*2-1 sRGB*,
*2-1 sYCC*, *2-4 xvYCC*).
Parameters
----------
V
Electrical signal :m... |
Define *Recommendation ITU-T H.273* inverse opto-electronic transfer
function (OETF) for *IEC 61966-2* family of transfer functions (*2-1 sRGB*,
*2-1 sYCC*, *2-4 xvYCC*).
Parameters
----------
V
Electrical signal :math:`V`.
Returns
-------
:class:`numpy.ndarray`
Co... | oetf_inverse_H273_IEC61966_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itut_h_273.py | BSD-3-Clause |
def eotf_inverse_H273_ST428_1(L_o: ArrayLike) -> NDArrayFloat:
"""
Define *Recommendation ITU-T H.273* inverse electro-optical transfer
function (EOTF) for *SMPTE ST 428-1 (2019)*.
Parameters
----------
L_o
Output display *Luminance* :math:`L_o` of the image.
Returns
-------
... |
Define *Recommendation ITU-T H.273* inverse electro-optical transfer
function (EOTF) for *SMPTE ST 428-1 (2019)*.
Parameters
----------
L_o
Output display *Luminance* :math:`L_o` of the image.
Returns
-------
:class:`numpy.ndarray`
Corresponding electrical signal :math... | eotf_inverse_H273_ST428_1 | python | colour-science/colour | colour/models/rgb/transfer_functions/itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itut_h_273.py | BSD-3-Clause |
def eotf_H273_ST428_1(V: ArrayLike) -> NDArrayFloat:
"""
Define the *SMPTE ST 428-1 (2019)* electro-optical transfer function (EOTF).
Parameters
----------
V
Electrical signal :math:`V`.
Returns
-------
:class:`numpy.ndarray`
Corresponding output display *Luminance* :ma... |
Define the *SMPTE ST 428-1 (2019)* electro-optical transfer function (EOTF).
Parameters
----------
V
Electrical signal :math:`V`.
Returns
-------
:class:`numpy.ndarray`
Corresponding output display *Luminance* :math:`L_o` of the image.
Notes
-----
- The func... | eotf_H273_ST428_1 | python | colour-science/colour | colour/models/rgb/transfer_functions/itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/itut_h_273.py | BSD-3-Clause |
def log_encoding_LLog(
LSR: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
constants: Structure = CONSTANTS_LLOG,
) -> NDArrayFloat:
"""
Define the *Leica L-Log* log encoding curve / opto-electronic transfer
function.
Parameters
... |
Define the *Leica L-Log* log encoding curve / opto-electronic transfer
function.
Parameters
----------
LSR
Linear scene reflection :math:`LSR` values.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the non-linear *Leica L-Log* data :math:... | log_encoding_LLog | python | colour-science/colour | colour/models/rgb/transfer_functions/leica_l_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/leica_l_log.py | BSD-3-Clause |
def log_decoding_LLog(
LLog: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
constants: Structure = CONSTANTS_LLOG,
) -> NDArrayFloat:
"""
Define the *Leica L-Log* log decoding curve / electro-optical transfer
function.
Parameters
... |
Define the *Leica L-Log* log decoding curve / electro-optical transfer
function.
Parameters
----------
LLog
*L-Log* 10-bit equivalent code value :math:`L-Log`.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the non-linear *Leica L-Log* dat... | log_decoding_LLog | python | colour-science/colour | colour/models/rgb/transfer_functions/leica_l_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/leica_l_log.py | BSD-3-Clause |
def logarithmic_function_basic(
x: ArrayLike,
style: (
Literal["log10", "antiLog10", "log2", "antiLog2", "logB", "antiLogB"] | str
) = "log2",
base: int = 2,
) -> NDArrayFloat:
"""
Define the basic logarithmic function.
Parameters
----------
x
The data to undergo bas... |
Define the basic logarithmic function.
Parameters
----------
x
The data to undergo basic logarithmic conversion.
style
Defines the behaviour for the logarithmic function to operate:
- *log10*: Applies a base 10 logarithm to the passed value.
- *antiLog10*: Appl... | logarithmic_function_basic | python | colour-science/colour | colour/models/rgb/transfer_functions/log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/log.py | BSD-3-Clause |
def logarithmic_function_quasilog(
x: ArrayLike,
style: Literal["linToLog", "logToLin"] | str = "linToLog",
base: int = 2,
log_side_slope: float = 1,
lin_side_slope: float = 1,
log_side_offset: float = 0,
lin_side_offset: float = 0,
) -> NDArrayFloat:
"""
Define the quasilog logarith... |
Define the quasilog logarithmic function.
Parameters
----------
x
Linear/non-linear data to undergo encoding/decoding.
style
Defines the behaviour for the logarithmic function to operate:
- *linToLog*: Applies a logarithm to convert linear data to
logarithmic... | logarithmic_function_quasilog | python | colour-science/colour | colour/models/rgb/transfer_functions/log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/log.py | BSD-3-Clause |
def logarithmic_function_camera(
x: ArrayLike,
style: (Literal["cameraLinToLog", "cameraLogToLin"] | str) = "cameraLinToLog",
base: int = 2,
log_side_slope: float = 1,
lin_side_slope: float = 1,
log_side_offset: float = 0,
lin_side_offset: float = 0,
lin_side_break: float = 0.005,
li... |
Define the camera logarithmic function.
Parameters
----------
x
Linear/non-linear data to undergo encoding/decoding.
style
Defines the behaviour for the logarithmic function to operate:
- *cameraLinToLog*: Applies a piece-wise function with logarithmic
and li... | logarithmic_function_camera | python | colour-science/colour | colour/models/rgb/transfer_functions/log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/log.py | BSD-3-Clause |
def log_encoding_Log2(
lin: ArrayLike,
middle_grey: float = 0.18,
min_exposure: float = -6.5,
max_exposure: float = 6.5,
) -> NDArrayFloat:
"""
Define the common *Log2* encoding function.
Parameters
----------
lin
Linear data to undergo encoding.
middle_grey
... |
Define the common *Log2* encoding function.
Parameters
----------
lin
Linear data to undergo encoding.
middle_grey
*Middle Grey* exposure value.
min_exposure
Minimum exposure level.
max_exposure
Maximum exposure level.
Returns
-------
:c... | log_encoding_Log2 | python | colour-science/colour | colour/models/rgb/transfer_functions/log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/log.py | BSD-3-Clause |
def log_decoding_Log2(
log_norm: ArrayLike,
middle_grey: float = 0.18,
min_exposure: float = -6.5,
max_exposure: float = 6.5,
) -> NDArrayFloat:
"""
Define the common *Log2* decoding function.
Parameters
----------
log_norm
Logarithmic data to undergo decoding.
middle_gr... |
Define the common *Log2* decoding function.
Parameters
----------
log_norm
Logarithmic data to undergo decoding.
middle_grey
*Middle Grey* exposure value.
min_exposure
Minimum exposure level.
max_exposure
Maximum exposure level.
Returns
-------
... | log_decoding_Log2 | python | colour-science/colour | colour/models/rgb/transfer_functions/log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/log.py | BSD-3-Clause |
def log_encoding_NLog(
y: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
constants: Structure = CONSTANTS_NLOG,
) -> NDArrayFloat:
"""
Define the *Nikon N-Log* log encoding curve / opto-electronic transfer
function.
Parameters
... |
Define the *Nikon N-Log* log encoding curve / opto-electronic transfer
function.
Parameters
----------
y
Reflectance :math:`y`, "y = 0.18" is equivalent to Stop 0.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the non-linear *Nikon N-Log... | log_encoding_NLog | python | colour-science/colour | colour/models/rgb/transfer_functions/nikon_n_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/nikon_n_log.py | BSD-3-Clause |
def log_decoding_NLog(
x: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
constants: Structure = CONSTANTS_NLOG,
) -> NDArrayFloat:
"""
Define the *Nikon N-Log* log decoding curve / electro-optical transfer
function.
Parameters
... |
Define the *Nikon N-Log* log decoding curve / electro-optical transfer
function.
Parameters
----------
x
*N-Log* 10-bit equivalent code value :math:`x`
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the non-linear *Nikon N-Log* data :math:... | log_decoding_NLog | python | colour-science/colour | colour/models/rgb/transfer_functions/nikon_n_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/nikon_n_log.py | BSD-3-Clause |
def log_encoding_Panalog(
x: ArrayLike,
black_offset: ArrayLike = 10 ** ((64 - 681) / 444),
) -> NDArrayFloat:
"""
Define the *Panalog* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
black_offset
Black offset.
... |
Define the *Panalog* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
black_offset
Black offset.
Returns
-------
:class:`numpy.ndarray`
Non-linear data :math:`y`.
Warnings
--------
These are... | log_encoding_Panalog | python | colour-science/colour | colour/models/rgb/transfer_functions/panalog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/panalog.py | BSD-3-Clause |
def log_decoding_Panalog(
y: ArrayLike,
black_offset: ArrayLike = 10 ** ((64 - 681) / 444),
) -> NDArrayFloat:
"""
Define the *Panalog* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
black_offset
Black offse... |
Define the *Panalog* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
black_offset
Black offset.
Returns
-------
:class:`numpy.ndarray`
Linear data :math:`x`.
Warnings
--------
These are... | log_decoding_Panalog | python | colour-science/colour | colour/models/rgb/transfer_functions/panalog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/panalog.py | BSD-3-Clause |
def log_encoding_VLog(
L_in: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
constants: Structure = CONSTANTS_VLOG,
) -> NDArrayFloat:
"""
Define the *Panasonic V-Log* log encoding curve / opto-electronic transfer
function.
Paramet... |
Define the *Panasonic V-Log* log encoding curve / opto-electronic transfer
function.
Parameters
----------
L_in
Linear reflection data :math`L_{in}`.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the non-linear *Panasonic V-Log* data :ma... | log_encoding_VLog | python | colour-science/colour | colour/models/rgb/transfer_functions/panasonic_v_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/panasonic_v_log.py | BSD-3-Clause |
def log_decoding_VLog(
V_out: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
constants: Structure = CONSTANTS_VLOG,
) -> NDArrayFloat:
"""
Define the *Panasonic V-Log* log decoding curve / electro-optical transfer
function.
Parame... |
Define the *Panasonic V-Log* log decoding curve / electro-optical transfer
function.
Parameters
----------
V_out
Non-linear data :math:`V_{out}`.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the non-linear *Panasonic V-Log* data :math:`V... | log_decoding_VLog | python | colour-science/colour | colour/models/rgb/transfer_functions/panasonic_v_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/panasonic_v_log.py | BSD-3-Clause |
def log_encoding_PivotedLog(
x: ArrayLike,
log_reference: float = 445,
linear_reference: float = 0.18,
negative_gamma: float = 0.6,
density_per_code_value: float = 0.002,
) -> NDArrayFloat:
"""
Define the *Josh Pines* style *Pivoted Log* log encoding curve /
opto-electronic transfer func... |
Define the *Josh Pines* style *Pivoted Log* log encoding curve /
opto-electronic transfer function.
Parameters
----------
x
Linear data :math:`x`.
log_reference
Log reference.
linear_reference
Linear reference.
negative_gamma
Negative gamma.
density_... | log_encoding_PivotedLog | python | colour-science/colour | colour/models/rgb/transfer_functions/pivoted_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/pivoted_log.py | BSD-3-Clause |
def log_decoding_PivotedLog(
y: ArrayLike,
log_reference: float = 445,
linear_reference: float = 0.18,
negative_gamma: float = 0.6,
density_per_code_value: float = 0.002,
) -> NDArrayFloat:
"""
Define the *Josh Pines* style *Pivoted Log* log decoding curve /
electro-optical transfer func... |
Define the *Josh Pines* style *Pivoted Log* log decoding curve /
electro-optical transfer function.
Parameters
----------
y
Non-linear data :math:`y`.
log_reference
Log reference.
linear_reference
Linear reference.
negative_gamma
Negative gamma.
dens... | log_decoding_PivotedLog | python | colour-science/colour | colour/models/rgb/transfer_functions/pivoted_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/pivoted_log.py | BSD-3-Clause |
def log_encoding_REDLog(
x: ArrayLike,
black_offset: ArrayLike = 10 ** ((0 - 1023) / 511),
) -> NDArrayFloat:
"""
Define the *REDLog* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
black_offset
Black offset.
... |
Define the *REDLog* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
black_offset
Black offset.
Returns
-------
:class:`numpy.ndarray`
Non-linear data :math:`y`.
Notes
-----
+------------+--... | log_encoding_REDLog | python | colour-science/colour | colour/models/rgb/transfer_functions/red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/red.py | BSD-3-Clause |
def log_decoding_REDLog(
y: ArrayLike,
black_offset: ArrayLike = 10 ** ((0 - 1023) / 511),
) -> NDArrayFloat:
"""
Define the *REDLog* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
black_offset
Black offset.... |
Define the *REDLog* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
black_offset
Black offset.
Returns
-------
:class:`numpy.ndarray`
Linear data :math:`x`.
Notes
-----
+------------+--... | log_decoding_REDLog | python | colour-science/colour | colour/models/rgb/transfer_functions/red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/red.py | BSD-3-Clause |
def log_encoding_REDLogFilm(
x: ArrayLike,
black_offset: ArrayLike = 10 ** ((95 - 685) / 300),
) -> NDArrayFloat:
"""
Define the *REDLogFilm* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
black_offset
Black off... |
Define the *REDLogFilm* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
black_offset
Black offset.
Returns
-------
:class:`numpy.ndarray`
Non-linear data :math:`y`.
Notes
-----
+-----------... | log_encoding_REDLogFilm | python | colour-science/colour | colour/models/rgb/transfer_functions/red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/red.py | BSD-3-Clause |
def log_decoding_REDLogFilm(
y: ArrayLike,
black_offset: ArrayLike = 10 ** ((95 - 685) / 300),
) -> NDArrayFloat:
"""
Define the *REDLogFilm* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
black_offset
Black... |
Define the *REDLogFilm* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
black_offset
Black offset.
Returns
-------
:class:`numpy.ndarray`
Linear data :math:`x`.
Notes
-----
+-----------... | log_decoding_REDLogFilm | python | colour-science/colour | colour/models/rgb/transfer_functions/red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/red.py | BSD-3-Clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.