Fuji X Lens Calibration

Tips, Tricks, and Results
nipponichi
Posts: 35
Joined: Sun Jan 12, 2014 9:33 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit

Fuji X Lens Calibration

Post by nipponichi »

I started to create Fuji X lens calibration profiles for ASP, with a little success.
For some lenses I found the data at lensfun, others are available but not convertible due to different format.

Unfortunately the camera (X-E1) is not detected automatically. I don't know why, the name in profile is same as model name in EXIF.
And for detection of lens ASP probably requires an additional file like "profile_fujilenstable" with lens IDs I couldn't figure out yet for Fuji.

So for XF18, XF35, XF18-55 and XC16-50 I can manually apply the correction.

Does anyone have an idea about the autodetection / Fuji lens IDs?

Additions to profile_fujifilm.txt:

Code: Select all

begin camera
group: fujiX
multiplier: 1.5
menu_make: Fujifilm
menu_model: X-E1
exif_make: FUJIFILM
exif_model: X-E1
end

begin lens
group: fujiX
multiplier: 1.5
aperture: 2.0
menu_lens: XF18mmF2 R
cal_abc:  18.0 -0.01002 0.01206 -0.03947
end

begin lens
group: fujiX
multiplier: 1.5
aperture: 1.4
menu_lens: XF35mmF1.4 R
cal_abc:  35.0 0.00729 -0.02422 0.02113
end

begin lens
group: fujiX
multiplier: 1.5
aperture: 3.5
menu_lens: XC16-50mmF3.5-5.6 OIS
cal_abc:  16.0  0.02487 -0.09617  0.03106
cal_abc:  22.2  0.00843 -0.03427  0.01287
cal_abc:  28.2  0.01218 -0.05193  0.0513
cal_abc:  34.0 -0.00417  0.01591 -0.02319
cal_abc:  41.8  0       -0.00159  0
cal_abc:  50.0  0        0.00416  0
end

begin lens
group: fujiX
multiplier: 1.5
aperture: 2.8
menu_lens: XF18-55mmF2.8-4.0 OIS
cal_abc:  18.0 0.02808 -0.10604 0.07041
cal_abc:  22.3 0.01298 -0.03695 0.01899
cal_abc:  27.7 0.03709 -0.11695 0.1187
cal_abc:  35.8 0.02942 -0.08799 0.09673
cal_abc:  44.4 0.00611 -0.00562 0.0159
cal_abc:  55.0 0.00491 -0.00114 0.01427
end
ferdinand-paris
Posts: 224
Joined: Sun Feb 05, 2012 4:37 am
operating_system: Windows XP Pro
System_Drive: C
32bit or 64bit: 32 Bit
motherboard: GA-X58A-UD3R
processor: 3.20 gigahertz Intel Core i7 960
ram: 4Gb
Video Card: NVIDIA GeForce 7300 GS
sound_card: Realtek High Definition Audio on-board
Hard_Drive_Capacity: 2500 Gb
Monitor/Display Make & Model: Eizo CG222W

Re: Fuji X Lens Calibration

Post by ferdinand-paris »

I have the same problem. I had the exact same problem several years ago with the NEX-7. I just checked again and while it now detects the camera (NEX-7) it doesn't detect the lens. Which makes it very hard to use, since it's not always obvious when lens was used just from the focal length. With Fuji it doesn't even detect the camera.

Don't hold your breath.
nipponichi
Posts: 35
Joined: Sun Jan 12, 2014 9:33 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit

Re: Fuji X Lens Calibration

Post by nipponichi »

Typical software can show the used lens from EXIF in Fuji RAF-Files - ASP of course not.
So selecting the lens manually is a workaround until Corel manages it to add the lenses.
But from bad experience this will take years.
Kneops
Posts: 212
Joined: Fri May 09, 2014 2:43 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit
motherboard: ASUS P8 Z68
processor: Intel i7 2600
ram: 16GB
Video Card: nVidia 450
sound_card: onboard
Hard_Drive_Capacity: 14 TB
Monitor/Display Make & Model: Dell U2713H & Spider4
Corel programs: ASP3

Re: Fuji X Lens Calibration

Post by Kneops »

I'm interested in this as well. I also read somewhere that lens correction data is present in M43 raw files, but at this point ASP is not readin this information. Is that true?

I created the profile_fujifilm.txt file, but where do I need to put this?
Kneops
Posts: 212
Joined: Fri May 09, 2014 2:43 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit
motherboard: ASUS P8 Z68
processor: Intel i7 2600
ram: 16GB
Video Card: nVidia 450
sound_card: onboard
Hard_Drive_Capacity: 14 TB
Monitor/Display Make & Model: Dell U2713H & Spider4
Corel programs: ASP3

Re: Fuji X Lens Calibration

Post by Kneops »

I have another question, because I encountered this post: http://inphotos.org/2012/03/15/adventur ... rshot-pro/

I have the gimp lensfun library and want to try and create some profiles with it for Fuji lenses. In the article it is said that changes have to be made to /opt/AfterShotPro/supportfiles/Profiles/LensProfiles/fuji_profiles.txt, but that would be overwritten when an update of ASP is done. Can I also place it somewhere in the .AfterShotPro folder so it will be safe during updates?
afx
Posts: 1675
Joined: Thu Jan 12, 2012 1:38 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit
Video Card: FirePro 4900
Monitor/Display Make & Model: NEC PA301w, ColorMunki
Location: München

Re: Fuji X Lens Calibration

Post by afx »

Kneops wrote: Can I also place it somewhere in the .AfterShotPro folder so it will be safe during updates?
Unfortunately not.

But if you post the values here, we can ask Corel to include them.

cheers
afx
Send bugs to the Monkey // AfterShot Kickstart Guide // sRGB clipping sucks and Adobe RGB is just as bad
Bibble since 2005 // W7 64 on quad Phenom // Ubuntu 14.4 on quad i7 and dualcore AMD // Images
nipponichi
Posts: 35
Joined: Sun Jan 12, 2014 9:33 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit

Re: Fuji X Lens Calibration

Post by nipponichi »

Kneops wrote:I have the gimp lensfun library and want to try and create some profiles with it for Fuji lenses. In the article it is said that changes have to be made to /opt/AfterShotPro/supportfiles/Profiles/LensProfiles/fuji_profiles.txt, but that would be overwritten when an update of ASP is done. Can I also place it somewhere in the .AfterShotPro folder so it will be safe during updates?
I took all Fuji X profiles from lensfun that are available and that fit to the abc-mechanism used by ASP.
I think it means not that much work to add the data above to the profile_fujifilm.txt file after each upgrade.

Below is a temporary solution for the XF10-24.
It is NOT calibrated but adapted to the JPGs the camera creates, i.e. the abc-values were tweaked until it looked (nearly) the same as the original JPG.
As you can see at http://www.photozone.de/fuji_x/887-fuji ... is?start=1, the camera-internal lens correction is also not perfect.
Better than nothing from Corel ...

Code: Select all

begin lens
group: fujiX
multiplier: 1.5
aperture: 4.0
menu_lens: XF10-24mmF4 R OIS
cal_abc:  10.0 0.00000 -0.02600 0.01500
cal_abc:  11.5 0.00000 -0.01000 0.00000
cal_abc:  13.8 0.00000 -0.00100 0.00000 
cal_abc:  15.9 0.00000  0.00100 0.00300 
cal_abc:  17.4 0.00000  0.00300 0.00450
cal_abc:  21.9 0.00000  0.00200 0.00800 
cal_abc:  24.0 0.00000  0.00000 0.01200
end
Kneops
Posts: 212
Joined: Fri May 09, 2014 2:43 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit
motherboard: ASUS P8 Z68
processor: Intel i7 2600
ram: 16GB
Video Card: nVidia 450
sound_card: onboard
Hard_Drive_Capacity: 14 TB
Monitor/Display Make & Model: Dell U2713H & Spider4
Corel programs: ASP3

Re: Fuji X Lens Calibration

Post by Kneops »

I have been trying to get it right for the XF35 lens, but the information in the lensfun library is with this lens attached to the XPro 1 camera. The result is unsatisfactory. Because I take RAW + JPG images I can compare them and it it not right. I also read in forums that this kind of information is baked into the image files and the Lightroom 'just' reads them, so no need for a library. I really hope ASP will make work of this, because I'm getting pretty good results at the moment with my RAF files.
nipponichi
Posts: 35
Joined: Sun Jan 12, 2014 9:33 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit

Re: Fuji X Lens Calibration

Post by nipponichi »

I don't have the XF35, but the type of camera should not matter here, because of same size/type of sensor etc.
Maybe the camera-internal correction is different what would lead to different "reference"-images.
And look at the photozone distortion analysis, the out-of-cam image is not perfect.

For distortion-issue I now have this workaround (workaround since lens must selected manually). Biggest issue is now noise reduction.
nipponichi
Posts: 35
Joined: Sun Jan 12, 2014 9:33 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit

Re: Fuji X Lens Calibration

Post by nipponichi »

Corel added cameras X-A2, X-T10 to profile_fujifilm.txt, but forgot X-E1, X-E2, X-T1, ... and all lenses. :evil:

To use above lens corrections the used group name "fujiX" should be renamed to "FujifilmX" so that these are also available for X-A2, X-T10, ...
Unfortunately auto-detection is still not working, so for all pictures manufacturer, model and lens must be selected manually (or copied).

Code: Select all

begin camera
group: FujifilmX
multiplier: 1.5
menu_make: Fujifilm
menu_model: X-E1
exif_make: FUJIFILM
exif_model: X-E1
end

begin lens
group: FujifilmX
multiplier: 1.5
aperture: 2.0
menu_lens: XF18mmF2 R
cal_abc:  18.0 -0.01002 0.01206 -0.03947
end

begin lens
group: FujifilmX
multiplier: 1.5
aperture: 1.4
menu_lens: XF35mmF1.4 R
cal_abc:  35.0 0.00729 -0.02422 0.02113
end

begin lens
group: FujifilmX
multiplier: 1.5
aperture: 3.5
menu_lens: XC16-50mmF3.5-5.6 OIS
cal_abc:  16.0  0.02487 -0.09617  0.03106
cal_abc:  22.2  0.00843 -0.03427  0.01287
cal_abc:  28.2  0.01218 -0.05193  0.0513
cal_abc:  34.0 -0.00417  0.01591 -0.02319
cal_abc:  41.8  0       -0.00159  0
cal_abc:  50.0  0        0.00416  0
end

begin lens
group: FujifilmX
multiplier: 1.5
aperture: 2.8
menu_lens: XF18-55mmF2.8-4.0 OIS
cal_abc:  18.0 0.02808 -0.10604 0.07041
cal_abc:  22.3 0.01298 -0.03695 0.01899
cal_abc:  27.7 0.03709 -0.11695 0.1187
cal_abc:  35.8 0.02942 -0.08799 0.09673
cal_abc:  44.4 0.00611 -0.00562 0.0159
cal_abc:  55.0 0.00491 -0.00114 0.01427
end

begin lens
group: FujifilmX
multiplier: 1.5
aperture: 4.0
menu_lens: XF10-24mmF4 R OIS
cal_abc:  10.0 0.00000 -0.02600 0.01500
cal_abc:  11.5 0.00000 -0.01000 0.00000
cal_abc:  13.8 0.00000 -0.00100 0.00000
cal_abc:  15.9 0.00000  0.00100 0.00300
cal_abc:  17.4 0.00000  0.00300 0.00450
cal_abc:  21.9 0.00000  0.00200 0.00800
cal_abc:  24.0 0.00000  0.00000 0.01200
end
Hobgoblin
Posts: 259
Joined: Fri Jan 13, 2012 3:00 am
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit
Location: UK

Re: Fuji X Lens Calibration

Post by Hobgoblin »

nipponichi wrote:
Kneops wrote:I have the gimp lensfun library and want to try and create some profiles with it for Fuji lenses. In the article it is said that changes have to be made to /opt/AfterShotPro/supportfiles/Profiles/LensProfiles/fuji_profiles.txt, but that would be overwritten when an update of ASP is done. Can I also place it somewhere in the .AfterShotPro folder so it will be safe during updates?
I took all Fuji X profiles from lensfun that are available and that fit to the abc-mechanism used by ASP.
I think it means not that much work to add the data above to the profile_fujifilm.txt file after each upgrade.

Below is a temporary solution for the XF10-24.
It is NOT calibrated but adapted to the JPGs the camera creates, i.e. the abc-values were tweaked until it looked (nearly) the same as the original JPG.
As you can see at http://www.photozone.de/fuji_x/887-fuji ... is?start=1, the camera-internal lens correction is also not perfect.
Better than nothing from Corel ...

Code: Select all

begin lens
group: fujiX
multiplier: 1.5
aperture: 4.0
menu_lens: XF10-24mmF4 R OIS
cal_abc:  10.0 0.00000 -0.02600 0.01500
cal_abc:  11.5 0.00000 -0.01000 0.00000
cal_abc:  13.8 0.00000 -0.00100 0.00000 
cal_abc:  15.9 0.00000  0.00100 0.00300 
cal_abc:  17.4 0.00000  0.00300 0.00450
cal_abc:  21.9 0.00000  0.00200 0.00800 
cal_abc:  24.0 0.00000  0.00000 0.01200
end
This is an observation based on my experience with Pentax/Tamron combinations so may not assist you ....
But ...
You may find that including the "calibrated: true/false" option improves ASP lens detection.
Check through some of the other camera/lens definitions and you will see that for the newer ones this is included.
Most of the definitions were imported unedited from Bibble - which did not need or use the option, ASP does appear to expect it.

Code: Select all

begin lens
group: fujiX
multiplier: 1.5
aperture: 4.0
calibrated: true
menu_lens: XF10-24mmF4 R OIS
cal_abc:  10.0 0.00000 -0.02600 0.01500
cal_abc:  11.5 0.00000 -0.01000 0.00000
cal_abc:  13.8 0.00000 -0.00100 0.00000 
cal_abc:  15.9 0.00000  0.00100 0.00300 
cal_abc:  17.4 0.00000  0.00300 0.00450
cal_abc:  21.9 0.00000  0.00200 0.00800 
cal_abc:  24.0 0.00000  0.00000 0.01200
end
nipponichi
Posts: 35
Joined: Sun Jan 12, 2014 9:33 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit

Re: Fuji X Lens Calibration

Post by nipponichi »

Thank you, unfortunately this does not help.
I assume a profile_fujifilmlenstable.txt is missing that is needed for decoding the lens identifers.
Also the camera is still not auto-detected.
xzvf
Posts: 2
Joined: Sat Nov 28, 2015 7:49 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit

Re: Fuji X Lens Calibration

Post by xzvf »

Just a note to say 'thank you' for this information. I just purchased ASP (for Linux) and was a bit dismayed to learn of the lack of support for my X-T1. Luckily, I came across this thread and, after adding 'X-T1' and a couple lenses to 'profile_fujifilm.txt', I have had some success.

Does anyone know of any progress on this? Have to say I was surprised to not see the X-T1 in the menu...
Kneops
Posts: 212
Joined: Fri May 09, 2014 2:43 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit
motherboard: ASUS P8 Z68
processor: Intel i7 2600
ram: 16GB
Video Card: nVidia 450
sound_card: onboard
Hard_Drive_Capacity: 14 TB
Monitor/Display Make & Model: Dell U2713H & Spider4
Corel programs: ASP3

Re: Fuji X Lens Calibration

Post by Kneops »

Yesterday I sat behind the computer of a friend, using Adobe Camera raw. I was 'shocked' to see that I only had to set lens calibration/correction to the preferences and voilà.
This is absolutely a must have feature in any raw image converter software. So please ASP....
nipponichi
Posts: 35
Joined: Sun Jan 12, 2014 9:33 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit

Re: Fuji X Lens Calibration

Post by nipponichi »

For more than one year Corel didn't manage to implement lens correction/autodetection for Fuji.
As ASP-owner better do not look at competitors, even freeware ...
ASP is just a hobby for me (testing and forgetting), normally I use darktable.