Fujifilm lens correction tags

Started by kznsq, March 19, 2018, 07:45:07 AM

Previous topic - Next topic

kznsq

Hi,

I have found some issues with the tags:
 
    0xf00b => 'GeometricDistortionParams', #9 (rational64s[23, 35 or 43])
    0xf00f => 'ChromaticAberrationParams', # (rational64s[23])
    0xf010 => 'VignettingParams', #9 (rational64s[31 or 64])

for example, I suppose that the 'GeometricDistortionParams' does not contain exactly rational64s[23, 35 or 43]

1 First int32 is some number (3506 for example, what does it mean?)
2 Second int32 is a number of points, not the denominator (11 in case of 23 elements)
3 X-coordinates in rational64s format (11 in case of 23 elements)
4 Y-coordinates in rational64s format (11 in case of 23 elements)

These points describe curves of lens distortions

GeometricDistortionParams: 23 elements
3605
0, 0
0.1, -0.1
0.2, -0.286
0.3, -0.639
0.4, -1.242
0.5, -2.06
0.6, -2.966
0.7, -3.934
0.8, -4.922
0.9, -5.827
1, -6.542


Phil Harvey

Interesting.  Thanks for the information.

ExifTool is extracting as rationals because that is the format specified in the IFD.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

kznsq

The first int32 value is very similar to the half diagonal of a visible part of a raw image.
sqrt((4896/2)^2 + (3264/2)^2) == 2942

I have tested some files:

Camera                      Value | Image size  |   Raw Size   | 
-----------------------------------------------------------------
Fujifilm X-Pro        2942  | 4896x3264 |  5120x3288 |
Fujifilm X-Pro2             3605  | 6000x4000 |  6160x4032 |
Fujifilm FinePix S1    2890  | 4608x3456 |  4624x3470 |  2880 instead of 2890
Fujifilm X-E2       2942  | 4896x3264 |  4992x3296 |
Fujifilm GFX 50S            5160  | 8256x6192 |  9216x6210 |