PanasonicRAW Tag 0x011C

Started by Klaus_Homeister, July 22, 2018, 10:56:24 AM

Previous topic - Next topic

Klaus_Homeister

Hi Phil

older cams without this Tag have already gamma-corrected RAW-data.
Newer Cams _with_ this Tag need to carry out an gamma-Correction with this gamma here to get _linear_ RAW-Data.
(This has to be done after WB)

value/256.0f = linearization-gamma

-Klaus

Phil Harvey

Hi Klaus,

Thanks.  I'll decode this as "Gamma".

- 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 ($).

Klaus_Homeister

Hi Phil,

on some Night Scenes this value can get below int 256.
Gamma would become <1.0.

Looks like value is to divide by 100.0f instead of 256.0f when the gamma gets below lowlimit 1.0.

Images looking good in those cases .. for example Gamma 2.12 or 2.41 instead of 0.82 or 0.95.
Thats on my GX-8 on some night-shots.

And on a G9 I have seen for those scenes gammas above 5.0.
There it looks like value is to divide by 1024.0f instead of 256.0f when the gamma gets above highLimit 5.0.
THEN the image gets close to embedded jpgs. Otherwise too bright.

And for general I assume this style of coding small floats this way especially for many parts of debug-data like'WB-Part'.

Default divide by 256.0f
If this gets below a lowLimit (<=1.0) divide by 100.0f
And if it gets above a highLimit (>=5.0?) divide by 1024.0f

 
-Klaus

Phil Harvey

What about a high limit of 4?  Then

>= 1024 divide by 1024
else >= 256 divide by 256
else divide by 100

- 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 ($).