Defines various linear to log and log to linear conversion functions:
See also
References
[1] | Sony Imageworks. (2012). make.py. Retrieved November 27, 2014, from https://github.com/imageworks/OpenColorIO-Configs/blob/master/nuke-default/make.py |
Defines the linear to Cineon conversion function.
Parameters: |
|
---|---|
Returns: | Cineon value. |
Return type: | numeric |
Examples
>>> linear_to_cineon(0.18)
0.4573196...
Defines the Cineon to linear conversion function.
Parameters: |
|
---|---|
Returns: | Linear value. |
Return type: | numeric |
Examples
>>> cineon_to_linear(0.45731961308541841)
0.18...
Defines the linear to Panalog conversion function.
Parameters: |
|
---|---|
Returns: | Panalog value. |
Return type: | numeric |
Examples
>>> linear_to_panalog(0.18)
0.3745767...
Defines the Panalog to linear conversion function.
Parameters: |
|
---|---|
Returns: | Linear value. |
Return type: | numeric |
Examples
>>> panalog_to_linear(0.37457679138229816)
0.1...
Defines the linear to REDLog conversion function.
Parameters: |
|
---|---|
Returns: | REDLog value. |
Return type: | numeric |
Examples
>>> linear_to_red_log(0.18)
0.6376218...
Defines the REDLog to linear conversion function.
Parameters: |
|
---|---|
Returns: | Linear value. |
Return type: | numeric |
Examples
>>> red_log_to_linear(0.63762184598817484)
0.1...
Defines the linear to ViperLog conversion function.
Parameters: |
|
---|---|
Returns: | ViperLog value. |
Return type: | numeric |
Examples
>>> linear_to_viper_log(0.18)
0.6360080...
Defines the ViperLog to linear conversion function.
Parameters: |
|
---|---|
Returns: | Linear value. |
Return type: | numeric |
Examples
>>> viper_log_to_linear(0.63600806701041346)
0.1799999...
Defines the linear to Josh Pines style pivoted log conversion function.
Parameters: |
|
---|---|
Returns: | Josh Pines style pivoted log value. |
Return type: | numeric |
Examples
>>> linear_to_pivoted_log(0.18)
0.4349951...
Defines the Josh Pines style pivoted log to linear conversion function.
Parameters: |
|
---|---|
Returns: | Linear value. |
Return type: | numeric |
Examples
>>> pivoted_log_to_linear(0.43499511241446726)
0.1...
Defines the linear to Canon Log conversion function.
Parameters: |
|
---|---|
Returns: | Canon Log value. |
Return type: | numeric |
References
[2] | Thorpe, L. (2012). CANON-LOG TRANSFER CHARACTERISTIC. Retrieved from http://downloads.canon.com/CDLC/Canon-Log_Transfer_Characteristic_6-20-2012.pdf |
Examples
>>> linear_to_c_log(0.20) * 100
32.7953896...
Defines the Canon Log to linear conversion function. [2]
Parameters: |
|
---|---|
Returns: | Linear value. |
Return type: | numeric |
Examples
>>> c_log_to_linear(32.795389693580908 / 100)
0.19999999...
Supported linear to log computations methods.
Supported log to linear computations methods.
Converts from linear to log using given method.
Parameters: |
|
---|---|
Returns: | Log value. |
Return type: | numeric |
Examples
>>> linear_to_log(0.18)
0.4573196...
>>> linear_to_log(0.18, method='ACEScc')
0.4135884...
>>> linear_to_log(0.18, method='PLog', log_reference=400)
0.3910068...
>>> linear_to_log(0.18, method='S-Log')
0.3599878...
Converts from log to linear using given method.
Parameters: |
|
---|---|
Returns: | Log value. |
Return type: | numeric |
Examples
>>> log_to_linear(0.45731961308541841)
0.18...
>>> log_to_linear(0.41358840249244228, method='ACEScc')
0.18...
>>> log_to_linear(0.39100684261974583, method='PLog', log_reference=400)
0.1...
>>> log_to_linear(0.35998784642215442, method='S-Log')
0.1799999...