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
tone equalizer: eigf does not tolerate adding contrast to the mask #10034
Comments
@aurelienpierre |
You simply need to reduce the contrast here… |
Of course, because the vanilla GF is not exposure-invariant and therefore blurs the shadows more heavily than the highlights. |
In
IMO becomes equal to itself, there is no blending and no blur at all. So vanilla gf blurs shadows too much, but eigf too little. @aurelienpierre if you are interested I can provide a test I have done with synthetic images that demonstrates current eigf applies no blur at all in deep shadows and the proposed modification improves a lot |
By the way in the documentation comments at the top of eigf.h, it says
but the code implements variance / (pixel_value * average) instead. |
I don't understand the goal here. Nobody said that any filter was immune to bad contrast values. Instead, the contrast correction is meant to make the mask more manageable. So the contrast has to be set such that the filter behaves, it's not for the filter to accommodate insane contrast settings. It's a purely technical control that is only meant to push the filters in their sweet spot. If instead it makes them fail, then it's ill-set. It's not artistic, anyway it has no direct aesthetical effect on the picture at the end. |
During my tests for developing #10027, I stumbled upon what I believe is an issue of the eigf default TE algorithm, and in particular of its surface blur. I will illustrate here how to reproduce with an example.
Start with an edit and roughly adjust exposure, filmic etc.
The pic is a bit hazy, so say I want to deepen shadows with TE. I dial some negative exp compensation to roughly center the mask
histogram looks quite compressed, I need to add some contrast to set apart shadows from the rest of the image.
I dial in some contrast, making sure I get no orange warnings in the grey bar
but now look how in the mask there no surface blur anymore in shadows and most of them went pitch black.
If I now try to lower shadows:
I get artifacts
because there is no longer detail preservation.
Note that the guided filter algorithm does not show that problem, I can actually apply way more contrast to the mask without adverse effects
The text was updated successfully, but these errors were encountered: