Closed kfjahnke closed 9 months ago
I think it is correct. We take that "raw:aber" attribute and directly pass those values in the imgdata.params.aber[]
parameter block to libraw.
On the other hand, dcraw itself takes its command line arguments and inverts them before passing to libraw, as you can see here: https://github.com/ncruces/dcraw/blob/master/dcraw.c#L10166
I think it makes more sense for us to directly map our attribute to libraw's controls. Nowhere in OIIO documentation or raw support do we imply that we're trying to emulate the naming or other conventions of dcraw's command line options exactly. It would be nice if that corresponds, too, but unfortunately dcraw doesn't present the same interface as libraw in terms of this parameter.
Ah, that explains it! The code you point to does precisely what produces the behaviour I noticed: it converts the chromatic aberration arguments to their reciprocal values. Maybe you could put a little hint into the documentation to point out that the parameters don't necessarily map to dcraw parameters - just to save other users the wild goose chase.
Thanks for the clarification - I take the liberty to close this issue.
My Samyang fisheye produces quite strong chromatic aberration. When I convert the images with dcraw, I invoke the chromatic aberration correction using the parameter -C 0.9996 0.9996. Now I tried the same with oiio, passing raw:aber like this:
The resulting image has chromatic aberration and does not look like the output of dcraw with -C 0.9996 0.9996. I played around with the parameters for a while, and I found that I could reproduce dcraw's output passing the reciprocal values instead, so float aber[2] = { 1.0f/.9996f, 1.0f/.9996f } ;
OpenImageIO version and dependencies
Please run
oiiotool --buildinfo
and paste the output here.That's quite a mouthful. Okay, here it comes:
Also please tell us if there was anything unusual about your environment or nonstandard build options you used.
No. ordinary package from debian12 stable.
I can provide a test image, if you like.