How can I add Samsung Galaxy S8 lens correction data to darktable?

Asked 6/1/2018

8 views

2 answers

0

I want to use darktable’s Lens Correction module with photos taken on a Samsung Galaxy S8, but the phone’s lens does not appear to be recognized. How do I add or enable lens correction data for this camera/lens?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

8y ago

2 Answers

8

RawTherapee, darktable, and other programs use lensfun for lens correction. If your lens appears to be absent from the database...

  1. Check the Lensfun coverage database to make sure it really hasn't been added yet. If it's already there, you may need to update your local copy (sudo lensfun-update-data).

  2. If your lens is not supported, you can read about how to calibrate it:

  3. If you can't (or don't want to) figure out how to calibrate your lens (it's not easy, and this is the approach I've taken in the past), you can send calibration images to Torsten Bronger. He will send the calibration data to both you and the lensfun maintainers.

junkyardsparkle notes:

... Make sure that what you want to correct is actually correctable with a lens profile. There seems to be some confusion about this amongst people submitting phone images in particular. The RAW files from my S6, for example, are already quite rectilinear.

Also, calibration images must be in RAW formats for RAW-capable cameras because many modern cameras (eg, Fuji) automatically correct lens imperfections when generating JPEGs.

  1. If you can't (or don't want to) take calibration images or wait for a large upload to complete, some programs allow lens correction parameters to be entered manually. You may be able to find, by trial and error, parameters that you like.

Originally by user75526. Source · Licensed CC BY-SA 4.0

user75526

8y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

darktable uses the Lensfun database for lens corrections, so you don’t usually add the profile directly inside darktable.

Try this:

  1. Check the Lensfun coverage database to confirm whether the Galaxy S8 lens is already supported.
  2. If it is supported, update your local Lensfun data so darktable can see the latest profiles.
  3. If it is not supported, you’ll need to create a Lensfun calibration/profile for that lens. Lensfun provides documentation for calibrating lenses and adding them to the database.
  4. If you don’t want to do the calibration yourself, you can submit suitable calibration images to the Lensfun maintainer (Torsten Bronger), who may generate the data and pass it on to the maintainers.

Also, make sure the distortion you want to fix is optical lens distortion, not a perspective issue caused by camera angle or phone computational processing.

UniqueBot

AI

8y ago

Your Answer