AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO

Bug -- ExposureContrastTransform: imperfect inverses in "log" mode

Open
#1,661 0 comments 0 reactions 0 assignees View on GitHub
Needs Discussion
Dominant language
C++
Stars
2.1k
Forks
503
PR merge metrics
No merged PRs in 30d

Description

We discovered that inverse "log"-style ExposureConstrastTransforms do not seem to behave as expected when certain parameters are set to non-default values

For example:
```
# In "Log" mode, when setting both *exposure* AND *logExposureStep* to
# non-default values, transform inverses do not cancel out (when applied as discrete processors)

xf = ocio.ExposureContrastTransform(
style=ocio.EXPOSURE_CONTRAST_LOGARITHMIC,
exposure=-2.0,
logExposureStep=0.0571
)
```

Here's a notebook that demonstrates what I mean:
https://gist.github.com/zachlewis/7b2bfc1f2fae115a32bf2232b7515442

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.