-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix default blend colorspace for contrast equalizer module and dummy IOP #10798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix default blend colorspace for contrast equalizer module and dummy IOP #10798
Conversation
…dule and dummy IOP
@aurelienpierre : I guess this is ok as for the previous same change in other iop and that this can go in 3.8.1, right? |
yes |
@aurelienpierre : Thanks! Merging now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Merged in master and darktable-3.8.x branch. |
Sadly this breaks integration test 0024:
|
This is because it introduces regression on corresponding test: Test 0024-contrast-equalizer Image mire1.cr2 Expected CPU vs. current CPU report : ---------------------------------- Max dE : 32.95917 Avg dE : 4.18790 Std dE : 3.94097 ---------------------------------- Pixels below avg + 0 std : 64.59 % Pixels below avg + 1 std : 86.84 % Pixels below avg + 3 std : 97.71 % Pixels below avg + 6 std : 99.98 % Pixels below avg + 9 std : 100.00 % ---------------------------------- Pixels above tolerance : 61.60 % FAILS: image visually changed see diff.png for visual difference (2.72239e+06 pixels changed) Total test 1 Errors 1 - 0024-contrast-equalizer see test-20220118-141420.log
This is because it introduces regression on corresponding test: Test 0024-contrast-equalizer Image mire1.cr2 Expected CPU vs. current CPU report : ---------------------------------- Max dE : 32.95917 Avg dE : 4.18790 Std dE : 3.94097 ---------------------------------- Pixels below avg + 0 std : 64.59 % Pixels below avg + 1 std : 86.84 % Pixels below avg + 3 std : 97.71 % Pixels below avg + 6 std : 99.98 % Pixels below avg + 9 std : 100.00 % ---------------------------------- Pixels above tolerance : 61.60 % FAILS: image visually changed see diff.png for visual difference (2.72239e+06 pixels changed) Total test 1 Errors 1 - 0024-contrast-equalizer see test-20220118-141420.log
I have reverted the change on master & darktable-3.8.x for now. |
The function |
Right, and this conversion do change a lot the pixels, so clearly this is not an option for this module as we will break all current edits. |
Took another look at things. An iop has three optional functions:
This will presumably add a pair of colorspace conversions any time blending is enabled if the following module takes Lab input. If the following module takes RGB, we need a conversion either way. |
Yes, but do we want that... After all the module is Lab so do we gain something having blending in rgb by default? This looks like a corner case to me and I'm really leaning toward a do-nothing solution on this at this stage. |
Having default blend to rgb we at least loose one thing : we cannot select Lab blending mode anymore. |
Thanks for all of your feedback - I noticed the blend_colorspace() api yesterday, too - still getting familiar with the code base. @TurboGit is right in that it's not possible to select Lab blending any more. Blending is behaves different between Lab and rgb colorspace, so it might impact current edits done with Lab blending? |
Fix Issue #10080: