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
Automatic CA correction failure #5800
Comments
Thanks! That does fix the problem for my image with the latest version in dev. It results in a much larger value of I suspect that there might still be something wrong in the case where |
To get a good result from raw ca-correction, you need a good preprocessing white balance. That's also the case for a good demosaic result. If you shoot for example uniwb (fixed white balance in camera), RT has to use preprocessing auto-wb before, because in this case the wb reported by the camera will be wrong. If you set your Camera to Auto-Wb, the new feature will use this wb for prepocessing and demosaic, and if the wb is good, you will get good results. Imho there no changes needes to the current raw-ca-correction algorithm. Better to get correct input for correct output. But that maybe only my point of view. Ingo |
The automatic CA correction under "Sensor with Bayer Matrix" fails for one specific raw file. This file was taken with a sharp macro lens so doesn't really need any correction. I understand the algorithm isn't expected to work perfectly in all cases but I suspect this might be worth looking into.
These screenshots show the file opened and zoomed to 1:1 with Neutral profile and the auto CA correction turned on and off. Note the red and green artifacts on edges in the first image:
The raw file from my Olympus E-P5 is at:
https://paolodepetrillo.github.io/P6124975.orf
https://paolodepetrillo.github.io/P6124975.orf.pp3
I am using version 5.8, but the problem also occurred with the AppImages of 5.4 and 5.5, and also with Darktable which uses the same CA correction code.
I'm not familiar with how the algorithm works, but I think the problem might be occurring here:
RawTherapee/rtengine/CA_correct_RT.cc
Line 809 in d033dbc
For my image, on the first pass,
numblox[1]
is 27. This value falls between 32 and 10, so it changespolyord
andnumpar
but leavesprocesspasstwo
true.If I comment this out so that it does not change
polyord
andnumpar
, then the problem does not occur and it makes almost no change to the image, as expected since the image doesn't seem to need any CA correction.The text was updated successfully, but these errors were encountered: