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 log_encoding_Log3G10_v1(x: ArrayLike) -> NDArrayFloat:
"""
Define the *Log3G10* *v1* log encoding curve / opto-electronic transfer
function, the curve used in *REDCINE-X PRO Beta 42* and *Resolve 12.5.2*.
Parameters
----------
x
Linear data :math:`x`.
Returns
-------
:c... |
Define the *Log3G10* *v1* log encoding curve / opto-electronic transfer
function, the curve used in *REDCINE-X PRO Beta 42* and *Resolve 12.5.2*.
Parameters
----------
x
Linear data :math:`x`.
Returns
-------
:class:`numpy.ndarray`
Non-linear data :math:`y`.
Notes... | log_encoding_Log3G10_v1 | 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_Log3G10_v1(y: ArrayLike) -> NDArrayFloat:
"""
Define the *Log3G10* *v1* log decoding curve / electro-optical transfer
function, the curve used in *REDCINE-X PRO Beta 42* and *Resolve 12.5.2*.
Parameters
----------
y
Non-linear data :math:`y`.
Returns
-------
... |
Define the *Log3G10* *v1* log decoding curve / electro-optical transfer
function, the curve used in *REDCINE-X PRO Beta 42* and *Resolve 12.5.2*.
Parameters
----------
y
Non-linear data :math:`y`.
Returns
-------
:class:`numpy.ndarray`
Linear data :math:`x`.
Notes... | log_decoding_Log3G10_v1 | 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_Log3G10_v2(x: ArrayLike) -> NDArrayFloat:
"""
Define the *Log3G10* *v2* log encoding curve / opto-electronic transfer
function, the current curve in *REDCINE-X PRO*.
Parameters
----------
x
Linear data :math:`x`.
Returns
-------
:class:`numpy.ndarray`
... |
Define the *Log3G10* *v2* log encoding curve / opto-electronic transfer
function, the current curve in *REDCINE-X PRO*.
Parameters
----------
x
Linear data :math:`x`.
Returns
-------
:class:`numpy.ndarray`
Non-linear data :math:`y`.
Notes
-----
+----------... | log_encoding_Log3G10_v2 | 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_Log3G10_v2(y: ArrayLike) -> NDArrayFloat:
"""
Define the *Log3G10* *v2* log decoding curve / electro-optical transfer
function, the current curve in *REDCINE-X PRO*.
Parameters
----------
y
Non-linear data :math:`y`.
Returns
-------
:class:`numpy.ndarray`
... |
Define the *Log3G10* *v2* log decoding curve / electro-optical transfer
function, the current curve in *REDCINE-X PRO*.
Parameters
----------
y
Non-linear data :math:`y`.
Returns
-------
:class:`numpy.ndarray`
Linear data :math:`x`.
Notes
-----
+----------... | log_decoding_Log3G10_v2 | 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_Log3G10_v3(x: ArrayLike) -> NDArrayFloat:
"""
Define the *Log3G10* *v3* log encoding curve / opto-electronic transfer
function, the curve described in the *RedLog3G10* Whitepaper.
Parameters
----------
x
Linear data :math:`x`.
Returns
-------
:class:`numpy.... |
Define the *Log3G10* *v3* log encoding curve / opto-electronic transfer
function, the curve described in the *RedLog3G10* Whitepaper.
Parameters
----------
x
Linear data :math:`x`.
Returns
-------
:class:`numpy.ndarray`
Non-linear data :math:`y`.
Notes
-----
... | log_encoding_Log3G10_v3 | 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_Log3G10_v3(y: ArrayLike) -> NDArrayFloat:
"""
Define the *Log3G10* *v3* log decoding curve / electro-optical transfer
function, the curve described in the *RedLog3G10* whitepaper.
Parameters
----------
y
Non-linear data :math:`y`.
Returns
-------
:class:`nu... |
Define the *Log3G10* *v3* log decoding curve / electro-optical transfer
function, the curve described in the *RedLog3G10* whitepaper.
Parameters
----------
y
Non-linear data :math:`y`.
Returns
-------
:class:`numpy.ndarray`
Linear data :math:`x`.
Notes
-----
... | log_decoding_Log3G10_v3 | 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_Log3G10(
x: ArrayLike,
method: Literal["v1", "v2", "v3"] | str = "v3",
) -> NDArrayFloat:
"""
Define the *Log3G10* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
method
Computation method.
... |
Define the *Log3G10* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Linear data :math:`x`.
method
Computation method.
Returns
-------
:class:`numpy.ndarray`
Non-linear data :math:`y`.
Notes
-----
+------------+-... | log_encoding_Log3G10 | 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_Log3G10(
y: ArrayLike, method: Literal["v1", "v2", "v3"] | str = "v3"
) -> NDArrayFloat:
"""
Define the *Log3G10* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
method
Computation method.
R... |
Define the *Log3G10* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear data :math:`y`.
method
Computation method.
Returns
-------
:class:`numpy.ndarray`
Linear data :math:`x`.
Notes
-----
+------------+-... | log_decoding_Log3G10 | 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_Log3G12(x: ArrayLike) -> NDArrayFloat:
"""
Define the *Log3G12* 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 *Log3G12* 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_Log3G12 | 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_Log3G12(y: ArrayLike) -> NDArrayFloat:
"""
Define the *Log3G12* 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 *Log3G12* 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_Log3G12 | 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 cctf_encoding_ROMMRGB(
X: ArrayLike, bit_depth: int = 8, out_int: bool = False
) -> NDArrayReal:
"""
Define the *ROMM RGB* encoding colour component transfer function
(Encoding CCTF).
Parameters
----------
X
Linear data :math:`X_{ROMM}`.
bit_depth
Bit-depth used for ... |
Define the *ROMM RGB* encoding colour component transfer function
(Encoding CCTF).
Parameters
----------
X
Linear data :math:`X_{ROMM}`.
bit_depth
Bit-depth used for conversion.
out_int
Whether to return value as int code value or float equivalent of a
code ... | cctf_encoding_ROMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/rimm_romm_rgb.py | BSD-3-Clause |
def cctf_decoding_ROMMRGB(
X_p: ArrayLike,
bit_depth: int = 8,
in_int: bool = False,
) -> NDArrayFloat:
"""
Define the *ROMM RGB* decoding colour component transfer function
(Encoding CCTF).
Parameters
----------
X_p
Non-linear data :math:`X'_{ROMM}`.
bit_depth
B... |
Define the *ROMM RGB* decoding colour component transfer function
(Encoding CCTF).
Parameters
----------
X_p
Non-linear data :math:`X'_{ROMM}`.
bit_depth
Bit-depth used for conversion.
in_int
Whether to treat the input value as int code value or float
equiva... | cctf_decoding_ROMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/rimm_romm_rgb.py | BSD-3-Clause |
def cctf_encoding_RIMMRGB(
X: ArrayLike,
bit_depth: int = 8,
out_int: bool = False,
E_clip: float = 2.0,
) -> NDArrayReal:
"""
Define the *RIMM RGB* encoding colour component transfer function
(Encoding CCTF).
*RIMM RGB* encoding non-linearity is based on that specified by
*Recommen... |
Define the *RIMM RGB* encoding colour component transfer function
(Encoding CCTF).
*RIMM RGB* encoding non-linearity is based on that specified by
*Recommendation ITU-R BT.709-6*.
Parameters
----------
X
Linear data :math:`X_{RIMM}`.
bit_depth
Bit-depth used for conver... | cctf_encoding_RIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/rimm_romm_rgb.py | BSD-3-Clause |
def cctf_decoding_RIMMRGB(
X_p: ArrayLike,
bit_depth: int = 8,
in_int: bool = False,
E_clip: float = 2.0,
) -> NDArrayFloat:
"""
Define the *RIMM RGB* decoding colour component transfer function
(Encoding CCTF).
Parameters
----------
X_p
Non-linear data :math:`X'_{RIMM}`... |
Define the *RIMM RGB* decoding colour component transfer function
(Encoding CCTF).
Parameters
----------
X_p
Non-linear data :math:`X'_{RIMM}`.
bit_depth
Bit-depth used for conversion.
in_int
Whether to treat the input value as int code value or float
equiva... | cctf_decoding_RIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/rimm_romm_rgb.py | BSD-3-Clause |
def oetf_SMPTE240M(L_c: ArrayLike) -> NDArrayFloat:
"""
Define *SMPTE 240M* opto-electrical transfer function (OETF).
Parameters
----------
L_c
Light input :math:`L_c` to the reference camera normalised to the
system reference white.
Returns
-------
:class:`numpy.ndarra... |
Define *SMPTE 240M* opto-electrical transfer function (OETF).
Parameters
----------
L_c
Light input :math:`L_c` to the reference camera normalised to the
system reference white.
Returns
-------
:class:`numpy.ndarray`
Video signal output :math:`V_c` of the reference... | oetf_SMPTE240M | python | colour-science/colour | colour/models/rgb/transfer_functions/smpte_240m.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/smpte_240m.py | BSD-3-Clause |
def eotf_SMPTE240M(V_r: ArrayLike) -> NDArrayFloat:
"""
Define *SMPTE 240M* electro-optical transfer function (EOTF).
Parameters
----------
V_r
Video signal level :math:`V_r` driving the reference reproducer
normalised to the system reference white.
Returns
-------
:cla... |
Define *SMPTE 240M* electro-optical transfer function (EOTF).
Parameters
----------
V_r
Video signal level :math:`V_r` driving the reference reproducer
normalised to the system reference white.
Returns
-------
:class:`numpy.ndarray`
Light output :math:`L_r` from t... | eotf_SMPTE240M | python | colour-science/colour | colour/models/rgb/transfer_functions/smpte_240m.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/smpte_240m.py | BSD-3-Clause |
def log_encoding_SLog(
x: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Sony S-Log* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Reflection or :mat... |
Define the *Sony S-Log* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Reflection or :math:`IRE / 100` input light level :math:`x` to a
camera.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the no... | log_encoding_SLog | python | colour-science/colour | colour/models/rgb/transfer_functions/sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/sony.py | BSD-3-Clause |
def log_decoding_SLog(
y: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Sony S-Log* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear *Sony S... |
Define the *Sony S-Log* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear *Sony S-Log* data :math:`y`.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the non-linear *Sony S-Log* data :math:`y` is en... | log_decoding_SLog | python | colour-science/colour | colour/models/rgb/transfer_functions/sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/sony.py | BSD-3-Clause |
def log_encoding_SLog2(
x: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Sony S-Log2* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Reflection or :m... |
Define the *Sony S-Log2* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Reflection or :math:`IRE / 100` input light level :math:`x` to a
camera.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the n... | log_encoding_SLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/sony.py | BSD-3-Clause |
def log_decoding_SLog2(
y: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Sony S-Log2* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear *Sony... |
Define the *Sony S-Log2* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear *Sony S-Log2* data :math:`y`.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the non-linear *Sony S-Log2* data :math:`y` is... | log_decoding_SLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/sony.py | BSD-3-Clause |
def log_encoding_SLog3(
x: ArrayLike,
bit_depth: int = 10,
out_normalised_code_value: bool = True,
in_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Sony S-Log3* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Reflection or :m... |
Define the *Sony S-Log3* log encoding curve / opto-electronic transfer
function.
Parameters
----------
x
Reflection or :math:`IRE / 100` input light level :math:`x` to a
camera.
bit_depth
Bit-depth used for conversion.
out_normalised_code_value
Whether the n... | log_encoding_SLog3 | python | colour-science/colour | colour/models/rgb/transfer_functions/sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/sony.py | BSD-3-Clause |
def log_decoding_SLog3(
y: ArrayLike,
bit_depth: int = 10,
in_normalised_code_value: bool = True,
out_reflection: bool = True,
) -> NDArrayFloat:
"""
Define the *Sony S-Log3* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear *Sony... |
Define the *Sony S-Log3* log decoding curve / electro-optical transfer
function.
Parameters
----------
y
Non-linear *Sony S-Log3* data :math:`y`.
bit_depth
Bit-depth used for conversion.
in_normalised_code_value
Whether the non-linear *Sony S-Log3* data :math:`y` is... | log_decoding_SLog3 | python | colour-science/colour | colour/models/rgb/transfer_functions/sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/sony.py | BSD-3-Clause |
def eotf_inverse_sRGB(L: ArrayLike) -> NDArrayFloat:
"""
Define the *IEC 61966-2-1:1999* *sRGB* inverse electro-optical transfer
function (EOTF).
Parameters
----------
L
*Luminance* :math:`L` of the image.
Returns
-------
:class:`numpy.ndarray`
Corresponding electri... |
Define the *IEC 61966-2-1:1999* *sRGB* inverse electro-optical transfer
function (EOTF).
Parameters
----------
L
*Luminance* :math:`L` of the image.
Returns
-------
:class:`numpy.ndarray`
Corresponding electrical signal :math:`V`.
Notes
-----
+------------... | eotf_inverse_sRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/srgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/srgb.py | BSD-3-Clause |
def eotf_sRGB(V: ArrayLike) -> NDArrayFloat:
"""
Define the *IEC 61966-2-1:1999* *sRGB* electro-optical transfer function
(EOTF).
Parameters
----------
V
Electrical signal :math:`V`.
Returns
-------
:class:`numpy.ndarray`
Corresponding *luminance* :math:`L` of the i... |
Define the *IEC 61966-2-1:1999* *sRGB* electro-optical transfer function
(EOTF).
Parameters
----------
V
Electrical signal :math:`V`.
Returns
-------
:class:`numpy.ndarray`
Corresponding *luminance* :math:`L` of the image.
Notes
-----
+------------+-------... | eotf_sRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/srgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/srgb.py | BSD-3-Clause |
def eotf_inverse_ST2084(
C: ArrayLike,
L_p: float = 10000,
constants: Structure = CONSTANTS_ST2084,
) -> NDArrayFloat:
"""
Define *SMPTE ST 2084:2014* optimised perceptual inverse electro-optical
transfer function (EOTF).
Parameters
----------
C
Target optical output :math:`... |
Define *SMPTE ST 2084:2014* optimised perceptual inverse electro-optical
transfer function (EOTF).
Parameters
----------
C
Target optical output :math:`C` in :math:`cd/m^2` of the ideal
reference display.
L_p
System peak luminance :math:`cd/m^2`, this parameter should s... | eotf_inverse_ST2084 | python | colour-science/colour | colour/models/rgb/transfer_functions/st_2084.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/st_2084.py | BSD-3-Clause |
def eotf_ST2084(
N: ArrayLike,
L_p: float = 10000,
constants: Structure = CONSTANTS_ST2084,
) -> NDArrayFloat:
"""
Define *SMPTE ST 2084:2014* optimised perceptual electro-optical transfer
function (EOTF).
This perceptual quantizer (PQ) has been modeled by Dolby Laboratories
using *Bart... |
Define *SMPTE ST 2084:2014* optimised perceptual electro-optical transfer
function (EOTF).
This perceptual quantizer (PQ) has been modeled by Dolby Laboratories
using *Barten (1999)* contrast sensitivity function.
Parameters
----------
N
Color value abbreviated as :math:`N`, that ... | eotf_ST2084 | python | colour-science/colour | colour/models/rgb/transfer_functions/st_2084.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/st_2084.py | BSD-3-Clause |
def log_encoding_ViperLog(x: ArrayLike) -> NDArrayFloat:
"""
Define the *Viper Log* 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 *Viper Log* 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_ViperLog | python | colour-science/colour | colour/models/rgb/transfer_functions/viper_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/viper_log.py | BSD-3-Clause |
def log_decoding_ViperLog(y: ArrayLike) -> NDArrayFloat:
"""
Define the *Viper Log* 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 *Viper Log* 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_ViperLog | python | colour-science/colour | colour/models/rgb/transfer_functions/viper_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/viper_log.py | BSD-3-Clause |
def log_encoding(
value: ArrayLike, function: LiteralLogEncoding | str = "Cineon", **kwargs: Any
) -> NDArrayFloat | NDArrayInt:
"""
Encode *scene-referred* exposure values to :math:`R'G'B'` video component
signal value using specified *log* encoding function.
Parameters
----------
value
... |
Encode *scene-referred* exposure values to :math:`R'G'B'` video component
signal value using specified *log* encoding function.
Parameters
----------
value
*Scene-referred* exposure values.
function
*Log* encoding function.
Other Parameters
----------------
kwargs
... | log_encoding | python | colour-science/colour | colour/models/rgb/transfer_functions/__init__.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/__init__.py | BSD-3-Clause |
def log_decoding(
value: ArrayLike,
function: LiteralLogDecoding | str = "Cineon",
**kwargs: Any,
) -> NDArrayFloat:
"""
Decode :math:`R'G'B'` video component signal value to *scene-referred*
exposure values using specified *log* decoding function.
Parameters
----------
value
... |
Decode :math:`R'G'B'` video component signal value to *scene-referred*
exposure values using specified *log* decoding function.
Parameters
----------
value
*Log* values.
function
*Log* decoding function.
Other Parameters
----------------
kwargs
{:func:`colo... | log_decoding | python | colour-science/colour | colour/models/rgb/transfer_functions/__init__.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/__init__.py | BSD-3-Clause |
def oetf(
value: ArrayLike, function: LiteralOETF | str = "ITU-R BT.709", **kwargs: Any
) -> NDArrayFloat:
"""
Encode estimated tristimulus values in a scene to :math:`R'G'B'` video
component signal value using specified opto-electronic transfer function
(OETF).
Parameters
----------
va... |
Encode estimated tristimulus values in a scene to :math:`R'G'B'` video
component signal value using specified opto-electronic transfer function
(OETF).
Parameters
----------
value
Value.
function
Opto-electronic transfer function (OETF).
Other Parameters
----------... | oetf | python | colour-science/colour | colour/models/rgb/transfer_functions/__init__.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/__init__.py | BSD-3-Clause |
def oetf_inverse(
value: ArrayLike,
function: LiteralOETFInverse | str = "ITU-R BT.709",
**kwargs: Any,
) -> NDArrayFloat:
"""
Decode :math:`R'G'B'` video component signal value to tristimulus values
at the display using specified inverse opto-electronic transfer function
(OETF).
Parame... |
Decode :math:`R'G'B'` video component signal value to tristimulus values
at the display using specified inverse opto-electronic transfer function
(OETF).
Parameters
----------
value
Value.
function
Inverse opto-electronic transfer function (OETF).
Other Parameters
... | oetf_inverse | python | colour-science/colour | colour/models/rgb/transfer_functions/__init__.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/__init__.py | BSD-3-Clause |
def eotf(
value: ArrayLike,
function: LiteralEOTF | str = "ITU-R BT.1886",
**kwargs: Any,
) -> NDArrayFloat:
"""
Decode :math:`R'G'B'` video component signal value to tristimulus values
at the display using specified electro-optical transfer function (EOTF).
Parameters
----------
va... |
Decode :math:`R'G'B'` video component signal value to tristimulus values
at the display using specified electro-optical transfer function (EOTF).
Parameters
----------
value
Value.
function
Electro-optical transfer function (EOTF).
Other Parameters
----------------
... | eotf | python | colour-science/colour | colour/models/rgb/transfer_functions/__init__.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/__init__.py | BSD-3-Clause |
def eotf_inverse(
value: ArrayLike,
function: LiteralEOTFInverse | str = "ITU-R BT.1886",
**kwargs: Any,
) -> NDArrayFloat | NDArrayInt:
"""
Encode estimated tristimulus values in a scene to :math:`R'G'B'` video
component signal value using specified inverse electro-optical transfer
function... |
Encode estimated tristimulus values in a scene to :math:`R'G'B'` video
component signal value using specified inverse electro-optical transfer
function (EOTF).
Parameters
----------
value
Value.
function
Inverse electro-optical transfer function (EOTF).
Other Parameter... | eotf_inverse | python | colour-science/colour | colour/models/rgb/transfer_functions/__init__.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/__init__.py | BSD-3-Clause |
def cctf_encoding(
value: ArrayLike, function: LiteralCCTFEncoding | str = "sRGB", **kwargs: Any
) -> NDArrayFloat | NDArrayInt:
"""
Encode linear :math:`RGB` values to non-linear :math:`R'G'B'` values using
specified encoding colour component transfer function (Encoding CCTF).
Parameters
-----... |
Encode linear :math:`RGB` values to non-linear :math:`R'G'B'` values using
specified encoding colour component transfer function (Encoding CCTF).
Parameters
----------
value
Linear :math:`RGB` values.
function
{:attr:`colour.CCTF_ENCODINGS`},
Encoding colour component t... | cctf_encoding | python | colour-science/colour | colour/models/rgb/transfer_functions/__init__.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/__init__.py | BSD-3-Clause |
def cctf_decoding(
value: ArrayLike,
function: LiteralCCTFDecoding | str = "sRGB",
**kwargs: Any,
) -> NDArrayFloat:
"""
Decode non-linear :math:`R'G'B'` values to linear :math:`RGB` values using
specified decoding colour component transfer function (Decoding CCTF).
Parameters
---------... |
Decode non-linear :math:`R'G'B'` values to linear :math:`RGB` values using
specified decoding colour component transfer function (Decoding CCTF).
Parameters
----------
value
Non-linear :math:`R'G'B'` values.
function
{:attr:`colour.CCTF_DECODINGS`},
Decoding colour comp... | cctf_decoding | python | colour-science/colour | colour/models/rgb/transfer_functions/__init__.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/__init__.py | BSD-3-Clause |
def ootf(
value: ArrayLike,
function: LiteralOOTF | str = "ITU-R BT.2100 PQ",
**kwargs: Any,
) -> NDArrayFloat:
"""
Map relative scene linear light to display linear light using specified
opto-optical transfer function (OOTF / OOCF).
Parameters
----------
value
Value.
fu... |
Map relative scene linear light to display linear light using specified
opto-optical transfer function (OOTF / OOCF).
Parameters
----------
value
Value.
function
Opto-optical transfer function (OOTF / OOCF).
Other Parameters
----------------
kwargs
{:func:`... | ootf | python | colour-science/colour | colour/models/rgb/transfer_functions/__init__.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/__init__.py | BSD-3-Clause |
def ootf_inverse(
value: ArrayLike,
function: LiteralOOTFInverse | str = "ITU-R BT.2100 PQ",
**kwargs: Any,
) -> NDArrayFloat:
"""
Map relative display linear light to scene linear light using specified
inverse opto-optical transfer function (OOTF / OOCF).
Parameters
----------
valu... |
Map relative display linear light to scene linear light using specified
inverse opto-optical transfer function (OOTF / OOCF).
Parameters
----------
value
Value.
function
Inverse opto-optical transfer function (OOTF / OOCF).
Other Parameters
----------------
kwargs
... | ootf_inverse | python | colour-science/colour | colour/models/rgb/transfer_functions/__init__.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/__init__.py | BSD-3-Clause |
def test_log_encoding_ACESproxy(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_encoding_ACESproxy` definition.
"""
np.testing.assert_allclose(
log_encoding_ACESproxy(0.0),
0.062561094819159,
atol=TOLERANCE_ABSOLUTE_TEST... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_encoding_ACESproxy` definition.
| test_log_encoding_ACESproxy | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_ACESproxy(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_encoding_ACESproxy` definition n-dimensional arrays support.
"""
lin_AP1 = 0.18
ACESproxy = log_encoding_ACESproxy(lin_AP1)
lin_AP1 = np.tile(lin... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_encoding_ACESproxy` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_ACESproxy | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_ACESproxy(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_encoding_ACESproxy` definition domain and range scale support.
"""
lin_AP1 = 0.18
ACESproxy = log_encoding_ACESproxy(lin_AP1)
d_r = (("refer... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_encoding_ACESproxy` definition domain and range scale support.
| test_domain_range_scale_log_encoding_ACESproxy | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_log_decoding_ACESproxy(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_decoding_ACESproxy` definition.
"""
np.testing.assert_allclose(
log_decoding_ACESproxy(0.062561094819159),
0.0,
atol=0.01,
)
... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_decoding_ACESproxy` definition.
| test_log_decoding_ACESproxy | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_ACESproxy(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_decoding_ACESproxy` definition n-dimensional arrays support.
"""
ACESproxy = 0.416422287390029
lin_AP1 = log_decoding_ACESproxy(ACESproxy)
ACESpr... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_decoding_ACESproxy` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_ACESproxy | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_ACESproxy(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_decoding_ACESproxy` definition domain and range scale support.
"""
ACESproxy = 426.0
lin_AP1 = log_decoding_ACESproxy(ACESproxy)
d_r = (("re... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_decoding_ACESproxy` definition domain and range scale support.
| test_domain_range_scale_log_decoding_ACESproxy | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_log_encoding_ACEScc(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_encoding_ACEScc` definition.
"""
np.testing.assert_allclose(
log_encoding_ACEScc(0.0),
-0.358447488584475,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_encoding_ACEScc` definition.
| test_log_encoding_ACEScc | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_ACEScc(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_encoding_ACEScc` definition n-dimensional arrays support.
"""
lin_AP1 = 0.18
ACEScc = log_encoding_ACEScc(lin_AP1)
lin_AP1 = np.tile(lin_AP1, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_encoding_ACEScc` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_ACEScc | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_ACEScc(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_encoding_ACEScc` definition domain and range scale support.
"""
lin_AP1 = 0.18
ACEScc = log_encoding_ACEScc(lin_AP1)
d_r = (("reference", 1), (... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_encoding_ACEScc` definition domain and range scale support.
| test_domain_range_scale_log_encoding_ACEScc | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_log_decoding_ACEScc(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_decoding_ACEScc` definition.
"""
np.testing.assert_allclose(
log_decoding_ACEScc(-0.358447488584475),
0.0,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_decoding_ACEScc` definition.
| test_log_decoding_ACEScc | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_ACEScc(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_decoding_ACEScc` definition n-dimensional arrays support.
"""
ACEScc = 0.413588402492442
lin_AP1 = log_decoding_ACEScc(ACEScc)
ACEScc = np.tile(ACES... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_decoding_ACEScc` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_ACEScc | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_ACEScc(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_decoding_ACEScc` definition domain and range scale support.
"""
ACEScc = 0.413588402492442
lin_AP1 = log_decoding_ACEScc(ACEScc)
d_r = (("refer... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_decoding_ACEScc` definition domain and range scale support.
| test_domain_range_scale_log_decoding_ACEScc | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_log_encoding_ACEScct(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_encoding_ACEScct` definition.
"""
np.testing.assert_allclose(
log_encoding_ACEScct(0.0),
0.072905534195835495,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_encoding_ACEScct` definition.
| test_log_encoding_ACEScct | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_ACEScct(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_encoding_ACEScct` definition n-dimensional arrays support.
"""
lin_AP1 = 0.18
ACEScct = log_encoding_ACEScct(lin_AP1)
lin_AP1 = np.tile(lin_AP1, 6)... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_encoding_ACEScct` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_ACEScct | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_ACEScct(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_encoding_ACEScct` definition domain and range scale support.
"""
lin_AP1 = 0.18
ACEScct = log_encoding_ACEScct(lin_AP1)
d_r = (("reference", 1... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_encoding_ACEScct` definition domain and range scale support.
| test_domain_range_scale_log_encoding_ACEScct | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_ACEScc_equivalency_log_encoding_ACEScct(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_encoding_ACEScct` definition ACEScc equivalency, and explicit requirement
specified by AMPAS ACES specification S-2016-001
(https://github.com/ampas/aces-dev/bl... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_encoding_ACEScct` definition ACEScc equivalency, and explicit requirement
specified by AMPAS ACES specification S-2016-001
(https://github.com/ampas/aces-dev/blob/v1.0.3/documents/LaTeX/S-2016-001/introduction.tex#L14)
| test_ACEScc_equivalency_log_encoding_ACEScct | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_log_decoding_ACEScct(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_decoding_ACEScct` definition.
"""
np.testing.assert_allclose(
log_decoding_ACEScct(0.072905534195835495),
0.0,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_decoding_ACEScct` definition.
| test_log_decoding_ACEScct | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_ACEScct(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_decoding_ACEScct` definition n-dimensional arrays support.
"""
ACEScct = 0.413588402492442
lin_AP1 = log_decoding_ACEScct(ACEScct)
ACEScct = np.til... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_decoding_ACEScct` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_ACEScct | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_ACEScct(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_decoding_ACEScct` definition domain and range scale support.
"""
ACEScc = 0.413588402492442
lin_AP1 = log_decoding_ACEScct(ACEScc)
d_r = (("re... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_decoding_ACEScct` definition domain and range scale support.
| test_domain_range_scale_log_decoding_ACEScct | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_ACEScc_equivalency_log_decoding_ACEScct(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_decoding_ACEScct` definition ACEScc equivalency, and explicit requirement
specified by AMPAS ACES specification S-2016-001
(https://github.com/ampas/aces-dev/bl... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_decoding_ACEScct` definition ACEScc equivalency, and explicit requirement
specified by AMPAS ACES specification S-2016-001
(https://github.com/ampas/aces-dev/blob/v1.0.3/documents/LaTeX/S-2016-001/introduction.tex#L14)
| test_ACEScc_equivalency_log_decoding_ACEScct | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_aces.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_aces.py | BSD-3-Clause |
def test_log_encoding_AppleLogProfile(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.\
log_encoding_AppleLogProfile` definition.
"""
np.testing.assert_allclose(
log_encoding_AppleLogProfile(0.0),
0.150476452300913,
... |
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.log_encoding_AppleLogProfile` definition.
| test_log_encoding_AppleLogProfile | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_DLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.\
log_encoding_AppleLogProfile` definition n-dimensional arrays support.
"""
R = 0.18
P = log_encoding_AppleLogProfile(R)
R = np.tile(R, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.log_encoding_AppleLogProfile` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_DLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_DLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.\
log_encoding_AppleLogProfile` definition domain and range scale support.
"""
R = 0.18
P = log_encoding_AppleLogProfile(R)
d_r = (("refer... |
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.log_encoding_AppleLogProfile` definition domain and range scale support.
| test_domain_range_scale_log_encoding_DLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | BSD-3-Clause |
def test_nan_log_encoding_DLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.\
log_encoding_AppleLogProfile` definition nan support.
"""
log_encoding_AppleLogProfile(
np.array([-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan])
) |
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.log_encoding_AppleLogProfile` definition nan support.
| test_nan_log_encoding_DLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | BSD-3-Clause |
def test_log_decoding_AppleLogProfile(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.\
log_decoding_AppleLogProfile` definition.
"""
np.testing.assert_allclose(
log_decoding_AppleLogProfile(0.150476452300913),
0.0,
... |
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.log_decoding_AppleLogProfile` definition.
| test_log_decoding_AppleLogProfile | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_DLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.\
log_decoding_AppleLogProfile` definition n-dimensional arrays support.
"""
P = 0.398764556189331
R = log_decoding_AppleLogProfile(P)
P = np.t... |
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.log_decoding_AppleLogProfile` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_DLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_DLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.\
log_decoding_AppleLogProfile` definition domain and range scale support.
"""
P = 0.398764556189331
R = log_decoding_AppleLogProfile(P)
d... |
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.log_decoding_AppleLogProfile` definition domain and range scale support.
| test_domain_range_scale_log_decoding_DLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | BSD-3-Clause |
def test_nan_log_decoding_DLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.\
log_decoding_AppleLogProfile` definition nan support.
"""
log_decoding_AppleLogProfile(
np.array([-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan])
) |
Test :func:`colour.models.rgb.transfer_functions.apple_log_profile.log_decoding_AppleLogProfile` definition nan support.
| test_nan_log_decoding_DLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py | BSD-3-Clause |
def test_oetf_ARIBSTDB67(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arib_std_b67.\
oetf_ARIBSTDB67` definition.
"""
np.testing.assert_allclose(
oetf_ARIBSTDB67(-0.25), -0.25, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allclose... |
Test :func:`colour.models.rgb.transfer_functions.arib_std_b67.oetf_ARIBSTDB67` definition.
| test_oetf_ARIBSTDB67 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arib_std_b67.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arib_std_b67.py | BSD-3-Clause |
def test_n_dimensional_oetf_ARIBSTDB67(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arib_std_b67.\
oetf_ARIBSTDB67` definition n-dimensional arrays support.
"""
E = 0.18
E_p = oetf_ARIBSTDB67(E)
E = np.tile(E, 6)
E_p = np.tile(E_p, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.arib_std_b67.oetf_ARIBSTDB67` definition n-dimensional arrays support.
| test_n_dimensional_oetf_ARIBSTDB67 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arib_std_b67.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arib_std_b67.py | BSD-3-Clause |
def test_domain_range_scale_oetf_ARIBSTDB67(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arib_std_b67.\
oetf_ARIBSTDB67` definition domain and range scale support.
"""
E = 0.18
E_p = oetf_ARIBSTDB67(E)
d_r = (("reference", 1), ("1", 1), ("100", 10... |
Test :func:`colour.models.rgb.transfer_functions.arib_std_b67.oetf_ARIBSTDB67` definition domain and range scale support.
| test_domain_range_scale_oetf_ARIBSTDB67 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arib_std_b67.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arib_std_b67.py | BSD-3-Clause |
def test_oetf_inverse_ARIBSTDB67(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arib_std_b67.\
oetf_inverse_ARIBSTDB67` definition.
"""
np.testing.assert_allclose(
oetf_inverse_ARIBSTDB67(-0.25),
-0.25,
atol=TOLERANCE_ABSOLUTE_TES... |
Test :func:`colour.models.rgb.transfer_functions.arib_std_b67.oetf_inverse_ARIBSTDB67` definition.
| test_oetf_inverse_ARIBSTDB67 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arib_std_b67.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arib_std_b67.py | BSD-3-Clause |
def test_n_dimensional_oetf_inverse_ARIBSTDB67(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arib_std_b67.\
oetf_inverse_ARIBSTDB67` definition n-dimensional arrays support.
"""
E_p = 0.212132034355964
E = oetf_inverse_ARIBSTDB67(E_p)
E_p = np.tile... |
Test :func:`colour.models.rgb.transfer_functions.arib_std_b67.oetf_inverse_ARIBSTDB67` definition n-dimensional arrays support.
| test_n_dimensional_oetf_inverse_ARIBSTDB67 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arib_std_b67.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arib_std_b67.py | BSD-3-Clause |
def test_domain_range_scale_oetf_inverse_ARIBSTDB67(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arib_std_b67.\
oetf_inverse_ARIBSTDB67` definition domain and range scale support.
"""
E_p = 0.212132034355964
E = oetf_inverse_ARIBSTDB67(E_p)
d_r = ... |
Test :func:`colour.models.rgb.transfer_functions.arib_std_b67.oetf_inverse_ARIBSTDB67` definition domain and range scale support.
| test_domain_range_scale_oetf_inverse_ARIBSTDB67 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arib_std_b67.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arib_std_b67.py | BSD-3-Clause |
def test_log_encoding_ARRILogC3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arri.\
log_encoding_ARRILogC3` definition.
"""
np.testing.assert_allclose(
log_encoding_ARRILogC3(0.0),
0.092809000000000,
atol=TOLERANCE_ABSOLUTE_TEST... |
Test :func:`colour.models.rgb.transfer_functions.arri.log_encoding_ARRILogC3` definition.
| test_log_encoding_ARRILogC3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arri.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arri.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_ARRILogC3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arri.\
log_encoding_ARRILogC3` definition n-dimensional arrays support.
"""
x = 0.18
t = log_encoding_ARRILogC3(x)
x = np.tile(x, 6)
t = np.tile(t, ... |
Test :func:`colour.models.rgb.transfer_functions.arri.log_encoding_ARRILogC3` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_ARRILogC3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arri.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arri.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_ARRILogC3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arri.\
log_encoding_ARRILogC3` definition domain and range scale support.
"""
x = 0.18
t = log_encoding_ARRILogC3(x)
d_r = (("reference", 1), ("1", 1),... |
Test :func:`colour.models.rgb.transfer_functions.arri.log_encoding_ARRILogC3` definition domain and range scale support.
| test_domain_range_scale_log_encoding_ARRILogC3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arri.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arri.py | BSD-3-Clause |
def test_log_decoding_ARRILogC3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arri.\
log_decoding_ARRILogC3` definition.
"""
np.testing.assert_allclose(
log_decoding_ARRILogC3(0.092809),
0.0,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.arri.log_decoding_ARRILogC3` definition.
| test_log_decoding_ARRILogC3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arri.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arri.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_ARRILogC3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arri.\
log_decoding_ARRILogC3` definition n-dimensional arrays support.
"""
t = 0.391006832034084
x = log_decoding_ARRILogC3(t)
t = np.tile(t, 6)
x ... |
Test :func:`colour.models.rgb.transfer_functions.arri.log_decoding_ARRILogC3` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_ARRILogC3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arri.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arri.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_ARRILogC3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arri.\
log_decoding_ARRILogC3` definition domain and range scale support.
"""
t = 0.391006832034084
x = log_decoding_ARRILogC3(t)
d_r = (("reference", ... |
Test :func:`colour.models.rgb.transfer_functions.arri.log_decoding_ARRILogC3` definition domain and range scale support.
| test_domain_range_scale_log_decoding_ARRILogC3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arri.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arri.py | BSD-3-Clause |
def test_log_encoding_ARRILogC4(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arri.\
log_encoding_ARRILogC4` definition.
"""
np.testing.assert_allclose(
log_encoding_ARRILogC4(0.0),
0.092864125122190,
atol=TOLERANCE_ABSOLUTE_TEST... |
Test :func:`colour.models.rgb.transfer_functions.arri.log_encoding_ARRILogC4` definition.
| test_log_encoding_ARRILogC4 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arri.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arri.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_ARRILogC4(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arri.\
log_encoding_ARRILogC4` definition n-dimensional arrays support.
"""
x = 0.18
t = log_encoding_ARRILogC4(x)
x = np.tile(x, 6)
t = np.tile(t, ... |
Test :func:`colour.models.rgb.transfer_functions.arri.log_encoding_ARRILogC4` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_ARRILogC4 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arri.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arri.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_ARRILogC4(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arri.\
log_encoding_ARRILogC4` definition domain and range scale support.
"""
x = 0.18
t = log_encoding_ARRILogC4(x)
d_r = (("reference", 1), ("1", 1),... |
Test :func:`colour.models.rgb.transfer_functions.arri.log_encoding_ARRILogC4` definition domain and range scale support.
| test_domain_range_scale_log_encoding_ARRILogC4 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arri.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arri.py | BSD-3-Clause |
def test_log_decoding_ARRILogC4(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arri.\
log_decoding_ARRILogC4` definition.
"""
np.testing.assert_allclose(
log_decoding_ARRILogC4(0.092864125122190),
0.0,
atol=TOLERANCE_ABSOLUTE_TEST... |
Test :func:`colour.models.rgb.transfer_functions.arri.log_decoding_ARRILogC4` definition.
| test_log_decoding_ARRILogC4 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arri.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arri.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_ARRILogC4(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arri.\
log_decoding_ARRILogC4` definition n-dimensional arrays support.
"""
t = 0.278395836548265
x = log_decoding_ARRILogC4(t)
t = np.tile(t, 6)
x ... |
Test :func:`colour.models.rgb.transfer_functions.arri.log_decoding_ARRILogC4` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_ARRILogC4 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arri.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arri.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_ARRILogC4(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.arri.\
log_decoding_ARRILogC4` definition domain and range scale support.
"""
t = 0.278395836548265
x = log_decoding_ARRILogC4(t)
d_r = (("reference", ... |
Test :func:`colour.models.rgb.transfer_functions.arri.log_decoding_ARRILogC4` definition domain and range scale support.
| test_domain_range_scale_log_decoding_ARRILogC4 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_arri.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_arri.py | BSD-3-Clause |
def test_oetf_BlackmagicFilmGeneration5(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
blackmagic_design.oetf_BlackmagicFilmGeneration5` definition.
"""
np.testing.assert_allclose(
oetf_BlackmagicFilmGeneration5(0.0),
0.092465753424658,
... |
Test :func:`colour.models.rgb.transfer_functions.blackmagic_design.oetf_BlackmagicFilmGeneration5` definition.
| test_oetf_BlackmagicFilmGeneration5 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | BSD-3-Clause |
def test_n_dimensional_oetf_BlackmagicFilmGeneration5(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
blackmagic_design.oetf_BlackmagicFilmGeneration5` definition n-dimensional
arrays support.
"""
L = 0.18
V = oetf_BlackmagicFilmGeneration5(L)
... |
Test :func:`colour.models.rgb.transfer_functions.blackmagic_design.oetf_BlackmagicFilmGeneration5` definition n-dimensional
arrays support.
| test_n_dimensional_oetf_BlackmagicFilmGeneration5 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | BSD-3-Clause |
def test_domain_range_scale_oetf_BlackmagicFilmGeneration5(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
blackmagic_design.oetf_BlackmagicFilmGeneration5` definition domain and range
scale support.
"""
L = 0.18
V = oetf_BlackmagicFilmGeneration5(L... |
Test :func:`colour.models.rgb.transfer_functions.blackmagic_design.oetf_BlackmagicFilmGeneration5` definition domain and range
scale support.
| test_domain_range_scale_oetf_BlackmagicFilmGeneration5 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | BSD-3-Clause |
def test_nan_oetf_BlackmagicFilmGeneration5(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
blackmagic_design.oetf_BlackmagicFilmGeneration5` definition nan support.
"""
oetf_BlackmagicFilmGeneration5(
np.array([-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan])... |
Test :func:`colour.models.rgb.transfer_functions.blackmagic_design.oetf_BlackmagicFilmGeneration5` definition nan support.
| test_nan_oetf_BlackmagicFilmGeneration5 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | BSD-3-Clause |
def test_oetf_inverse_BlackmagicFilmGeneration5(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
blackmagic_design.oetf_inverse_BlackmagicFilmGeneration5` definition.
"""
np.testing.assert_allclose(
oetf_inverse_BlackmagicFilmGeneration5(0.09246575342465... |
Test :func:`colour.models.rgb.transfer_functions.blackmagic_design.oetf_inverse_BlackmagicFilmGeneration5` definition.
| test_oetf_inverse_BlackmagicFilmGeneration5 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | BSD-3-Clause |
def test_n_dimensional_oetf_inverse_BlackmagicFilmGeneration5(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
blackmagic_design.oetf_inverse_BlackmagicFilmGeneration5` definition
n-dimensional arrays support.
"""
V = 0.383561643835617
L = oetf_inver... |
Test :func:`colour.models.rgb.transfer_functions.blackmagic_design.oetf_inverse_BlackmagicFilmGeneration5` definition
n-dimensional arrays support.
| test_n_dimensional_oetf_inverse_BlackmagicFilmGeneration5 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | BSD-3-Clause |
def test_domain_range_scale_oetf_inverse_BlackmagicFilmGeneration5(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
blackmagic_design.oetf_inverse_BlackmagicFilmGeneration5` definition domain and
range scale support.
"""
V = 0.383561643835617
L = oet... |
Test :func:`colour.models.rgb.transfer_functions.blackmagic_design.oetf_inverse_BlackmagicFilmGeneration5` definition domain and
range scale support.
| test_domain_range_scale_oetf_inverse_BlackmagicFilmGeneration5 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | BSD-3-Clause |
def test_nan_oetf_inverse_BlackmagicFilmGeneration5(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
blackmagic_design.oetf_inverse_BlackmagicFilmGeneration5` definition nan
support.
"""
oetf_inverse_BlackmagicFilmGeneration5(
np.array([-1.0, 0.0... |
Test :func:`colour.models.rgb.transfer_functions.blackmagic_design.oetf_inverse_BlackmagicFilmGeneration5` definition nan
support.
| test_nan_oetf_inverse_BlackmagicFilmGeneration5 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py | BSD-3-Clause |
def test_log_encoding_CanonLog_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog_v1` definition.
"""
np.testing.assert_allclose(
log_encoding_CanonLog_v1(-0.1),
-0.023560122781997,
atol=TOLERANCE_ABSO... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog_v1` definition.
| test_log_encoding_CanonLog_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_CanonLog_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog_v1` definition n-dimensional arrays support.
"""
x = 0.18
clog = log_encoding_CanonLog_v1(x)
x = np.tile(x, 6)
clog ... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog_v1` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_CanonLog_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_CanonLog_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog_v1` definition domain and range scale support.
"""
x = 0.18
clog = log_encoding_CanonLog_v1(x)
d_r = (("reference", 1),... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog_v1` definition domain and range scale support.
| test_domain_range_scale_log_encoding_CanonLog_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_log_decoding_CanonLog_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog_v1` definition.
"""
np.testing.assert_allclose(
log_decoding_CanonLog_v1(-0.023560122781997),
-0.1,
atol=TOLERANCE_ABSO... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog_v1` definition.
| test_log_decoding_CanonLog_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_CanonLog_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog_v1` definition n-dimensional arrays support.
"""
clog = 0.343389651726069
x = log_decoding_CanonLog_v1(clog)
clog = np.tile(... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog_v1` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_CanonLog_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_CanonLog_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog_v1` definition domain and range scale support.
"""
clog = 0.343389651726069
x = log_decoding_CanonLog_v1(clog)
d_r = ((... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog_v1` definition domain and range scale support.
| test_domain_range_scale_log_decoding_CanonLog_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_log_encoding_CanonLog_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog_v1_2` definition.
"""
np.testing.assert_allclose(
log_encoding_CanonLog_v1_2(-0.1),
-0.023560121389098,
atol=TOLERANC... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog_v1_2` definition.
| test_log_encoding_CanonLog_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_CanonLog_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog_v1_2` definition n-dimensional arrays support.
"""
x = 0.18
clog = log_encoding_CanonLog_v1_2(x)
x = np.tile(x, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog_v1_2` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_CanonLog_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.