code stringlengths 66 870k | docstring stringlengths 19 26.7k | func_name stringlengths 1 138 | language stringclasses 1
value | repo stringlengths 7 68 | path stringlengths 5 324 | url stringlengths 46 389 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
def test_eotf_inverse_H273_ST428_1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.itut_h_273.\
eotf_inverse_H273_ST428_1` definition.
"""
np.testing.assert_allclose(
eotf_inverse_H273_ST428_1(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np... |
Test :func:`colour.models.rgb.transfer_functions.itut_h_273.eotf_inverse_H273_ST428_1` definition.
| test_eotf_inverse_H273_ST428_1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_itut_h_273.py | BSD-3-Clause |
def test_n_dimensional_eotf_inverse_H273_ST428_1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.itut_h_273.\
eotf_inverse_H273_ST428_1` definition n-dimensional arrays support.
"""
E = 0.18
E_p = eotf_inverse_H273_ST428_1(E)
E = np.tile(E, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.itut_h_273.eotf_inverse_H273_ST428_1` definition n-dimensional arrays support.
| test_n_dimensional_eotf_inverse_H273_ST428_1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_itut_h_273.py | BSD-3-Clause |
def test_domain_range_scale_eotf_inverse_H273_ST428_1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.itut_h_273.\
eotf_inverse_H273_ST428_1` definition domain and range scale support.
"""
E = 0.18
E_p = eotf_inverse_H273_ST428_1(E)
d_r = (("referenc... |
Test :func:`colour.models.rgb.transfer_functions.itut_h_273.eotf_inverse_H273_ST428_1` definition domain and range scale support.
| test_domain_range_scale_eotf_inverse_H273_ST428_1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_itut_h_273.py | BSD-3-Clause |
def test_eotf_H273_ST428_1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.itut_h_273.\
eotf_H273_ST428_1` definition.
"""
np.testing.assert_allclose(
eotf_H273_ST428_1(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allclose... |
Test :func:`colour.models.rgb.transfer_functions.itut_h_273.eotf_H273_ST428_1` definition.
| test_eotf_H273_ST428_1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_itut_h_273.py | BSD-3-Clause |
def test_n_dimensional_eotf_H273_ST428_1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.itut_h_273.\
eotf_H273_ST428_1` definition n-dimensional arrays support.
"""
E_p = 0.500048337717236
E = eotf_H273_ST428_1(E_p)
E_p = np.tile(E_p, 6)
E =... |
Test :func:`colour.models.rgb.transfer_functions.itut_h_273.eotf_H273_ST428_1` definition n-dimensional arrays support.
| test_n_dimensional_eotf_H273_ST428_1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_itut_h_273.py | BSD-3-Clause |
def test_domain_range_scale_eotf_H273_ST428_1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.itut_h_273.\
eotf_H273_ST428_1` definition domain and range scale support.
"""
E_p = 0.500048337717236
E = eotf_H273_ST428_1(E_p)
d_r = (("reference", 1), (... |
Test :func:`colour.models.rgb.transfer_functions.itut_h_273.eotf_H273_ST428_1` definition domain and range scale support.
| test_domain_range_scale_eotf_H273_ST428_1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_itut_h_273.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_itut_h_273.py | BSD-3-Clause |
def test_log_encoding_LLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.leica_l_log.\
log_encoding_LLog` definition.
"""
np.testing.assert_allclose(
log_encoding_LLog(0.0),
0.089999999999999,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.leica_l_log.log_encoding_LLog` definition.
| test_log_encoding_LLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_leica_l_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_leica_l_log.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_LLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.leica_l_log.\
log_encoding_LLog` definition n-dimensional arrays support.
"""
y = 0.18
x = log_encoding_LLog(y)
y = np.tile(y, 6)
x = np.tile(x, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.leica_l_log.log_encoding_LLog` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_LLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_leica_l_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_leica_l_log.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_LLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.leica_l_log.\
log_encoding_LLog` definition domain and range scale support.
"""
y = 0.18
x = log_encoding_LLog(y)
d_r = (("reference", 1), ("1", 1), ("100",... |
Test :func:`colour.models.rgb.transfer_functions.leica_l_log.log_encoding_LLog` definition domain and range scale support.
| test_domain_range_scale_log_encoding_LLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_leica_l_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_leica_l_log.py | BSD-3-Clause |
def test_log_decoding_LLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.leica_l_log.\
log_decoding_LLog` definition.
"""
np.testing.assert_allclose(
log_decoding_LLog(0.089999999999999),
0.0,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.leica_l_log.log_decoding_LLog` definition.
| test_log_decoding_LLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_leica_l_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_leica_l_log.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_LLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.leica_l_log.\
log_decoding_LLog` definition n-dimensional arrays support.
"""
x = 0.435313904043927
y = log_decoding_LLog(x)
x = np.tile(x, 6)
y = np.til... |
Test :func:`colour.models.rgb.transfer_functions.leica_l_log.log_decoding_LLog` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_LLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_leica_l_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_leica_l_log.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_LLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.leica_l_log.\
log_decoding_LLog` definition domain and range scale support.
"""
x = 0.435313904043927
y = log_decoding_LLog(x)
d_r = (("reference", 1), ("1"... |
Test :func:`colour.models.rgb.transfer_functions.leica_l_log.log_decoding_LLog` definition domain and range scale support.
| test_domain_range_scale_log_decoding_LLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_leica_l_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_leica_l_log.py | BSD-3-Clause |
def test_linear_function(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.linear.\
linear_function` definition.
"""
assert linear_function(0.0) == 0.0
assert linear_function(0.18) == 0.18
assert linear_function(1.0) == 1.0 |
Test :func:`colour.models.rgb.transfer_functions.linear.linear_function` definition.
| test_linear_function | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_linear.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_linear.py | BSD-3-Clause |
def test_n_dimensional_linear_function(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.linear.\
linear_function` definition n-dimensional arrays support.
"""
a = 0.18
a_p = linear_function(a)
a = np.tile(a, 6)
a_p = np.tile(a_p, 6)
np... |
Test :func:`colour.models.rgb.transfer_functions.linear.linear_function` definition n-dimensional arrays support.
| test_n_dimensional_linear_function | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_linear.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_linear.py | BSD-3-Clause |
def test_logarithmic_function_basic(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
logarithmic_function_basic` definition.
"""
np.testing.assert_allclose(
logarithmic_function_basic(0.18),
-2.473931188332412,
atol=TOLERANCE_... |
Test :func:`colour.models.rgb.transfer_functions.log.logarithmic_function_basic` definition.
| test_logarithmic_function_basic | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_n_dimensional_logarithmic_function_basic(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
logarithmic_function_basic` definition n-dimensional arrays support.
"""
styles = ["log10", "antiLog10", "log2", "antiLog2", "logB", "antiLogB"]
for style... |
Test :func:`colour.models.rgb.transfer_functions.log.logarithmic_function_basic` definition n-dimensional arrays support.
| test_n_dimensional_logarithmic_function_basic | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_nan_logarithmic_function_basic(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
logarithmic_function_basic` definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
styles = ["log10", "antiLog10", "log2", "antiLog2", "logB",... |
Test :func:`colour.models.rgb.transfer_functions.log.logarithmic_function_basic` definition nan support.
| test_nan_logarithmic_function_basic | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_logarithmic_function_quasilog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
logarithmic_function_quasilog` definition.
"""
np.testing.assert_allclose(
logarithmic_function_quasilog(0.18),
-2.473931188332412,
atol=T... |
Test :func:`colour.models.rgb.transfer_functions.log.logarithmic_function_quasilog` definition.
| test_logarithmic_function_quasilog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_n_dimensional_logarithmic_function_quasilog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
logarithmic_function_quasilog` definition n-dimensional arrays support.
"""
styles = ["lintolog", "logtolin"]
for style in styles:
a = 0.18... |
Test :func:`colour.models.rgb.transfer_functions.log.logarithmic_function_quasilog` definition n-dimensional arrays support.
| test_n_dimensional_logarithmic_function_quasilog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_nan_logarithmic_function_quasilog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
logarithmic_function_quasilog` definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
styles = ["lintolog", "logtolin"]
for style i... |
Test :func:`colour.models.rgb.transfer_functions.log.logarithmic_function_quasilog` definition nan support.
| test_nan_logarithmic_function_quasilog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_logarithmic_function_camera(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
logarithmic_function_camera` definition.
"""
np.testing.assert_allclose(
logarithmic_function_camera(0, "cameraLinToLog"),
-9.08655123066369,
... |
Test :func:`colour.models.rgb.transfer_functions.log.logarithmic_function_camera` definition.
| test_logarithmic_function_camera | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_n_dimensional_logarithmic_function_camera(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
logarithmic_function_camera` definition n-dimensional arrays support.
"""
styles = ["cameraLinToLog", "cameraLogToLin"]
for style in styles:
... |
Test :func:`colour.models.rgb.transfer_functions.log.logarithmic_function_camera` definition n-dimensional arrays support.
| test_n_dimensional_logarithmic_function_camera | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_nan_logarithmic_function_camera(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
logarithmic_function_camera` definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
styles = ["cameraLinToLog", "cameraLogToLin"]
for... |
Test :func:`colour.models.rgb.transfer_functions.log.logarithmic_function_camera` definition nan support.
| test_nan_logarithmic_function_camera | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_log_encoding_Log2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
log_encoding_Log2` definition.
"""
np.testing.assert_allclose(
log_encoding_Log2(0.0), -np.inf, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allclose(
... |
Test :func:`colour.models.rgb.transfer_functions.log.log_encoding_Log2` definition.
| test_log_encoding_Log2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_Log2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
log_encoding_Log2` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_Log2(x)
x = np.tile(x, 6)
y = np.tile(y, 6)
np.te... |
Test :func:`colour.models.rgb.transfer_functions.log.log_encoding_Log2` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_Log2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_Log2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
log_encoding_Log2` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_Log2(x)
d_r = (("reference", 1), ("1", 1), ("100", 100))
... |
Test :func:`colour.models.rgb.transfer_functions.log.log_encoding_Log2` definition domain and range scale support.
| test_domain_range_scale_log_encoding_Log2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_log_decoding_Log2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
log_decoding_Log2` definition.
"""
np.testing.assert_allclose(
log_decoding_Log2(0.0),
0.001988737822087,
atol=TOLERANCE_ABSOLUTE_TESTS,
)
... |
Test :func:`colour.models.rgb.transfer_functions.log.log_decoding_Log2` definition.
| test_log_decoding_Log2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_Log2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
log_decoding_Log2` definition n-dimensional arrays support.
"""
y = 0.5
x = log_decoding_Log2(y)
y = np.tile(y, 6)
x = np.tile(x, 6)
np.tes... |
Test :func:`colour.models.rgb.transfer_functions.log.log_decoding_Log2` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_Log2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_Log2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.log.\
log_decoding_Log2` definition domain and range scale support.
"""
y = 0.5
x = log_decoding_Log2(y)
d_r = (("reference", 1), ("1", 1), ("100", 100))
... |
Test :func:`colour.models.rgb.transfer_functions.log.log_decoding_Log2` definition domain and range scale support.
| test_domain_range_scale_log_decoding_Log2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_log.py | BSD-3-Clause |
def test_log_encoding_NLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.nikon_n_log.\
log_encoding_NLog` definition.
"""
np.testing.assert_allclose(
log_encoding_NLog(0.0),
0.124372627896372,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.nikon_n_log.log_encoding_NLog` definition.
| test_log_encoding_NLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_nikon_n_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_nikon_n_log.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_NLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.nikon_n_log.\
log_encoding_NLog` definition n-dimensional arrays support.
"""
y = 0.18
x = log_encoding_NLog(y)
y = np.tile(y, 6)
x = np.tile(x, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.nikon_n_log.log_encoding_NLog` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_NLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_nikon_n_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_nikon_n_log.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_NLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.nikon_n_log.\
log_encoding_NLog` definition domain and range scale support.
"""
y = 0.18
x = log_encoding_NLog(y)
d_r = (("reference", 1), ("1", 1), ("100",... |
Test :func:`colour.models.rgb.transfer_functions.nikon_n_log.log_encoding_NLog` definition domain and range scale support.
| test_domain_range_scale_log_encoding_NLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_nikon_n_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_nikon_n_log.py | BSD-3-Clause |
def test_log_decoding_NLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.nikon_n_log.\
log_decoding_NLog` definition.
"""
np.testing.assert_allclose(
log_decoding_NLog(0.124372627896372),
0.0,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.nikon_n_log.log_decoding_NLog` definition.
| test_log_decoding_NLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_nikon_n_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_nikon_n_log.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_NLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.nikon_n_log.\
log_decoding_NLog` definition n-dimensional arrays support.
"""
x = 0.363667770117139
y = log_decoding_NLog(x)
x = np.tile(x, 6)
y = np.til... |
Test :func:`colour.models.rgb.transfer_functions.nikon_n_log.log_decoding_NLog` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_NLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_nikon_n_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_nikon_n_log.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_NLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.nikon_n_log.\
log_decoding_NLog` definition domain and range scale support.
"""
x = 0.363667770117139
y = log_decoding_NLog(x)
d_r = (("reference", 1), ("1"... |
Test :func:`colour.models.rgb.transfer_functions.nikon_n_log.log_decoding_NLog` definition domain and range scale support.
| test_domain_range_scale_log_decoding_NLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_nikon_n_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_nikon_n_log.py | BSD-3-Clause |
def test_log_encoding_Panalog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.panalog.\
log_encoding_Panalog` definition.
"""
np.testing.assert_allclose(
log_encoding_Panalog(0.0),
0.062561094819159,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.panalog.log_encoding_Panalog` definition.
| test_log_encoding_Panalog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_panalog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_panalog.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_Panalog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.panalog.\
log_encoding_Panalog` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_Panalog(x)
x = np.tile(x, 6)
y = np.tile(y, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.panalog.log_encoding_Panalog` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_Panalog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_panalog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_panalog.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_Panalog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.panalog.\
log_encoding_Panalog` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_Panalog(x)
d_r = (("reference", 1), ("1", 1), ("... |
Test :func:`colour.models.rgb.transfer_functions.panalog.log_encoding_Panalog` definition domain and range scale support.
| test_domain_range_scale_log_encoding_Panalog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_panalog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_panalog.py | BSD-3-Clause |
def test_log_decoding_Panalog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.panalog.\
log_decoding_Panalog` definition.
"""
np.testing.assert_allclose(
log_decoding_Panalog(0.062561094819159),
0.0,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.panalog.log_decoding_Panalog` definition.
| test_log_decoding_Panalog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_panalog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_panalog.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_Panalog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.panalog.\
log_decoding_Panalog` definition n-dimensional arrays support.
"""
y = 0.374576791382298
x = log_decoding_Panalog(y)
y = np.tile(y, 6)
x = n... |
Test :func:`colour.models.rgb.transfer_functions.panalog.log_decoding_Panalog` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_Panalog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_panalog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_panalog.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_Panalog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.panalog.\
log_decoding_Panalog` definition domain and range scale support.
"""
y = 0.374576791382298
x = log_decoding_Panalog(y)
d_r = (("reference", 1),... |
Test :func:`colour.models.rgb.transfer_functions.panalog.log_decoding_Panalog` definition domain and range scale support.
| test_domain_range_scale_log_decoding_Panalog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_panalog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_panalog.py | BSD-3-Clause |
def test_log_encoding_VLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.panasonic_v_log.\
log_encoding_VLog` definition.
"""
np.testing.assert_allclose(
log_encoding_VLog(0.0), 0.125, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_a... |
Test :func:`colour.models.rgb.transfer_functions.panasonic_v_log.log_encoding_VLog` definition.
| test_log_encoding_VLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_VLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.panasonic_v_log.\
log_encoding_VLog` definition n-dimensional arrays support.
"""
L_in = 0.18
V_out = log_encoding_VLog(L_in)
L_in = np.tile(L_in, 6)
V_o... |
Test :func:`colour.models.rgb.transfer_functions.panasonic_v_log.log_encoding_VLog` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_VLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_VLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.panasonic_v_log.\
log_encoding_VLog` definition domain and range scale support.
"""
L_in = 0.18
V_out = log_encoding_VLog(L_in)
d_r = (("reference", 1), ("1... |
Test :func:`colour.models.rgb.transfer_functions.panasonic_v_log.log_encoding_VLog` definition domain and range scale support.
| test_domain_range_scale_log_encoding_VLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | BSD-3-Clause |
def test_log_decoding_VLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.panasonic_v_log.\
log_decoding_VLog` definition.
"""
np.testing.assert_allclose(
log_decoding_VLog(0.125), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_a... |
Test :func:`colour.models.rgb.transfer_functions.panasonic_v_log.log_decoding_VLog` definition.
| test_log_decoding_VLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_VLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.panasonic_v_log.\
log_decoding_VLog` definition n-dimensional arrays support.
"""
V_out = 0.423311448760136
L_in = log_decoding_VLog(V_out)
V_out = np.tile(V_out... |
Test :func:`colour.models.rgb.transfer_functions.panasonic_v_log.log_decoding_VLog` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_VLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_VLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.panasonic_v_log.\
log_decoding_VLog` definition domain and range scale support.
"""
V_out = 0.423311448760136
L_in = log_decoding_VLog(V_out)
d_r = (("refer... |
Test :func:`colour.models.rgb.transfer_functions.panasonic_v_log.log_decoding_VLog` definition domain and range scale support.
| test_domain_range_scale_log_decoding_VLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | BSD-3-Clause |
def test_log_encoding_PivotedLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.pivoted_log.\
log_encoding_PivotedLog` definition.
"""
np.testing.assert_allclose(
log_encoding_PivotedLog(0.0),
-np.inf,
atol=TOLERANCE_ABSOLUTE_TEST... |
Test :func:`colour.models.rgb.transfer_functions.pivoted_log.log_encoding_PivotedLog` definition.
| test_log_encoding_PivotedLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_pivoted_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_pivoted_log.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_PivotedLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.pivoted_log.\
log_encoding_PivotedLog` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_PivotedLog(x)
x = np.tile(x, 6)
y = n... |
Test :func:`colour.models.rgb.transfer_functions.pivoted_log.log_encoding_PivotedLog` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_PivotedLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_pivoted_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_pivoted_log.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_PivotedLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.pivoted_log.\
log_encoding_PivotedLog` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_PivotedLog(x)
d_r = (("reference", 1),... |
Test :func:`colour.models.rgb.transfer_functions.pivoted_log.log_encoding_PivotedLog` definition domain and range scale support.
| test_domain_range_scale_log_encoding_PivotedLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_pivoted_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_pivoted_log.py | BSD-3-Clause |
def test_log_decoding_PivotedLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.pivoted_log.\
log_decoding_PivotedLog` definition.
"""
np.testing.assert_allclose(
log_decoding_PivotedLog(-np.inf),
0.0,
atol=TOLERANCE_ABSOLUTE_TEST... |
Test :func:`colour.models.rgb.transfer_functions.pivoted_log.log_decoding_PivotedLog` definition.
| test_log_decoding_PivotedLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_pivoted_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_pivoted_log.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_PivotedLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.pivoted_log.\
log_decoding_PivotedLog` definition n-dimensional arrays support.
"""
y = 0.434995112414467
x = log_decoding_PivotedLog(y)
y = np.tile(y, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.pivoted_log.log_decoding_PivotedLog` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_PivotedLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_pivoted_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_pivoted_log.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_PivotedLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.pivoted_log.\
log_decoding_PivotedLog` definition domain and range scale support.
"""
y = 0.434995112414467
x = log_decoding_PivotedLog(y)
d_r = (("re... |
Test :func:`colour.models.rgb.transfer_functions.pivoted_log.log_decoding_PivotedLog` definition domain and range scale support.
| test_domain_range_scale_log_decoding_PivotedLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_pivoted_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_pivoted_log.py | BSD-3-Clause |
def test_log_encoding_REDLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_REDLog` definition.
"""
np.testing.assert_allclose(
log_encoding_REDLog(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allclose(... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_REDLog` definition.
| test_log_encoding_REDLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_REDLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_REDLog` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_REDLog(x)
x = np.tile(x, 6)
y = np.tile(y, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_REDLog` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_REDLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_REDLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_REDLog` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_REDLog(x)
d_r = (("reference", 1), ("1", 1), ("100", 1... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_REDLog` definition domain and range scale support.
| test_domain_range_scale_log_encoding_REDLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_log_decoding_REDLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_REDLog` definition.
"""
np.testing.assert_allclose(
log_decoding_REDLog(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allclose(... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_REDLog` definition.
| test_log_decoding_REDLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_REDLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_REDLog` definition n-dimensional arrays support.
"""
y = 0.637621845988175
x = log_decoding_REDLog(y)
y = np.tile(y, 6)
x = np.tile(... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_REDLog` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_REDLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_REDLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_REDLog` definition domain and range scale support.
"""
y = 0.637621845988175
x = log_decoding_REDLog(y)
d_r = (("reference", 1), ("1", ... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_REDLog` definition domain and range scale support.
| test_domain_range_scale_log_decoding_REDLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_log_encoding_REDLogFilm(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_REDLogFilm` definition.
"""
np.testing.assert_allclose(
log_encoding_REDLogFilm(0.0),
0.092864125122190,
atol=TOLERANCE_ABSOLUTE_TE... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_REDLogFilm` definition.
| test_log_encoding_REDLogFilm | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_REDLogFilm(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_REDLogFilm` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_REDLogFilm(x)
x = np.tile(x, 6)
y = np.tile(y... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_REDLogFilm` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_REDLogFilm | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_REDLogFilm(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_REDLogFilm` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_REDLogFilm(x)
d_r = (("reference", 1), ("1", 1... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_REDLogFilm` definition domain and range scale support.
| test_domain_range_scale_log_encoding_REDLogFilm | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_log_decoding_REDLogFilm(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_REDLogFilm` definition.
"""
np.testing.assert_allclose(
log_decoding_REDLogFilm(0.092864125122190),
0.0,
atol=TOLERANCE_ABSOLUTE_TE... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_REDLogFilm` definition.
| test_log_decoding_REDLogFilm | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_REDLogFilm(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_REDLogFilm` definition n-dimensional arrays support.
"""
y = 0.457319613085418
x = log_decoding_REDLogFilm(y)
y = np.tile(y, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_REDLogFilm` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_REDLogFilm | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_REDLogFilm(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_REDLogFilm` definition domain and range scale support.
"""
y = 0.457319613085418
x = log_decoding_REDLogFilm(y)
d_r = (("reference"... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_REDLogFilm` definition domain and range scale support.
| test_domain_range_scale_log_decoding_REDLogFilm | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_log_encoding_Log3G10_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_Log3G10_v1` definition.
"""
np.testing.assert_allclose(
log_encoding_Log3G10_v1(-1.0),
-0.496483569056003,
atol=TOLERANCE_ABSOLUTE_... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_Log3G10_v1` definition.
| test_log_encoding_Log3G10_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_Log3G10_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_Log3G10_v1` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_Log3G10_v1(x)
x = np.tile(x, 6)
y = np.tile(y... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_Log3G10_v1` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_Log3G10_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_Log3G10_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_Log3G10_v1` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_Log3G10_v1(x)
d_r = (("reference", 1), ("1", 1... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_Log3G10_v1` definition domain and range scale support.
| test_domain_range_scale_log_encoding_Log3G10_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_log_decoding_Log3G10_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_Log3G10_v1` definition.
"""
np.testing.assert_allclose(
log_decoding_Log3G10_v1(-0.496483569056003),
-1.0,
atol=TOLERANCE_ABSOLUTE_... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_Log3G10_v1` definition.
| test_log_decoding_Log3G10_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_Log3G10_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_Log3G10_v1` definition n-dimensional arrays support.
"""
y = 0.333333644207707
x = log_decoding_Log3G10_v1(y)
y = np.tile(y, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_Log3G10_v1` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_Log3G10_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_Log3G10_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_Log3G10_v1` definition domain and range scale support.
"""
y = 0.333333644207707
x = log_decoding_Log3G10_v1(y)
d_r = (("reference"... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_Log3G10_v1` definition domain and range scale support.
| test_domain_range_scale_log_decoding_Log3G10_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_log_encoding_Log3G10_v2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_Log3G10_v2` definition.
"""
np.testing.assert_allclose(
log_encoding_Log3G10_v2(-1.0),
-0.491512777522511,
atol=TOLERANCE_ABSOLUTE_... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_Log3G10_v2` definition.
| test_log_encoding_Log3G10_v2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_Log3G10_v2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_Log3G10_v2` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_Log3G10_v2(x)
x = np.tile(x, 6)
y = np.tile(y... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_Log3G10_v2` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_Log3G10_v2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_Log3G10_v2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_Log3G10_v2` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_Log3G10_v2(x)
d_r = (("reference", 1), ("1", 1... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_Log3G10_v2` definition domain and range scale support.
| test_domain_range_scale_log_encoding_Log3G10_v2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_log_decoding_Log3G10_v2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_Log3G10_v2` definition.
"""
np.testing.assert_allclose(
log_decoding_Log3G10_v2(-0.491512777522511),
-1.0,
atol=TOLERANCE_ABSOLUTE_... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_Log3G10_v2` definition.
| test_log_decoding_Log3G10_v2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_Log3G10_v2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_Log3G10_v2` definition n-dimensional arrays support.
"""
y = 0.333332912025992
x = log_decoding_Log3G10_v2(y)
y = np.tile(y, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_Log3G10_v2` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_Log3G10_v2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_Log3G10_v2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_Log3G10_v2` definition domain and range scale support.
"""
y = 0.333333644207707
x = log_decoding_Log3G10_v2(y)
d_r = (("reference"... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_Log3G10_v2` definition domain and range scale support.
| test_domain_range_scale_log_decoding_Log3G10_v2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_log_encoding_Log3G10_v3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_Log3G10_v3` definition.
"""
np.testing.assert_allclose(
log_encoding_Log3G10_v3(-1.0),
-15.040773,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_Log3G10_v3` definition.
| test_log_encoding_Log3G10_v3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_Log3G10_v3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_Log3G10_v3` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_Log3G10_v3(x)
x = np.tile(x, 6)
y = np.tile(y... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_Log3G10_v3` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_Log3G10_v3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_Log3G10_v3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_Log3G10_v3` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_Log3G10_v3(x)
d_r = (("reference", 1), ("1", 1... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_Log3G10_v3` definition domain and range scale support.
| test_domain_range_scale_log_encoding_Log3G10_v3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_log_decoding_Log3G10_v3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_Log3G10_v3` definition.
"""
np.testing.assert_allclose(
log_decoding_Log3G10_v3(-15.040773),
-1.0,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_Log3G10_v3` definition.
| test_log_decoding_Log3G10_v3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_Log3G10_v3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_Log3G10_v3` definition n-dimensional arrays support.
"""
y = 0.333332912025992
x = log_decoding_Log3G10_v3(y)
y = np.tile(y, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_Log3G10_v3` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_Log3G10_v3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_Log3G10_v3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_Log3G10_v3` definition domain and range scale support.
"""
y = 0.333333644207707
x = log_decoding_Log3G10_v3(y)
d_r = (("reference"... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_Log3G10_v3` definition domain and range scale support.
| test_domain_range_scale_log_decoding_Log3G10_v3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_log_encoding_Log3G12(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_Log3G12` definition.
"""
np.testing.assert_allclose(
log_encoding_Log3G12(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allclo... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_Log3G12` definition.
| test_log_encoding_Log3G12 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_Log3G12(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_Log3G12` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_Log3G12(x)
x = np.tile(x, 6)
y = np.tile(y, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_Log3G12` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_Log3G12 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_Log3G12(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_encoding_Log3G12` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_Log3G12(x)
d_r = (("reference", 1), ("1", 1), ("100"... |
Test :func:`colour.models.rgb.transfer_functions.red.log_encoding_Log3G12` definition domain and range scale support.
| test_domain_range_scale_log_encoding_Log3G12 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_log_decoding_Log3G12(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_Log3G12` definition.
"""
np.testing.assert_allclose(
log_decoding_Log3G12(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allclo... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_Log3G12` definition.
| test_log_decoding_Log3G12 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_Log3G12(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_Log3G12` definition n-dimensional arrays support.
"""
y = 0.333332662015923
x = log_decoding_Log3G12(y)
y = np.tile(y, 6)
x = np.ti... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_Log3G12` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_Log3G12 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_Log3G12(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.red.\
log_decoding_Log3G12` definition domain and range scale support.
"""
y = 0.18
x = log_decoding_Log3G12(y)
d_r = (("reference", 1), ("1", 1), ("100"... |
Test :func:`colour.models.rgb.transfer_functions.red.log_decoding_Log3G12` definition domain and range scale support.
| test_domain_range_scale_log_decoding_Log3G12 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_red.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_red.py | BSD-3-Clause |
def test_cctf_encoding_ROMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
cctf_encoding_ROMMRGB` definition.
"""
np.testing.assert_allclose(
cctf_encoding_ROMMRGB(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.cctf_encoding_ROMMRGB` definition.
| test_cctf_encoding_ROMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_n_dimensional_cctf_encoding_ROMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
cctf_encoding_ROMMRGB` definition n-dimensional arrays support.
"""
X = 0.18
X_ROMM = cctf_encoding_ROMMRGB(X)
X = np.tile(X, 6)
X_RO... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.cctf_encoding_ROMMRGB` definition n-dimensional arrays support.
| test_n_dimensional_cctf_encoding_ROMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_domain_range_scale_cctf_encoding_ROMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
cctf_encoding_ROMMRGB` definition domain and range scale support.
"""
X = 0.18
X_p = cctf_encoding_ROMMRGB(X)
d_r = (("reference", 1), (... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.cctf_encoding_ROMMRGB` definition domain and range scale support.
| test_domain_range_scale_cctf_encoding_ROMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_cctf_decoding_ROMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
cctf_decoding_ROMMRGB` definition.
"""
np.testing.assert_allclose(
cctf_decoding_ROMMRGB(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.cctf_decoding_ROMMRGB` definition.
| test_cctf_decoding_ROMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_n_dimensional_cctf_decoding_ROMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
cctf_decoding_ROMMRGB` definition n-dimensional arrays support.
"""
X_p = 0.385711424751138
X = cctf_decoding_ROMMRGB(X_p)
X_p = np.tile(X_p,... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.cctf_decoding_ROMMRGB` definition n-dimensional arrays support.
| test_n_dimensional_cctf_decoding_ROMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_domain_range_scale_cctf_decoding_ROMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
cctf_decoding_ROMMRGB` definition domain and range scale support.
"""
X_p = 0.385711424751138
X = cctf_decoding_ROMMRGB(X_p)
d_r = (("re... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.cctf_decoding_ROMMRGB` definition domain and range scale support.
| test_domain_range_scale_cctf_decoding_ROMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_cctf_encoding_RIMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
cctf_encoding_RIMMRGB` definition.
"""
np.testing.assert_allclose(
cctf_encoding_RIMMRGB(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.cctf_encoding_RIMMRGB` definition.
| test_cctf_encoding_RIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_n_dimensional_cctf_encoding_RIMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
cctf_encoding_RIMMRGB` definition n-dimensional arrays support.
"""
X = 0.18
X_p = cctf_encoding_RIMMRGB(X)
X = np.tile(X, 6)
X_p = n... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.cctf_encoding_RIMMRGB` definition n-dimensional arrays support.
| test_n_dimensional_cctf_encoding_RIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_domain_range_scale_cctf_encoding_RIMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
cctf_encoding_RIMMRGB` definition domain and range scale support.
"""
X = 0.18
X_p = cctf_encoding_RIMMRGB(X)
d_r = (("reference", 1), (... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.cctf_encoding_RIMMRGB` definition domain and range scale support.
| test_domain_range_scale_cctf_encoding_RIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_cctf_decoding_RIMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
cctf_decoding_RIMMRGB` definition.
"""
np.testing.assert_allclose(
cctf_decoding_RIMMRGB(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.cctf_decoding_RIMMRGB` definition.
| test_cctf_decoding_RIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_n_dimensional_cctf_decoding_RIMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
cctf_decoding_RIMMRGB` definition n-dimensional arrays support.
"""
X_p = 0.291673732475746
X = cctf_decoding_RIMMRGB(X_p)
X_p = np.tile(X_p,... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.cctf_decoding_RIMMRGB` definition n-dimensional arrays support.
| test_n_dimensional_cctf_decoding_RIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.