Lens correction via lensfun project

Tips, Tricks, and Results
Post Reply
Marko_S
Posts: 2
Joined: Tue Jun 09, 2015 6:35 am
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit

Lens correction via lensfun project

Post by Marko_S »

Hello,

I found a hint how to use the distortion data form the lensfun project with AfterShot. Similar to other blocks in the file profile_panasonic.txt, i replace the block with FZ200 in it with the following:


begin lens
group: panasonicFZ200
multiplier: 5.56
menu_lens: Standard
cal_abc: 4.5 0.02263 -0.08126 -0.02068
cal_abc: 6.4 0.02901 -0.09166 0.02698
cal_abc: 6.6 0.03178 -0.10015 0.03574
cal_abc: 9.1 0.01355 -0.0436 0.00536
cal_abc: 11.4 0 -0.01092 0
cal_abc: 18.7 0.01289 -0.04634 0.02406
cal_abc: 21.8 0 -0.00838 0
cal_abc: 33 0 -0.00853 0
cal_abc: 39.1 0 -0.00806 0
cal_abc: 53.4 0 -0.00832 0
cal_abc: 74.3 0 -0.00968 0
cal_abc: 108 0 -0.00966 0
end

begin camera
group: panasonicFZ200
multiplier: 5.56
menu_make: Panasonic
menu_model: DMC-FZ200
exif_make: Panasonic
exif_model: DMC-FZ200
end


These parameters are working fine with AfterShot and the FZ200. Is it possible to include all the data form the lensfun project in AfterShot - maybe in a future version ?

Regards, Marko
bifer
Posts: 33
Joined: Sun Jan 17, 2016 1:07 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: i7-4720 HQ 2.60 GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 960M + Intel HD4600
Hard_Drive_Capacity: SSD 1+2TB
Corel programs: ASP3, PSP2018 + VS2018 Ultimate

Re: Lens correction via lensfun project

Post by bifer »

Just for an example I've edited the profile_panasonic.txt to include my Panasonic Lumix DMC-LX100 based on the parameters found in the lensfun project. The distortion correction from lensfun isn't correct. It looks like I have todo all the calibration myself. ASP2 is disappointing me more and more and I really started to "use (trying to use)" it a few days ago.
FotoLars
Posts: 35
Joined: Thu Jan 12, 2012 11:58 am
operating_system: Linux
System_Drive: X
32bit or 64bit: 64 Bit
motherboard: Intel D975XBX2
processor: Intel QuadCore Q6700
ram: 8 GB
Video Card: NVIDIA Quadro NVS 295
Hard_Drive_Capacity: 8 TB
Monitor/Display Make & Model: 2xDell 30", 5120x1600 (2x2560x1600)

Re: Lens correction via lensfun project

Post by FotoLars »

bifer wrote:Just for an example I've edited the profile_panasonic.txt to include my Panasonic Lumix DMC-LX100 based on the parameters found in the lensfun project. The distortion correction from lensfun isn't correct. It looks like I have todo all the calibration myself. ASP2 is disappointing me more and more and I really started to "use (trying to use)" it a few days ago.
Hi bifer,

If you can get access to a linux based environment, or possibly setup a cygwin environment, you can follow the calibration procedure that I describe in http://forum.corel.com/EN/viewtopic.php?f=95&t=45815.

The correction values become as correct as much effort you put in when taking the suitable calibration photos and performing the calculations - if you are calibrating a zoom lens, change the focal length maximum 10% before you take a new photo, all with a good and the same background, please see some of the photos attached for how a descent background needs to look. afx provided a very handy script (http://forum.corel.com/EN/download/file.php?id=2537) that automates some of the handling quite a bit - please read a bit in the thread...

I calibrated a number of Nikkor and 3rd party lenses for Nikon, and equipped BibbleLabs/Corel with these values, so they are since long included in the default lens calibration data file.

If you are careful and ambitious when taking photos and performing the calibration, you can get better correction than the usual commercial RAW handling programs available provide :) !


Cheers and good luck,

Lars Nilsson
Lund, Sweden
bifer
Posts: 33
Joined: Sun Jan 17, 2016 1:07 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: i7-4720 HQ 2.60 GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 960M + Intel HD4600
Hard_Drive_Capacity: SSD 1+2TB
Corel programs: ASP3, PSP2018 + VS2018 Ultimate

Re: Lens correction via lensfun project

Post by bifer »

FotoLars wrote:
bifer wrote:Just for an example I've edited the profile_panasonic.txt to include my Panasonic Lumix DMC-LX100 based on the parameters found in the lensfun project. The distortion correction from lensfun isn't correct. It looks like I have todo all the calibration myself. ASP2 is disappointing me more and more and I really started to "use (trying to use)" it a few days ago.
Hi bifer,

If you can get access to a linux based environment, or possibly setup a cygwin environment, you can follow the calibration procedure that I describe in http://forum.corel.com/EN/viewtopic.php?f=95&t=45815.

The correction values become as correct as much effort you put in when taking the suitable calibration photos and performing the calculations - if you are calibrating a zoom lens, change the focal length maximum 10% before you take a new photo, all with a good and the same background, please see some of the photos attached for how a descent background needs to look. afx provided a very handy script (http://forum.corel.com/EN/download/file.php?id=2537) that automates some of the handling quite a bit - please read a bit in the thread...

I calibrated a number of Nikkor and 3rd party lenses for Nikon, and equipped BibbleLabs/Corel with these values, so they are since long included in the default lens calibration data file.

If you are careful and ambitious when taking photos and performing the calibration, you can get better correction than the usual commercial RAW handling programs available provide :) !


Cheers and good luck,

Lars Nilsson
Lund, Sweden
Thanks for the suggestion.
Sorry I'm not that familiar with Linux or even cygwin of that matter. This isn't a option to me.

Even I have a lcp for that camera someone made and published in the internet I'm not able to get a lensfun version of it due to the fact of not being familiar with Linux or cygwin.
Post Reply