Beep6581 / RawTherapee

A powerful cross-platform raw photo processing program
https://rawtherapee.com
GNU General Public License v3.0
2.87k stars 322 forks source link

Camconst.json updates #2332

Closed Beep6581 closed 9 years ago

Beep6581 commented 9 years ago

Originally reported on Google Code with ID 2348

Updated camconst.json file with 

- Changes and additions in embedded text
Added an insist to not use the negative numbers method
Added clarifications about "masked area"
Changed the text about conservatism on measured values to more conservative :)

-- Changes in data

- added missing values for Canon 5D3 (but now I see that I forgot to correct ISO 160,320,640,..
levels from 13300 to the more conservative 13250 )
- add more Canon models with (almost) complete per ISO and aperture white levels
6D, 40D, 50D, 60D, 70D, 650D

- added corrections for some models which have problems with dcraw code
Canon S120 (raw crop)
Nikon D3300 (black level - matrix), D5300 (white level)
Olympus EP-M2 (white level)
Panasonic TZ60-61/ZS40-41 (matrix from dcp, added the  different names of the same
model), GX-7 and LF-1 (white level, need some more research) 
Sony NEX-5N (raw crop), ILCE-3000 (raw crop), 5000 (color matrix and raw crop), A7R,
(raw crop)
Now I see that I have wrong descriptions of corrections in camconst.json for ILCE-3000/5000.
The above are the correct .. no time to make a new patch now ..  

- added new models not existing in dcraw 9.20
Quality A: Fujifilm S1, Nikon D4s, , Olympus EM-10, Samsung NX30, Sony ILCE6000, 
Quality C: Canon Powershor G1-X .. here we will need a way to read and apply the two
different aspect ratios (3/2 - 4/3) depending on exif info

- added new models not existing in dcraw 9.20 nor the newest Adobe 
Panasonic GH4 .. preliminary support, measured the Black and white levels, color matrix
calculated from DxO D50 matrix

Here and for all Panasonic models we can use the exif data to read the correct Black
levels which are floating and vary significantly from shot to shot ..
According to Iliah Borg and the RawDigger/Libraw team there are six tags describing
the correct black level 
BlackLevelRed, BlackLevelGreen BlackLevelBlue and BlackLevel1 BlackLevel2 Blacklevel3
BL for red is BlackLevelRed + BlackLevel1 + Blacklevel2 + BlackLevel3 and this way
are calculated the red and blue ..
Example from GH4 ISO6400. BlaclevelRed - green - blue are  131 - 126 - 130 and BlackLevel1
- 2 - 3 are 12 - 4 - 1 
So BLred (R) = 148, BLgreen (G1, G2) = 143, BL blue (B) = 147

Tags exist for white level also but I don't know if they are 100% reliable.  

- Removed (commented out) some models for which there is no more need to exist in camconst.json

Sony A99, A77

Sory that my patch is a mess because hg just deleted all the old file and wrote the
corrected so I had to write analytically what I did :( :(  :) :) .

Please take a look ..

I will be away for the next 4-5 days with limited web access. 

Reported by iliasgiarimis on 2014-04-18 00:45:03


Beep6581 commented 9 years ago
Committed in revision 0536e53bb7f3

Reported by entertheyoni on 2015-05-14 12:19:00

Beep6581 commented 9 years ago
Thanks Drslony, indeed I had work done in various places (and may be I lost some :(
)

Now it's easy to write the changelog .

New models not yet supported by Dcraw 9.25_r1.475 or with preliminary support (not
proper matrices in Dcraw etc)

Canon EOS 5Ds, EOs 5Ds R, EOS M3, EOS 760/750
Nikon J5, Nikon D7200 
Samsung NX500 

New entries (old models)
Canon EOS 550D
Nikon D600 (data by Joachip at Rt forums .. thanks :) )
Pentax K10D  .. thanks DrSlony :)

Some preliminary data for old Sigmas SD9, SD10 etc (we have to update the Foveon patches
.. 

New entries with small changes vs Dcraw (a bit more conservative white level, a small
change in raw crop etc per ISO White levels etc)
Fuji X-A2, XQ2, 
OLYMPUS E-M5MarkII
Panasonic TZ70/TZ71/ZS50/ZS51, GF7 (same as GX7)

Corrections based on new data from RT forums and web samples ..
Panasonic FZ1000/leica, CM1 
Fuji X30

Adapted to new Dcraw code about Nikon Black level. Dcraw reads it from exif, then when
we define the BL in camconst.json it is added upon it instead of replacing it (something
like Panasonic's base BL + offset BL ..). So we had to delete the "ranges" : { "black"
: ..
Nikon V3,J4,S2,D750,D5300,D5500,D7200

Reported by iliasgiarimis on 2015-05-14 13:32:58

Beep6581 commented 9 years ago
Updated camconst.json. New models according to DNG 9.1.1 and some corrections for older
models ..

Cameras included are 

Canon G12 (issue2817) - G3 X (new)
Fuji X-T10
Nikon 1 J5 (color matrix from DNG 9.1.1)
Olympus SH2
Panasonic FZ300/FZ330, G7/G70, GX8
Sony RX10II, RX100IV, A7RII

I fail to build a patch so I am just uploading the file ..

Reported by iliasgiarimis on 2015-08-10 00:34:52


Beep6581 commented 9 years ago
Committed in revision 28e2b70cab86

Reported by entertheyoni on 2015-08-10 12:43:55

Beep6581 commented 9 years ago

Let's use a new issue for future updates.