Barrel distortion

Is there any image processing function in LibRaw for correcting Barrel distortion?


No. Use lensfun.


Use lensfun.

-- Alex Tutubalin @LibRaw LLC


Sorry to say that I am new in this field.
what is this lensfun?



using distortion info stored in the Panasonic raw file

Unfortunately, lensfun (used bu darktable) doesn't correct the barrel distortion completely,
I have a wide angle shot with my Lumix DMC-FZ1000 where there are still distortions and dark areas near the corners which are not present if the raw file is processed by Silkypix (software distributed with the camera).

Lensfun does not use the embedded lens distortion parameters which are stored in each .rw2 raw file -

Which infrastructure of libraw could be used to implement distortion correction based on these data?

Many thanks for a hint,

The only thing LibRaw can do

The only thing LibRaw can do for you is simplify EXIF parsing: you may install your own callback to receive all EXIF tags to catch tag 0x119 (as raw tag dump)

There is no barrel correction code in LibRaw postprocessing.

-- Alex Tutubalin @LibRaw LLC