camconst.json 154 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730
  1. /*
  2. vim: set syntax=javascript:
  3. DO NOT EDIT THIS FILE!
  4. All changes made here will be lost on software update. If you want to add custom values or change existing ones, create
  5. a "camconst.json" file next to your personal "options" file. Its values will then override and/or complete the ones of
  6. this file.
  7. If you add values for your own camera, consider sharing them with the community for everyone's benefit. You can do so
  8. via our forum or GitHub page:
  9. - https://discuss.pixls.us/c/software/rawtherapee
  10. - https://github.com/Beep6581/RawTherapee/issues
  11. Value priority:
  12. 1. If you set the dcraw matrix in your user camconst.json file for a camera entry which already exists in RT's file
  13. (same camera, same model), your values will replace RT's ones.
  14. 2. If you set the black level values in your user camconst.json file for a camera entry which already exists in RT's
  15. file, your values will replace RT's ones, even if RT's ones are more complete and/or detailed. You might want to
  16. copy/paste RT's levels first (if provided) to your user's file and complete/modify them.
  17. 3. Same for the white levels, independent of the black levels.
  18. This file is in JSON format and contains camera constants which RawTherapee uses when parsing raw files.
  19. Raw files themselves unfortunately do not contain all information needed for making a raw conversion. Typically color
  20. response information and black/white levels are missing. That's why this file is needed.
  21. This file is read once during startup, so if the file is updated you need to restart RawTherapee in order for changes to
  22. take effect. The file is not intended for modification by the casual user, but advanced users can add missing camera
  23. information to this file. If you do so, please report using the links above so that we can incorporate your changes for
  24. everyone's benefit.
  25. RawTherapee uses dcraw as the raw format parser. dcraw contains hard-coded camera constants, but not for all cameras,
  26. and the values are not always accurate. For example dcraw only supports one white level, while some cameras have
  27. different white levels per channel and per ISO. If a camera is not listed in this file the constants from dcraw will be
  28. used. If listed here this information will override the constants in dcraw (if any).
  29. Partial information is supported. For example if the raw file itself contains a color matrix then there is no need to
  30. enter it here. A camera whose black level is measured on special pixels in the raw file should only have white levels
  31. here. And so forth.
  32. Examples:
  33. {
  34. // Make and model separated with single space, must match make and model as provided by dcraw (case-insensitive):
  35. "make_model": "ManufacturerA ModelB",
  36. // Some Panasonic and Canon DSLRs (of the lower category, such as Canon 550D) exist/ under alternate naming in
  37. // various marketplaces (EOS 550D, EOS Rebel T2i, EOS Kiss X4).
  38. // For new models that are still not supported by the dcraw version used in current RT, we have to fill all the
  39. // alternate names or else RT will not recognize the alternate model names.
  40. // For models supported by dcraw, filling the alternate names is simply desired (for better user info).
  41. // The format of multiple naming is to write all names in brackets i.e instead of
  42. // "make_model": "Canon EOS 550D",
  43. // type
  44. // "make_model": [ "Canon EOS 550D", "Canon EOS Rebel T2i", "Canon EOS Kiss X4" ],
  45. // ColorMatrix with CIE Standard Illuminant D65, in dcraw format:
  46. "dcraw_matrix": [ 7530, -1942, -255, -4318, 11390, 3362, -926, 1694, 7649 ],
  47. // Black level (or black offset if a base black is already extracted from Exif by dcraw, see Panasonic,
  48. // recent Nikon). For some rare cases where dcraw detects wrong black level we need to correct it with
  49. // absolute black i.e one that is not added up the detected. For this job we have to define "black" as
  50. // 65535+desired_black. For example to correct a wrongly detected black level of 9 instead of the correct
  51. // 600 we define "black": 66135, i.e. 65535+600, and white level same for all colors at all ISOs.
  52. "ranges": { "black": 10, "white": 1000 },
  53. // Crop away masked sensor borders, 10 pixels left, 20 pixels top, resulting image width/height 4000x3000.
  54. // Instead of width/height you can write a negative number which specifies how much of right/bottom border
  55. // that should be removed but keep in mind that sometimes after converting to DNG the borders are already
  56. // cropped so the "negative number" way is not totally safe.
  57. "raw_crop": [ 10, 20, 4000, 3000 ],
  58. // Almost same as MaskedAreas DNG tag, used for black level measuring. Here up to two areas can be defined
  59. // by tetrads of numbers:
  60. "masked_areas": [ 51, 2, 3804, 156, 51, 5794, 3804, 5792 ],
  61. // Two tetrads define two areas. The difference vs "raw_crop" is the meaning of the numbers which here are
  62. // expressing the absolute distance (in pixels) of each side of each rectangular "masked area" from the top
  63. // and left side of the sensor
  64. // - the first number is the distance of the top edge from the sensor's top
  65. // - the second is the distance of the left side from the sensor's left
  66. // - the third is the distance of the bottom side from the sensor's top
  67. // - the fourth is the distance of the right side from the sensor's left
  68. // It is useful after detecting the masked areas, to not fully use these areas but leave a border of 2-4 pixels
  69. // instead, to take care of possible light leaks from the light sensing area to the optically black (masked)
  70. // area or sensor imperfections at the outer borders.
  71. // list of indices of the rows with on-sensor PDAF pixels, for cameras that have such features. The indices here form a pattern that is repeated for the whole height of the sensor. The values are relative to the "pdaf_offset" value (see below)
  72. "pdaf_pattern" : [ 0,12,36,54,72,90,114,126,144,162,180,204,216,240,252,270,294,306,324,342,366,384,396,414,432,450,474,492,504,522,540,564,576,594,606,630 ],
  73. // index of the first row of the PDAF pattern in the sensor (0 is the topmost row). Allowed to be negative for convenience (this means that the first repetition of the pattern doesn't start from the first row)
  74. "pdaf_offset" : 3
  75. },
  76. {
  77. "make_model": "ManufacturerA ModelB",
  78. "dcraw_matrix": [ 7530,-1942,-255,-4318,11390,3362,-926,1694,7649 ],
  79. // Black and white levels per ISO per channel.
  80. // In this example there are only two ISOs - normally the list should be more populated.
  81. // When RawTherapee asks for black/white levels for a specific ISO the closest match is picked.
  82. "ranges": {
  83. "black": [
  84. { "iso": 100, "levels": 10 }, // here only one level, same level for all channels
  85. { "iso": 3200, "levels": [ 50, 60, 50 ] } // 3 levels, G2 same as G1
  86. ],
  87. "white": [
  88. { "iso": 100, "levels": [ 10000, 11000, 10000, 12000 ] }, // 4 levels, G1 and G2 different
  89. { "iso": 3200, "levels": [ 11000, 11000, 10000, 12000 ] }
  90. ]
  91. }
  92. }
  93. How to Measure White Levels:
  94. ----------------------------
  95. dcraw provides the default values used by RawTherapee, but often provides too high white levels, and only provides a
  96. single value regardless of color channel, ISO or aperture. If you open an image with a large clipped area and that
  97. is rendered in a pink/magenta color rather than white it usually means that the white level constant is too high. You can
  98. fix this by adjusting white-point correction in the Raw tab > Raw White Points, or permanently fix it by measuring and
  99. providing a more exact white level in camconst.json so RawTherapee gets to know from start where the camera actually
  100. clips. Providing a complete and detailed white-level profile can be a quite large and complicated effort. As an
  101. alternative you can provide a simpler profile.We suggest one of the following alternatives in rising difficulty
  102. (and generally diminishing return):
  103. A) Provide a single white-level value measured on the native ISO (base ISO). For many cameras this will actually be
  104. complete information, those that don't vary on channel, ISO or aperture.
  105. B) Check through all ISOs and if there are differences in white level provide an array with white level per ISO.
  106. C) In addition to ISO, check for aperture scaling and add that.
  107. D) In addition to ISO and aperture scaling check for color channel differences and add that.
  108. Doing A is often better than nothing, as dcraw's default is often too high.B can also be worthwhile for some cameras (or
  109. else you'll get pink highlights for some ISOs), while C and D can generally be seen as fine-tuning.
  110. Here follows a guide how to measure white levels (clipping levels):
  111. Shoot with your camera into a bright light source, such as a lamp, and make sure the shutter speed is long enough to get
  112. overexposure (we want clipping!). Preferably overexpose lightly, say 1 or 2 stops if you can. The reason for this is that
  113. some cameras with fuzzy white levels may look less fuzzy than they actually are if over-exposure is heavy.
  114. Use f/5.6 or smaller aperture (=larger f-number) to avoid any raw scaling the camera might have for large apertures.
  115. Open the file in a raw analyzer such as RawDigger and check the pixel values for the clipped areas (if you are using
  116. RawDigger, make sure you have disabled"subtract black" in preferences or else sample values can be wrong). In
  117. this stage we always look at white level before black level subtraction! White levels can be different on color
  118. channel (R, G1, B, G2, note the two greens, most often both green channels have the same white level though) and
  119. vary depending on ISO setting, so if you want to provide a complete profile make one shoot for each ISO (even 1/3
  120. steps, so yes it can be quite a lot of pictures to shoot and check).
  121. In addition, many cameras scale the raw values for large apertures. It's generally not that important to cover this, but
  122. if you want to extract most out of the camera you should cover this too. Then you need to shoot with a wide aperture
  123. lens (ideally the widest available from the manufacturer) and test each aperture (1/3 steps) from the widest (say f/1.2)
  124. until the camera stops scaling the raw values (usually f/2.8 or f/4.0). If the camera also have ISO scaling you need to
  125. shoot at these different ISOs to detect any differences in scaling, there can be a bit of variation. If you don't have
  126. access to the widest lens available for the system (say only an f/1.8 lens instead of an f/1.2) it can still be valuable
  127. to have the values down to what you can provide. Brands known to have models that have aperture scaling of white levels
  128. include Canon and Nikon. Note that if white levels are not scaled the camera may have raw scaling anyway (Sony for
  129. example), but as such scaling will not affect raw decoding we don't need to care about that.
  130. PROVIDE CONSERVATIVE VALUES. Most cameras have a little noise at the white level, and some can have a lot. In your raw
  131. analyzer, move around and look at the values in the clipped areas to get a sense of the variation, and/or look at the
  132. histogram. While it's common to with very little variation, say only +/-2 units, some can have +/-500 or more (some may
  133. have different variation depending on ISO). There can also be camera-to-camera variation.
  134. If the white level is set too high RawTherapee will not think the pixels are clipped and you can get discolored
  135. highlights (usually pink), this is what we want to avoid. If white level is set too low RawTherapee will clip early, ie
  136. you lose a little highlight detail, but the color is rendered correctly and highlight reconstruction can work properly,
  137. so this is not as bad. This is why we want conservative values.
  138. By conservative values we mean that if you see a white level of most often 15760 and occasionally 15759 (i.e. very small
  139. variation of white level which is a common case), you set the white level around 50-100 14-bit units below or
  140. 10-20 12-bit units. Say at 15700 in this example, or 4080 instead of 4095 for 12-bit raws. This way we get a little margin
  141. from noise and camera variation. Since sensor raw values are linear, you lose, for example,
  142. log2(1-50/15760) = -0.005 stops of detail, i.e. irrelevant. Thus it is better to provide RawTherapee with knowledge
  143. where the image clips rather than keeping that last 0.005 stop of highlight information and risking that clipping will
  144. not be detected properly.
  145. It is very usual for white level to be a bell distribution instead of a candle when the camera applies long exposure
  146. noise reduction (LENR) by subtracting a black frame and/or when the system is destabilized due to temperature. Some models have
  147. always a bell distribution at WL. If you have a fuzzy white level look at the linear histogram; you will probably see a
  148. normal/Gaussian distribution (bell shape) noise peak at clipping and probably also a peak at a hard raw data clip level
  149. usually at or close to a power of two - 1, such as 4095 or 16383. Then you pick a value just before the bell shape
  150. rises, i.e. to the left of the bell meaning that you cut away the whole fuzzy noise peak. If a little of the starting edge
  151. of the noise will be included it's not harmful, but 99% of it should be above. This would mean that it's better to
  152. measure white level on long exposure/high temp raws but since this if difficult and time consuming we choose to measure
  153. on normal raws and cover the abnormalities with the conservative WL values. A more detailed approach when we only have
  154. non-LENR measures is to subtract a value according to per ISO read noise. We can find data regarding read noise (stdev
  155. of Gaussian distribution) at http://www.photonstophotos.net/Charts/RN_ADU.htm . We find the per ISO tead_noise and
  156. subtract from the measured value 6*read_noise. This gives confidence that 99.5% of the bell is clipped out.
  157. If you have used Adobe's DNG Converter and analyzed it's output you may have noticed that it's very conservative
  158. regarding white levels, i.e. it cuts away quite a lot from the top. While we also recommend to be conservative, you can
  159. generally be a little bit less so than Adobe's DNG Converter. RawTherapee is meant to max out what you can get from your
  160. camera, and the white levels should mirror that, within reason.
  161. The aperture scaling feature is meant to raise the white level to not miss out on highlight detail when the camera has
  162. scaled the raw values (and thus raised white levels). Many cameras do this, but not all, and can only do it for lenses
  163. that report aperture to the camera (i.e. you see it in the Exif data). Providing proper aperture scaling values is a bit
  164. more advanced task, so if you are unsure we recommend to skip that part.
  165. Beware that the raw format may have a ceiling so that it clips scaled values, for example the Canon 5D mark II maxes out
  166. at 16383 which happens at f/1.8 for ISOs with the white level at 15750, but for ISO160 when the white level is 12800 it
  167. does not max out. If there is such a raw limit it must also be provided ("ranges":"white_max"). Usually you will not
  168. need a margin on white_max as it clips there as a result of an in-camera math operation.
  169. Note that aperture scaling can be quite small, for the 5D mark II it's only 0.2 stop down to f/1.2 and then it can be
  170. discussed if it's worthwhile to care. The "worst" cameras scale about 0.6 stops though, and then it's more valuable to
  171. compensate. If you skip aperture scaling RawTherapee will clip the files a little bit too early and you miss that last
  172. fraction of highlight detail, but you get no processing problems. Setting un-conservative scale factors can on the other
  173. hand cause a too high white level and break highlight processing, so be careful.
  174. Scaling can vary slightly depending on ISO (if white levels vary) so make sure to provide conservative scalings so
  175. regardless of ISO you don't get a too high white level. We recommend to keep a small margin here also white levels,
  176. i.e. 0.5% lower or so. For example if base (not conservative!) white level is 15750 and the scaled is 16221 we have a
  177. scaling factor of 16221/15750=1.0299 i.e. +2.9% we set the factor to 1.025 to keep a margin. The abnormal cases are
  178. already covered by setting conservative per ISO White levels.
  179. The scale factor you provide here is applied on the white level before black level subtraction (if any), i.e. directly on
  180. the white level value you provide in the camconst.json file. Black level (if provided) is not scaled. Please report to
  181. us if you come across a camera which scales black levels, then we can add that as an option. Usually the camera applies
  182. an offset to shift back the black level to the standard level after scaling.
  183. If RawTherapee doesn't find an entry for the aperture used in the image, it will pick the closest above, i.e. if the
  184. apertures 1.0 and 2.0 is in the table and the image has aperture 1.2, it will pick scaling for 2.0, even if 1.0 is the
  185. closer aperture. The reason for always checking the closest above is that we rather get a bit too low white level than
  186. too high, as discussed before.
  187. Some cameras have different white levels on different color channels. When this is the case the difference is often so
  188. small so you can just provide a single value instead, i.e. a conservative value based on the lowest clipping.
  189. What we know at the time of writing about different brands/models (not complete info):
  190. - Canon CR2: typically same clipping per channel, but significant variations on ISO and aperture. Maxes out at 16383,
  191. black level measured on masked black pixels, i.e. don't provide that.
  192. - Nikon NEF: sometimes different clipping per color (most often negligible though). Will do aperture and ISO scaling,
  193. but often to a lesser extent than Canon files, i.e. not as much to gain.
  194. - Sony ARW2: no scaling. Generally black level around 512, and white level 16350 and to be conservative say 16300.
  195. Note that some raw formats may go through a certain amount of pre-processing based on meta data, such as curve and
  196. levels adjustments and various calibrations. The Phase One IIQ is one example, and this means that if you look at the
  197. data in a raw analyzer such as RawDigger it may perform a different type of preprocessing than RawTherapee's loader
  198. does, and you may end up providing incompatible black/white levels.
  199. You can use RawTherapee for analysis too, it's safer as you are using it's own raw decoder but it's not as
  200. user-friendly: enable verbose mode in options so you get output on the console. When you load a file you will see a
  201. message of current black and white levels and if they came from dcraw or camconst.json. If you're adjusting an existing
  202. camconst.json value you can just read what it is in the file and not need to enable verbose output.
  203. Reset exposure sliders to neutral, and zoom in on a large clipped highlight. Move around the mouse pointer within, it
  204. should show stable 100% on R G B. If so, the white level is not too high, it could however be too low. To test that, go
  205. to the raw tab and adjust the "white point linear correction factor", reduce it until one of the channels is no longer
  206. 100%, and then increase in steps of 0.01 until all are 100 again. Usually you play around in the range 0.90 to 0.99, i.e.
  207. a very small adjustment. When you've found this factor you should apply it on the old white level to find a new larger
  208. one. As RT's "white point linear correction factor" work after black level subtraction and camconst.json want values
  209. without it we need to do some math:
  210. BL = black level (typically something near 0, 256, 512, 1024 or 2048 find it in the verbose output or if available in
  211. camconst.json)
  212. F = white point linear correction factor you just found out (typically in the range 0.90 to 0.99 if you need to
  213. increase white level, 1.01 to 1.10 if decrease)
  214. oldWL = old white level, found in verbose output or in camconst.json if available.
  215. newWL = BL + (oldWL - BL) / F
  216. Note that if black level is 0 which it is for many cameras, the formula simplifies to: new white level = oldWL / F.
  217. Here's an example from a Canon 1000D: black level is 256, old white level is 3651, white point correction factor becomes
  218. 0.90, then new white level is 256 + (3651 - 256) / 0.9 = 4028.
  219. If your camera have different black levels per channel use the one which yields the smallest white level (can be the
  220. largest or smallest, test!).
  221. This new white level you then enter in your camconst.json file. The same procedure can be used if the white level is too
  222. high, i.e. if you see pink highlights, then increase the correction factor above 1.0 until you just start seeing stable
  223. 100% on all channels, you use the same formula to calculate the new smaller white level.
  224. About black levels:
  225. -------------------
  226. Unlike for white levels it's much more common that black levels can be derived from the format. Either it's simply
  227. 0 (typical for old Nikon cameras, newer Nikons (year 2013-14) have a BL at around 150 12-bit or 600/768 14-bit ), or it
  228. can be derived from masked pixels (typical for Canon cameras) or otherwise be extracted from some tag.
  229. Some formats have built-in subtraction information and are pre-processed by dcraw to end up at a black level of
  230. zero (Phase One's IIQ).
  231. For Panasonic cameras, the black level defined in camconst.json is the black level offset, which comes from
  232. BlackLevel3 + BlackLevel2. RawTherapee then reads the base black levels from Exif data (0x001c BlackLevelRed,
  233. 0x001d BlackLevelGreen and 0x001e BlackLevelBlue) and adds them to the offset.
  234. In all, you typically should not care about the black level in camconst.json, any information that can be derived from
  235. the raw file itself should not be specified in camconst.json! Sony's ARW2 is one of the few exceptions (with a single
  236. black level around 512, or 800 for RX10/100 models), but dcraw generally has good constants for these already.
  237. Currently we have chosen not to provide any guide how to measure black levels as we don't think it will be a common task
  238. (it's also more difficult to do than measure white levels). If you experience a black level issue it's more likely due
  239. to a format parsing bug which should be fixed in dcraw and/or RawTherapee's raw format parser.
  240. How does a black level issue look? If the image has a color cast and is possibly duller than normal it's likely that
  241. black levels are off. The color cast is typically stronger in darker colors but it can be hard to see, it's more often
  242. experienced as a cast over the whole image.
  243. Camera constants:
  244. -----------------
  245. When adding camera constants please set a quality level so we know the status for future updates
  246. Quality A: complete information, no need to add more, to the best of our knowledge
  247. Quality B: not complete, but very little to gain from adding more
  248. Quality C: complementing with additional information would provide significant gain
  249. Quality X: unknown, i.e. we know too little about the camera properties to know if we have enough info.
  250. */
  251. {"camera_constants": [
  252. { // Quality A
  253. "make_model": "Canon EOS 5D Mark II",
  254. "dcraw_matrix": [ 4716,603,-830,-7798,15474,2480,-1496,1937,6651 ],
  255. "ranges": {
  256. // black levels are read from raw masked pixels
  257. // white levels are same for all colors, but vary on ISO
  258. "white": [
  259. { "iso": 50, "levels": 15600 }, // typical: 15760
  260. { "iso": 100, "levels": 15600 },
  261. { "iso": 125, "levels": 15600 },
  262. { "iso": 160, "levels": 12700 },
  263. { "iso": 200, "levels": 15600 },
  264. { "iso": 250, "levels": 15600 },
  265. { "iso": 320, "levels": 12700 }, // typical: 12810
  266. { "iso": 400, "levels": 15600 },
  267. { "iso": 500, "levels": 15600 },
  268. { "iso": 640, "levels": 12700 },
  269. { "iso": 800, "levels": 15600 },
  270. { "iso": 1000, "levels": 15600 },
  271. { "iso": 1250, "levels": 12700 },
  272. { "iso": 1600, "levels": 15600 },
  273. { "iso": 2000, "levels": 15600 },
  274. { "iso": 2500, "levels": 15600 },
  275. { "iso": 3200, "levels": 15600 },
  276. { "iso": 4000, "levels": 15600 },
  277. { "iso": 5000, "levels": 15600 },
  278. { "iso": 6400, "levels": 16200 }, // typical: 16383
  279. { "iso": 12800, "levels": 16200 },
  280. { "iso": 25600, "levels": 16200 }
  281. ],
  282. "white_max": 16383,
  283. "aperture_scaling": [
  284. // no scale factors known for and f/1.0 (had no lenses to test with), but the typical 15700 white level
  285. // maxes out at "white_max" for f/1.8 and below anyway.
  286. { "aperture": 1.2, "scale_factor": 1.100 }, // guessed by relative 5DIII data
  287. { "aperture": 1.4, "scale_factor": 1.077 },
  288. { "aperture": 1.6, "scale_factor": 1.054 },
  289. { "aperture": 1.8, "scale_factor": 1.039 },
  290. { "aperture": 2.0, "scale_factor": 1.031 },
  291. { "aperture": 2.2, "scale_factor": 1.021 },
  292. { "aperture": 2.5, "scale_factor": 1.016 },
  293. { "aperture": 2.8, "scale_factor": 1.010 },
  294. { "aperture": 3.2, "scale_factor": 1.004 },
  295. { "aperture": 3.5, "scale_factor": 1.003 }
  296. ]
  297. }
  298. },
  299. { // Quality C, INTERMEDIATE ISO SAMPLES MISSING
  300. "make_model": "Canon EOS-1D X Mark II",
  301. "dcraw_matrix": [ 7596,-978,-967,-4808,12571,2503,-1398,2567,5752 ],
  302. //"raw_crop": [ 192, 96, 8696, 5800 ], // Full sensor 5568x3708 top38, left72, official crop left84, top50, right5555, bottom3697, 5472X3648
  303. //"masked_areas": [ 50, 4, 3697, 68 ], // left out 4 first columns from calculations because possibly the BL is still imbalanced there
  304. "ranges": {
  305. // black levels are read from raw masked pixels
  306. // white levels are same for all colors all ISOs, but safety margin vary on ISO
  307. "white": [
  308. { "iso": 50, "levels": 16350 }, // typical for all ISOs: 16383, stdev 2.25
  309. { "iso": 100, "levels": 16350 }, // stdev 2.25
  310. { "iso": [ 125, 160, 200, 250 ], "levels": 16340 }, // stdev 2.5
  311. { "iso": [ 320, 400, 500 ], "levels": 16330 }, // stdev 2.95
  312. { "iso": [ 640, 800, 1000 ], "levels": 16320 }, // stdev x, 4.0 , x
  313. { "iso": [ 1250, 1600, 2000 ], "levels": 16300 }, // stdev x, 6.0 , x
  314. { "iso": [ 2500, 3200, 4000 ], "levels": 16250 }, // STDEV x, 9.8 , x
  315. { "iso": [ 5000, 6400, 8000 ], "levels": 16150 }, // stdev x, 17, x
  316. { "iso": [ 10000, 12800, 16000 ], "levels": 16100 }, // stdev x, 34 , x
  317. { "iso": [ 20000, 25600, 32000 ], "levels": 16000 }, // stdev x, 68 , x
  318. { "iso": [ 40000, 51200, 64000 ], "levels": 15700 }, // stdev x, 125, x
  319. { "iso": [ 80000, 102400 ], "levels": 15100 }, // stdev x, 245
  320. { "iso": [ 204800 ], "levels": 14000 },
  321. { "iso": [ 409600 ], "levels": 13000 }
  322. ],
  323. "white_max": 16383,
  324. "aperture_scaling": [
  325. // no need for aperture scaling because typical WL is 16383 at all ISOs
  326. { "aperture": 1.2, "scale_factor": 1.130 }, // guessed by relative 6D data
  327. { "aperture": 1.4, "scale_factor": 1.090 },
  328. { "aperture": 1.6, "scale_factor": 1.060 },
  329. { "aperture": 1.8, "scale_factor": 1.040 },
  330. { "aperture": 2.0, "scale_factor": 1.030 },
  331. { "aperture": 2.2, "scale_factor": 1.020 },
  332. { "aperture": 2.5, "scale_factor": 1.015 },
  333. { "aperture": 2.8, "scale_factor": 1.010 },
  334. { "aperture": 3.2, "scale_factor": 1.005 },
  335. { "aperture": 3.5, "scale_factor": 1.003 }
  336. ]
  337. }
  338. },
  339. { // Quality A
  340. "make_model": "Canon EOS 5D Mark III",
  341. "dcraw_matrix": [ 6722,-635,-963,-4287,12460,2028,-908,2162,5668 ],
  342. "ranges": {
  343. // black levels are read from raw masked pixels
  344. // white levels are same for all colors, but vary on ISO
  345. "white": [
  346. { "iso": [ 50, 100, 125, 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200, 4000, 6400, 8000, 12800, 16000, 20000 ], "levels": 15180 }, // typical: 15282
  347. { "iso": [ 160, 320, 640, 1250, 2500, 5000, 10000 ], "levels": 13200 }, // typical: 13306
  348. { "iso": [ 25600, 32000, 40000, 51200, 102400 ], "levels": 16200 }
  349. ],
  350. "white_max": 16383,
  351. "aperture_scaling": [
  352. { "aperture": 1.2, "scale_factor": 1.130 },
  353. { "aperture": 1.4, "scale_factor": 1.090 },
  354. { "aperture": 1.6, "scale_factor": 1.065 },
  355. { "aperture": 1.8, "scale_factor": 1.040 },
  356. { "aperture": 2.0, "scale_factor": 1.025 },
  357. { "aperture": 2.2, "scale_factor": 1.020 },
  358. { "aperture": 2.5, "scale_factor": 1.015 },
  359. { "aperture": 2.8, "scale_factor": 1.010 },
  360. { "aperture": 3.2, "scale_factor": 1.005 },
  361. { "aperture": 3.5, "scale_factor": 1.002 }
  362. ]
  363. }
  364. },
  365. { // Quality B, some intermediate ISO samples missing, LENR samples missing so White Levels not properly indicated, some aperture scaling missing
  366. "make_model": "Canon EOS 5D Mark IV",
  367. "dcraw_matrix": [ 6446,-366,-864,-4436,12204,2513,-952,2496,6348 ], // DNG_V9.7 D65
  368. "raw_crop": [ 136, 42, 6740, 4500 ], // full size 6880x4544, official crop 148,54,6867,4533
  369. "masked_areas": [ 54, 4, 4534, 132 ],
  370. "ranges": {
  371. "white": [
  372. { "iso": [ 100, 125, 200, 250 ], "levels": 16100 }, // nominal 16383, LENR?
  373. { "iso": [ 160 ], "levels": 13000 }, // nominal f8-13105
  374. { "iso": [ 320, 640, 1250, 2500 ], "levels": 13300 }, // G1,G2 F4.0-13422-F2.8-13562-13616
  375. { "iso": [ 5000, 10000, 20000 ], "levels": 13200 }, // G1,G2 F4.0-13422-F2.8-13562-13616
  376. { "iso": [ 400, 500, 800, 1000, 1600, 2000, 3200, 4000 ], "levels": 16100 }, // nominal 16383,
  377. { "iso": [ 6400, 8000, 12800, 16000, 25600, 32000 ], "levels": 16000 }, // R,G1,G2 16383, LENR?
  378. { "iso": [ 40000, 51200, 102400 ], "levels": 15800 } // 16383, LENR?
  379. ],
  380. "white_max": 16383,
  381. "aperture_scaling": [
  382. /* need more data to properly fill all scale factors */
  383. { "aperture": 1.4, "scale_factor": 1.160 }, // guessed
  384. { "aperture": 1.6, "scale_factor": 1.120 }, // guessed
  385. { "aperture": 1.8, "scale_factor": 1.080 }, // guessed
  386. { "aperture": 2.0, "scale_factor": 1.050 }, // 14171/13422=1.055
  387. { "aperture": 2.2, "scale_factor": 1.035 }, // 13954/13422=1.039
  388. { "aperture": 2.5, "scale_factor": 1.025 }, // 11400/11000=1.028
  389. { "aperture": 2.8, "scale_factor": 1.015 }, // 13562/13422 - 13731,13688,13562
  390. { "aperture": 3.2, "scale_factor": 1.010 }, // guessed
  391. { "aperture": 3.5, "scale_factor": 1.005 } // 13508/13422
  392. ]
  393. }
  394. },
  395. { // Quality C, intermediate ISO samples missing but safely guessed, aperture scaling measures missing
  396. "make_model": [ "Canon EOS 5DS R", "Canon EOS 5DS" ],
  397. //"dcraw_matrix": [ 6848,-1661,-221,-3904,10931,3434,-470,1251,6039 ], // DNG_V9.0 A
  398. "dcraw_matrix": [ 6250,-711,-808,-5153,12794,2636,-1249,2198,5610 ], // DNG_V9.0 D65
  399. "raw_crop": [ 192, 96, 8696, 5800 ], // 800, 300, 7500, 4700 - 160,64,8730x5800 - sensor 8896x5920 top64, left160, official crop left196, top100, right 8883, bottom 5891, 8688X5792
  400. "masked_areas": [ 100, 40, 5892, 158 ], // left out 40 first columns from calculations because possibly the BL is still imbalanced there
  401. "ranges": {
  402. "white": [
  403. { "iso": [ 50, 100 ], "levels": 14650 }, // typical 14733
  404. { "iso": [ 160, 320, 640, 1250, 2500, 5000 ], "levels": 15280 }, // typical 15383
  405. { "iso": [ 125, 200, 250, 400, 500, 800, 1000, 1600, 2000 ], "levels": 15280 }, // typical R15330-GB15383
  406. { "iso": [ 3200, 4000, 6400, 8000, 10000, 12800, 16000, 20000, 25600 ], "levels": 15100 } // clippings at R 15200-15300, G1,G2,B 15360-15390
  407. ],
  408. "white_max": 16383,
  409. "aperture_scaling": [
  410. { "aperture": 1.4, "scale_factor": 1.150 }, // 37/32 6-0-6-0-7-0-6-0-7-0
  411. { "aperture": 1.6, "scale_factor": 1.070 }, // guessed
  412. { "aperture": 1.8, "scale_factor": 1.040 }, // 15501/14733=1.0521, 15352/14733=1.042 16030/15390
  413. { "aperture": 2.0, "scale_factor": 1.025 }, // 15129/14733=1.0268 - 15800/15383=1.027
  414. { "aperture": 2.2, "scale_factor": 1.013 }, // 15591/15383, 14931/14733
  415. { "aperture": 2.5, "scale_factor": 1.008 }, // 14857/14733
  416. { "aperture": 2.8, "scale_factor": 1.003 }, // 14783/14733 15435/15383
  417. { "aperture": 3.2, "scale_factor": 1.001 }, // 15409/15383
  418. { "aperture": 3.5, "scale_factor": 1.000 } // 14733/14733
  419. ]
  420. }
  421. },
  422. { // Quality A, some missing scaling factors are safely guessed - samples by sfink16 & RawConvert at RT forums
  423. "make_model": "Canon EOS 6D",
  424. "dcraw_matrix": [ 7034,-804,-1014,-4420,12564,2058,-851,1994,5758 ],
  425. "ranges": {
  426. "white": [
  427. { "iso": [ 50, 100, 125, 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200 ], "levels": 15180 }, // typical 15283
  428. { "iso": [ 4000, 6400, 8000, 12800 ], "levels": 15100 }, // typical 15283
  429. { "iso": [ 16000, 25600 ], "levels": 14900 }, // typical 15283
  430. { "iso": [ 160, 320, 640, 1250, 2500 ], "levels": 13100 }, // typical 13225
  431. { "iso": [ 5000, 10000 ], "levels": 13000 }, // typical 13225
  432. { "iso": [ 20000 ], "levels": 12800 }, // typical 13225
  433. { "iso": [ 51200, 102400 ], "levels": 15900 } // typical 16383
  434. ],
  435. "white_max": 16383,
  436. "aperture_scaling": [
  437. // no scale factors known for f/1.0 (had no lenses to test with), but the
  438. // ISO 160-320... 12650 white levels maxes out at "white_max" for f/1.2 and below anyway.
  439. { "aperture": 1.2, "scale_factor": 1.130 }, // from histogramm 1 gap in every 7 levels
  440. { "aperture": 1.4, "scale_factor": 1.090 }, // histogram 3 gaps in every 32 levels
  441. { "aperture": 1.6, "scale_factor": 1.060 }, // 16213/15283
  442. { "aperture": 1.8, "scale_factor": 1.040 }, // 16004/15283
  443. { "aperture": 2.0, "scale_factor": 1.030 }, // 15800/15283
  444. { "aperture": 2.2, "scale_factor": 1.020 }, // guessed
  445. { "aperture": 2.5, "scale_factor": 1.015 }, // 15541/15283
  446. { "aperture": 2.8, "scale_factor": 1.010 }, // 15437/15283
  447. { "aperture": 3.2, "scale_factor": 1.005 }, // 15361/15283
  448. { "aperture": 3.5, "scale_factor": 1.000 } // no sample
  449. ]
  450. }
  451. },
  452. { // Quality B, some missing scaling factors are safely guessed
  453. "make_model": "Canon EOS 6D Mark II",
  454. "dcraw_matrix": [ 6875,-970,-932,-4691,12459,2501,-874,1953,5809 ], // DNG v_9.12 D65
  455. "raw_crop": [ 120, 44, 6264, 4180 ], // fullraw size 6384x4224 useful 120,44,6264x4180
  456. // "raw_crop": [ 128, 52, 6248, 4168 ], // official jpeg crop 120+12,44+12,6240x4160
  457. "masked_areas": [ 44, 4, 4220, 116 ],
  458. "ranges": {
  459. "white": [
  460. { "iso": [ 50, 100, 125, 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200 ], "levels": 16300 }, // typical 16383
  461. { "iso": [ 4000, 6400, 8000, 12800 ], "levels": 16200 }, // typical 16383
  462. { "iso": [ 16000, 25600 ], "levels": 16100 }, // typical 16383
  463. { "iso": [ 160 ], "levels": 13000 }, // typical 13044
  464. { "iso": [ 320, 640, 1250, 2500 ], "levels": 13250 }, // typical 13337
  465. { "iso": [ 5000, 10000 ], "levels": 13100 }, // typical 13367
  466. { "iso": [ 20000, 40000 ], "levels": 12900 }, // typical 13367
  467. { "iso": [ 51200, 102400 ], "levels": 15900 } // typical 16383
  468. ],
  469. "white_max": 16383,
  470. "aperture_scaling": [
  471. // no scale factors known for f/1.0 (had no lenses to test with), but the
  472. // ISO 160-320... 13044 white levels maxes out at "white_max" for f/1.2 and below anyway.
  473. { "aperture": 1.2, "scale_factor": 1.130 }, // guessed
  474. { "aperture": 1.4, "scale_factor": 1.100 }, // guessed
  475. { "aperture": 1.6, "scale_factor": 1.080 }, // guessed
  476. { "aperture": 1.8, "scale_factor": 1.060 }, // 13890/13044=1.065 11284/10512 = 1.073
  477. { "aperture": 2.0, "scale_factor": 1.040 }, // 13602/13044=1.042 11151/10512 = 1.060
  478. { "aperture": 2.2, "scale_factor": 1.030 }, // 10982/10512=1.045
  479. { "aperture": 2.5, "scale_factor": 1.020 }, // 10840/10512 = 1.030
  480. { "aperture": 2.8, "scale_factor": 1.010 }, // 13530/13367= 1.012 - 12225/12048 = 1.015
  481. { "aperture": 3.2, "scale_factor": 1.005 }, // 12194/12048 = 1.012
  482. { "aperture": 3.5, "scale_factor": 1.000 } // 12092/12048 = 1.004
  483. ]
  484. }
  485. },
  486. { // Quality A, ISO and aperture WL data by CharlyW at RawTherapee forums, missing samples safely guessed
  487. "make_model": "Canon EOS 7D",
  488. "dcraw_matrix": [ 5962,-171,-732,-4189,12307,2099,-911,1981,6304 ], // Colin Walker
  489. //"dcraw_matrix": [ 6844,-996,-856,-3876,11761,2396,-593,1772,6198 ], // dcraw
  490. "ranges": {
  491. "white": [
  492. { "iso": [ 100, 125 ], "levels": 13480 }, // typical 13584
  493. { "iso": [ 160, 320, 640, 1250, 2500 ], "levels": 12550 }, // typical 12650
  494. { "iso": [ 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200, 4000, 5000, 6400, 12800 ], "levels": 15200 } // typical 15304
  495. ],
  496. "white_max": 16383,
  497. "aperture_scaling": [
  498. // no scale factors known for f/1.2 and f/1.0 (no lenses to test with), but the
  499. // typical 12650 white levels maxes out at "white_max" for f/1.4 and below anyway.
  500. { "aperture": 1.4, "scale_factor": 1.250 }, // guessed
  501. { "aperture": 1.6, "scale_factor": 1.150 }, // guessed
  502. { "aperture": 1.8, "scale_factor": 1.110 }, // 15196/13584
  503. { "aperture": 2.0, "scale_factor": 1.080 }, // 14734/13584
  504. { "aperture": 2.2, "scale_factor": 1.050 }, // 14386/13584
  505. { "aperture": 2.5, "scale_factor": 1.040 }, // 14272/13584
  506. { "aperture": 2.8, "scale_factor": 1.030 }, // 14042/13584
  507. { "aperture": 3.2, "scale_factor": 1.015 }, // guessed
  508. { "aperture": 3.5, "scale_factor": 1.000 } // guessed negligible
  509. ]
  510. }
  511. },
  512. { // Quality A, f/1.6 aperture scale factor missing but safely guessed, ISO and aperture data by charlyw at RT forums
  513. "make_model": "Canon EOS 7D Mark II",
  514. "dcraw_matrix": [ 7268,-1082,-969,-4186,11839,2663,-825,2029,5839 ], // dng_v8.7 d65
  515. //"dcraw_matrix": [ 6285,-147,-821,-4080,11695,2714,-1045,2459,5497 ], // DXO D50
  516. "ranges": {
  517. "white": [
  518. { "iso": [ 100, 125 ], "levels": 13500 }, // typical 13583 - LENR 13550
  519. { "iso": [ 160, 320, 640, 1250, 2500, 5000 ], "levels": 12500 }, // typical 12559
  520. { "iso": [ 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200, 4000 ], "levels": 15200 }, // typical 15303 - LENR 15270,15260,15240,15220,
  521. { "iso": [ 6400, 8000, 10000, 12800, 16000, 20000, 25600 ], "levels": 15100 }, // typical G1,G2 15303, R,B = 15430 LENR 15200 .. 15100
  522. { "iso": 51200, "levels": 16300 } // typical 16383 red 16371
  523. ],
  524. "white_max": 16383,
  525. "aperture_scaling": [
  526. /* no scale factors known for f/1.6, f/1.0 (had no lenses to test with) */
  527. { "aperture": 1.4, "scale_factor": 1.200 }, // 15100/12277 Exif
  528. { "aperture": 1.6, "scale_factor": 1.100 }, // guessed
  529. { "aperture": 1.8, "scale_factor": 1.050 }, // 14372/13583 - 13283
  530. { "aperture": 2.0, "scale_factor": 1.030 }, // 14034/13583 - 12973
  531. { "aperture": 2.2, "scale_factor": 1.015 }, // 13808/13583 - 12766
  532. { "aperture": 2.5, "scale_factor": 1.007 }, // 13696/13583 - 12662
  533. { "aperture": 2.8, "scale_factor": 1.007 }, // 13696/13583 - 12663
  534. { "aperture": 3.2, "scale_factor": 1.000 }, // 13583/13583 - 12559
  535. { "aperture": 3.5, "scale_factor": 1.000 }
  536. ]
  537. }
  538. },
  539. { // Quality A - ISO and aperture WL data by Ilias at Avclub gr forums
  540. "make_model": "Canon EOS 40D",
  541. "dcraw_matrix": [ 6071,-747,-856,-7653,15365,2441,-2025,2553,7315 ],
  542. "raw_crop": [ 30, 18, 3908, 2602 ],
  543. "masked_areas": [ 20, 2, 2616, 20 ],
  544. "ranges": {
  545. "white": [
  546. { "iso": 100, "levels": 13700 }, // typical 13825
  547. { "iso": [ 125, 250, 500, 1000, 3200 ], "levels": 16280 }, // typical 16383
  548. { "iso": [ 160, 320, 640 ], "levels": 12600 }, // typical 12744
  549. { "iso": [ 200, 400 ], "levels": 16100 }, // typical 16224
  550. { "iso": 800, "levels": 15900 }, // gaussian histogram 15900-16224
  551. { "iso": 1600, "levels": 14900 }, // gaussian histogram 14900-15750
  552. { "iso": 1250, "levels": 11900 } // gaussian histogram 11900-12500
  553. ],
  554. "white_max": 16383,
  555. "aperture_scaling": [
  556. // no scale factors known for f/1.2 and f/1.0 (had no lenses to test with), but the
  557. // typical 12700 white levels maxes out at "white_max" for f/1.4 and below anyway.
  558. { "aperture": 1.4, "scale_factor": 1.265 }, // 16142/12744
  559. { "aperture": 1.6, "scale_factor": 1.145 }, // 15872/13825
  560. { "aperture": 1.8, "scale_factor": 1.090 }, // 15103/13825
  561. { "aperture": 2.0, "scale_factor": 1.035 }, // 14334/13825
  562. { "aperture": 2.2, "scale_factor": 1.005 }, // 13950/13825
  563. { "aperture": 2.5, "scale_factor": 1.000 } // 13825/13825
  564. ]
  565. }
  566. },
  567. { // Quality A, ISO and aperture WL data by Ayshih at Magic Lantern forums
  568. "make_model": "Canon EOS 50D",
  569. "dcraw_matrix": [ 4920,616,-593,-6493,13964,2784,-1774,3178,7005 ],
  570. "ranges": {
  571. "white": [
  572. { "iso": [ 100, 125 ], "levels": 13300 }, // typical 13432
  573. { "iso": [ 160, 320, 640, 1250 ], "levels": 12700 }, // typical 12790-12810
  574. { "iso": [ 200, 250, 400, 500, 800, 1000, 1600, 2000, 2500, 3200 ], "levels": 15630 }, // typical 15763-15733
  575. { "iso": [ 6400, 12800 ], "levels": 16200 } // typical 16383
  576. ],
  577. "white_max": 16383,
  578. "aperture_scaling": [
  579. { "aperture": 1.4, "scale_factor": 1.270 },
  580. { "aperture": 1.6, "scale_factor": 1.150 },
  581. { "aperture": 1.8, "scale_factor": 1.090 },
  582. { "aperture": 2.0, "scale_factor": 1.040 },
  583. { "aperture": 2.2, "scale_factor": 1.020 },
  584. { "aperture": 2.5, "scale_factor": 1.010 },
  585. { "aperture": 2.8, "scale_factor": 1.000 },
  586. { "aperture": 3.2, "scale_factor": 1.000 }
  587. ]
  588. }
  589. },
  590. { // Quality A, ISO and aperture WL data copied from Shalrath's 60D data at RawTherapee forums
  591. "make_model": "Canon EOS 60Da",
  592. "dcraw_matrix": [ 17492,-7240,-2023,-1791,10323,1701,-186,1329,5406 ], // 60Da dng d65
  593. "ranges": {
  594. "white": [
  595. { "iso": [ 100, 125 ], "levels": 13480 }, // typical 13583
  596. { "iso": [ 160, 320, 640, 1250, 2500 ], "levels": 12550 }, // typical 12650
  597. { "iso": [ 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200, 4000, 5000, 6400, 12800 ], "levels": 15200 } // typical 15304
  598. ],
  599. "white_max": 16383,
  600. "aperture_scaling": [
  601. // no scale factors known for f/1.2 and f/1.0 (had no lenses to test with), but the
  602. // typical 12650 white levels maxes out at "white_max" for f/1.4 and below anyway.
  603. { "aperture": 1.4, "scale_factor": 1.300 }, // gaps 81of301
  604. { "aperture": 1.6, "scale_factor": 1.200 },
  605. { "aperture": 1.8, "scale_factor": 1.140 },
  606. { "aperture": 2.0, "scale_factor": 1.080 }, // gaps 1of11
  607. { "aperture": 2.2, "scale_factor": 1.060 },
  608. { "aperture": 2.5, "scale_factor": 1.050 },
  609. { "aperture": 2.8, "scale_factor": 1.030 },
  610. { "aperture": 3.2, "scale_factor": 1.015 },
  611. { "aperture": 3.5, "scale_factor": 1.000 } // no sample but it would be negligible
  612. ]
  613. }
  614. },
  615. { // Quality A, ISO and aperture WL data by Shalrath at RawTherapee forums
  616. "make_model": "Canon EOS 60D",
  617. "dcraw_matrix": [ 6719,-994,-925,-4408,12426,2211,-887,2129,6051 ],
  618. "ranges": {
  619. "white": [
  620. { "iso": [ 100, 125 ], "levels": 13480 }, // typical 13583
  621. { "iso": [ 160, 320, 640, 1250, 2500 ], "levels": 12550 }, // typical 12650
  622. { "iso": [ 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200, 4000, 5000, 6400, 12800 ], "levels": 15200 } // typical 15304
  623. ],
  624. "white_max": 16383,
  625. "aperture_scaling": [
  626. // no scale factors known for f/1.2 and f/1.0 (had no lenses to test with), but the
  627. // typical 12650 white levels maxes out at "white_max" for f/1.4 and below anyway.
  628. { "aperture": 1.4, "scale_factor": 1.300 }, // gaps 81of301
  629. { "aperture": 1.6, "scale_factor": 1.200 },
  630. { "aperture": 1.8, "scale_factor": 1.140 },
  631. { "aperture": 2.0, "scale_factor": 1.080 }, // gaps 1of11
  632. { "aperture": 2.2, "scale_factor": 1.060 },
  633. { "aperture": 2.5, "scale_factor": 1.050 },
  634. { "aperture": 2.8, "scale_factor": 1.030 },
  635. { "aperture": 3.2, "scale_factor": 1.015 },
  636. { "aperture": 3.5, "scale_factor": 1.000 } // no sample but it would be negligible
  637. ]
  638. }
  639. },
  640. { // Quality B, more aperture scale factors needed
  641. "make_model": "Canon EOS 70D",
  642. "dcraw_matrix": [ 7034,-804,-1014,-4420,12564,2058,-851,1994,5758 ], // DNG D65
  643. "ranges": {
  644. "white": [
  645. { "iso": [ 100, 125 ], "levels": 13480 }, // typical 13583
  646. { "iso": [ 160, 320, 640, 1250, 2500, 5000 ], "levels": 12450 }, // typical 12559
  647. { "iso": [ 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200, 4000, 6400, 8000, 10000 ], "levels": 15200 }, // typical 15303 - ISO 8000-10000 guessed
  648. { "iso": [ 12800, 25600 ], "levels": 16200 } // typical 16383
  649. ],
  650. "white_max": 16383,
  651. "aperture_scaling": [
  652. // no scale factors known for f/1.2 and f/1.0 (had no lenses to test with), but even with the
  653. // 12500 white levels nearly maxes out for f/1.4 and below anyway.
  654. { "aperture": 1.4, "scale_factor": 1.240 }, // guessed
  655. { "aperture": 1.6, "scale_factor": 1.160 }, // guessed
  656. { "aperture": 1.8, "scale_factor": 1.110 }, // 31of35
  657. { "aperture": 2.0, "scale_factor": 1.060 }, // guessed
  658. { "aperture": 2.2, "scale_factor": 1.030 }, // guessed
  659. { "aperture": 2.5, "scale_factor": 1.015 }, // guessed
  660. { "aperture": 2.8, "scale_factor": 1.008 }, // 15432/15303
  661. { "aperture": 3.2, "scale_factor": 1.000 },
  662. { "aperture": 3.5, "scale_factor": 1.000 }
  663. ]
  664. }
  665. },
  666. { // Quality B, White Levels not properly indicated, aperture scaling..missing scaling factors are guessed
  667. "make_model": "Canon EOS 80D",
  668. "dcraw_matrix": [ 7457,-671,-937,-4849,12495,2643,-1213,2354,5492 ], // DNG_V9.5 D65
  669. "raw_crop": [ 264, 34, 6024, 4022 ], // full size 6288x4056, official crop 276,46,6275,4045
  670. "masked_areas": [ 40, 96, 4000, 260 ],
  671. "ranges": {
  672. "white": [
  673. { "iso": [ 100 ], "levels": 16100 }, // nominal 16383, LENR blue 16243
  674. { "iso": [ 125, 200, 250, 400 ], "levels": 16200 }, // nominal 16383, LENR blue 16243
  675. { "iso": [ 160 ], "levels": 13000 }, // nominal 13097,
  676. { "iso": [ 320, 640, 1250 ], "levels": 13250 }, // G1,G2 13415
  677. { "iso": [ 500, 800, 1000 ], "levels": 16150 }, // nominal 16383, LENR ISO3200 16150
  678. { "iso": [ 1600, 2000, 3200 ], "levels": 16100 }, // nominal 16383, LENR ISO3200 16150
  679. { "iso": [ 2500, 5000 ], "levels": 13150 }, // G1,G2 13415
  680. { "iso": [ 4000, 6400 ], "levels": 16050 }, // nominal 16383, LENR ISO6400 16050
  681. { "iso": [ 8000, 10000 ], "levels": 16000 }, // R,G1,G2 16383, B 16243, LENR B 16000
  682. { "iso": [ 12800, 16000, 25600 ], "levels": 15900 } // R,G1,G2 16383, B 16243, LENR BLUE 15750
  683. ],
  684. "white_max": 16383,
  685. "aperture_scaling": [
  686. // need for more data to properly fill all scale factors
  687. { "aperture": 1.4, "scale_factor": 1.200 }, // guessed
  688. { "aperture": 1.6, "scale_factor": 1.130 }, // guessed
  689. { "aperture": 1.8, "scale_factor": 1.090 }, // 14338/13097 = 1.094
  690. { "aperture": 2.0, "scale_factor": 1.060 }, // 13934/13097 = 1.063
  691. { "aperture": 2.2, "scale_factor": 1.025 }, // 13438/13097 = 1.026
  692. { "aperture": 2.5, "scale_factor": 1.005 }, // 13190/13097 = 1.007
  693. { "aperture": 2.8, "scale_factor": 1.000 } // 13097/13097
  694. ]
  695. }
  696. },
  697. { // Quality B, aperture scaling..missing scaling factors are guessed
  698. "make_model": [ "Canon EOS 77D", "Canon EOS 9000D" ],
  699. "dcraw_matrix": [ 7377,-742,-998,-4235,11981,2549,-673,1918,5538 ], // DNG_V9.10.1 D65
  700. "raw_crop": [ 264, 36, 6024, 4020 ], // full size 6288x4056, official crop 276,48,6275,4047
  701. "masked_areas": [ 40, 96, 4000, 260 ],
  702. "ranges": {
  703. "white": [
  704. { "iso": [ 100 ], "levels": 16300 }, // nominal 16383
  705. { "iso": [ 125, 200, 250, 400 ], "levels": 16300 }, // nominal 16383
  706. { "iso": [ 160 ], "levels": 13000 }, // nominal 13109,
  707. { "iso": [ 320, 640, 1250 ], "levels": 13300 }, // G1,G2 13403
  708. { "iso": [ 500, 800, 1000 ], "levels": 16200 }, // nominal 16383
  709. { "iso": [ 1600, 2000, 3200 ], "levels": 16100 }, // nominal 16383
  710. { "iso": [ 2500, 5000 ], "levels": 13150 }, // G1,G2 13423
  711. { "iso": [ 4000, 6400 ], "levels": 16000 }, // nominal 16383
  712. { "iso": [ 8000, 10000,12800, 16000 ], "levels": 15800 }, // R,G1,G2 16383
  713. { "iso": [ 25600, 51200 ], "levels": 15500 } // R,G1,G2 16383
  714. ],
  715. "white_max": 16383,
  716. "aperture_scaling": [
  717. // need for more data to properly fill all scale factors
  718. { "aperture": 1.4, "scale_factor": 1.200 }, // guessed
  719. { "aperture": 1.6, "scale_factor": 1.130 }, // 15264/13423
  720. { "aperture": 1.8, "scale_factor": 1.090 }, // guessed
  721. { "aperture": 2.0, "scale_factor": 1.060 }, // guessed
  722. { "aperture": 2.2, "scale_factor": 1.025 }, // guessed
  723. { "aperture": 2.5, "scale_factor": 1.005 }, // guessed
  724. { "aperture": 2.8, "scale_factor": 1.000 } // guessed
  725. ]
  726. }
  727. },
  728. // Canon mid-range DSLRs (Rebels)
  729. { // Quality C
  730. "make_model": [ "Canon EOS 400D DIGITAL" ],
  731. "ranges": {
  732. "white": 4056
  733. }
  734. },
  735. { // Quality B, ISO and aperture WL data by ..... at RawTherapee forums, missing samples safely guessed
  736. "make_model": [ "Canon EOS 550D", "Canon EOS Rebel T2i", "Canon EOS Kiss X4" ],
  737. "dcraw_matrix": [ 6941,-1164,-857,-3825,11597,2534,-416,1540,6039 ], // dcraw 550d
  738. "ranges": {
  739. "white": [
  740. { "iso": [ 100, 125 ], "levels": 13480 }, // typical 13584
  741. { "iso": [ 160, 320, 640, 1250, 2500 ], "levels": 12550 }, // typical 12650
  742. { "iso": [ 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200, 4000, 5000, 6400, 12800 ], "levels": 15200 } // typical 15304
  743. ],
  744. "white_max": 16383,
  745. "aperture_scaling": [
  746. // no scale factors known for f/1.2 and f/1.0 (no lenses to test with), but the
  747. // typical 12650 white levels maxes out at "white_max" for f/1.4 and below anyway.
  748. { "aperture": 1.4, "scale_factor": 1.250 }, // guessed
  749. { "aperture": 1.6, "scale_factor": 1.150 }, // guessed
  750. { "aperture": 1.8, "scale_factor": 1.110 }, // 15196/13584
  751. { "aperture": 2.0, "scale_factor": 1.080 }, // 14734/13584
  752. { "aperture": 2.2, "scale_factor": 1.050 }, // 14386/13584
  753. { "aperture": 2.5, "scale_factor": 1.040 }, // 14272/13584
  754. { "aperture": 2.8, "scale_factor": 1.030 }, // 14042/13584
  755. { "aperture": 3.2, "scale_factor": 1.015 }, // guessed
  756. { "aperture": 3.5, "scale_factor": 1.000 } // guessed negligible
  757. ]
  758. }
  759. },
  760. { // Quality B, scaling factors missing but guessed safely
  761. "make_model": [ "Canon EOS 600D", "Canon EOS Rebel T3i", "Canon EOS Kiss X5", "Canon EOS 1200D", "Canon EOS Rebel T5", "Canon EOS Kiss X70" ],
  762. //"dcraw_matrix": [ 13254,-6296,-1798,184,2753,90,1438,-566,1129 ], // Infrared guessed
  763. "dcraw_matrix": [ 6461,-907,-882,-4300,12184,2378,-819,1944,5931 ], // dcp D65 colormatrix2
  764. "ranges": {
  765. "white": [
  766. { "iso": [ 100, 125 ], "levels": 13480 }, // typical 13583
  767. { "iso": [ 160, 320, 640, 1250, 2500, 5000, 10000 ], "levels": 12550 }, // typical 12650
  768. { "iso": [ 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200, 4000, 6400, 8000, 12800 ], "levels": 15200 } // typical 15303
  769. ],
  770. "white_max": 16383,
  771. "aperture_scaling": [
  772. // no scale factors known for f/1.2 and f/1.0 (had no lenses to test with), but the
  773. // typical 12650 white levels maxes out at "white_max" for f/1.4 and below anyway.
  774. { "aperture": 1.4, "scale_factor": 1.290 }, // guessed from 60D data
  775. { "aperture": 1.6, "scale_factor": 1.190 }, // guessed
  776. { "aperture": 1.8, "scale_factor": 1.140 }, // guessed
  777. { "aperture": 2.0, "scale_factor": 1.090 }, // 12293/11222 = 1.095
  778. { "aperture": 2.2, "scale_factor": 1.060 }, // 11971/11222 = 1.066
  779. { "aperture": 2.5, "scale_factor": 1.050 }, // guessed
  780. { "aperture": 2.8, "scale_factor": 1.030 }, // iso100: 14042/13584=1.0336 - iso200 15820/15303 = 1.0348
  781. { "aperture": 3.2, "scale_factor": 1.000 } //
  782. ]
  783. }
  784. },
  785. { // Quality A, only one scaling factor missing and guessed safely, EOS 700D not tested but available samples look same as 650D
  786. "make_model": [ "Canon EOS 650D", "Canon EOS Rebel T4i", "Canon EOS Kiss X6i", "Canon EOS 700D", "Canon EOS Rebel T5i", "Canon EOS Kiss X7i" ],
  787. "dcraw_matrix": [ 6602,-841,-939,-4472,12458,2247,-975,2039,6148 ],
  788. "ranges": {
  789. "white": [
  790. { "iso": [ 100, 125 ], "levels": 13480 }, // typical 13583
  791. { "iso": [ 160, 320, 640, 1250, 2500, 5000, 10000 ], "levels": 12550 }, // typical 12650
  792. { "iso": [ 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200, 4000, 6400, 8000 ], "levels": 15200 }, // typical 15303
  793. { "iso": [ 12800, 25600 ], "levels": 16200 } // typical 16383
  794. ],
  795. "white_max": 16383,
  796. "aperture_scaling": [
  797. // no scale factors known for f/1.2 and f/1.0 (had no lenses to test with), but the
  798. // typical 12650 white levels maxes out at "white_max" for f/1.4 and below anyway.
  799. { "aperture": 1.4, "scale_factor": 1.200 }, // 16332/13583
  800. { "aperture": 1.6, "scale_factor": 1.080 }, // guessed
  801. { "aperture": 1.8, "scale_factor": 1.055 }, // 14372/13583
  802. { "aperture": 2.0, "scale_factor": 1.030 }, // 14034/13583
  803. { "aperture": 2.2, "scale_factor": 1.025 }, // 13921/13583
  804. { "aperture": 2.5, "scale_factor": 1.020 }, //
  805. { "aperture": 2.8, "scale_factor": 1.000 }, //
  806. { "aperture": 3.2, "scale_factor": 1.000 } //
  807. ]
  808. }
  809. },
  810. { // Quality C, aperture scale factors and intermediate ISOs missing but safely guessed
  811. "make_model": [ "Canon EOS 750D", "Canon EOS Rebel T6i", "Canon EOS Kiss X8i", "Canon EOS 760D", "Canon EOS Rebel T6s", "Canon EOS 8000D" ],
  812. "dcraw_matrix": [ 6362,-823,-847,-4426,12109,2616,-743,1857,5635 ], // dng_v9.0 d65
  813. "raw_crop": [ 72, 34, 6024, 4022 ], // full size 6096x4056, official crop 84,46,6083,4045
  814. "masked_areas": [ 40, 16, 4000, 54 ],
  815. "ranges": {
  816. "white": [
  817. { "iso": [ 100, 125 ], "levels": 13300 }, // typical 13583
  818. { "iso": [ 160, 320, 640, 1250, 2500, 5000 ], "levels": 12500 }, // typical 12600
  819. { "iso": [ 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200, 4000 ], "levels": 15200 }, // typical 15303
  820. { "iso": [ 6400, 8000, 10000, 12800, 16000, 20000 ], "levels": 15100 }, // typical 15303
  821. { "iso": 25600, "levels": 16300 } // typical 16383
  822. ],
  823. "white_max": 16383,
  824. "aperture_scaling": [
  825. // all scale factors are guessed to be same as 7DII
  826. { "aperture": 1.4, "scale_factor": 1.200 }, // guessed
  827. { "aperture": 1.6, "scale_factor": 1.100 }, // guessed
  828. { "aperture": 1.8, "scale_factor": 1.050 }, // guessed
  829. { "aperture": 2.0, "scale_factor": 1.030 }, // guessed
  830. { "aperture": 2.2, "scale_factor": 1.015 }, // guessed
  831. { "aperture": 2.5, "scale_factor": 1.007 }, // guessed
  832. { "aperture": 2.8, "scale_factor": 1.007 }, // guessed
  833. { "aperture": 3.2, "scale_factor": 1.000 }, // guessed
  834. { "aperture": 3.5, "scale_factor": 1.000 }
  835. ]
  836. }
  837. },
  838. { // Quality C, white levels and aperture scaling copied from Canon EOS77d
  839. "make_model": [ "Canon EOS Rebel T7i", "Canon EOS 800D", "Canon EOS Kiss X9i" ],
  840. "dcraw_matrix": [ 6970,-512,-968,-4425,12161,2553,-739,1982,5601 ], // DNG_V9.10.1 D65
  841. "raw_crop": [ 264, 36, 6024, 4020 ], // full size 6288x4056, official crop 276,48,6275,4047
  842. "masked_areas": [ 40, 96, 4000, 260 ],
  843. "ranges": {
  844. "white": [
  845. { "iso": [ 100 ], "levels": 16300 }, // nominal 16383
  846. { "iso": [ 125, 200, 250, 400 ], "levels": 16300 }, // nominal 16383
  847. { "iso": [ 160 ], "levels": 13000 }, // nominal 13109,
  848. { "iso": [ 320, 640, 1250 ], "levels": 13300 }, // G1,G2 13403
  849. { "iso": [ 500, 800, 1000 ], "levels": 16200 }, // nominal 16383
  850. { "iso": [ 1600, 2000, 3200 ], "levels": 16100 }, // nominal 16383
  851. { "iso": [ 2500, 5000 ], "levels": 13150 }, // G1,G2 13423
  852. { "iso": [ 4000, 6400 ], "levels": 16000 }, // nominal 16383
  853. { "iso": [ 8000, 10000,12800, 16000 ], "levels": 15800 }, // R,G1,G2 16383
  854. { "iso": [ 25600, 51200 ], "levels": 15500 } // R,G1,G2 16383
  855. ],
  856. "white_max": 16383,
  857. "aperture_scaling": [
  858. // need for more data to properly fill all scale factors
  859. { "aperture": 1.4, "scale_factor": 1.200 }, // guessed
  860. { "aperture": 1.6, "scale_factor": 1.130 }, // 15264/13423
  861. { "aperture": 1.8, "scale_factor": 1.090 }, // guessed
  862. { "aperture": 2.0, "scale_factor": 1.060 }, // guessed
  863. { "aperture": 2.2, "scale_factor": 1.025 }, // guessed
  864. { "aperture": 2.5, "scale_factor": 1.005 }, // guessed
  865. { "aperture": 2.8, "scale_factor": 1.000 } // guessed
  866. ]
  867. }
  868. },
  869. { // Quality B, aperture scaling copied from Canon EOS77d
  870. "make_model": [ "Canon EOS Rebel SL2", "Canon EOS 200D", "Canon EOS Kiss X9" ],
  871. "dcraw_matrix": [ 7377,-742,-998,-4235,11981,2549,-673,1918,5538 ], // DNG_V9.12 D65
  872. "raw_crop": [ 264, 36, 6024, 4020 ], // full size 6288x4056, official crop 276,48,6275,4047
  873. "masked_areas": [ 40, 96, 4000, 260 ],
  874. "ranges": {
  875. "white": [
  876. { "iso": [ 100 ], "levels": 16300 }, // nominal 16383
  877. { "iso": [ 125, 200, 250, 400 ], "levels": 16300 }, // nominal 16383
  878. { "iso": [ 160 ], "levels": 13000 }, // nominal 13106,
  879. { "iso": [ 320, 640, 1250 ], "levels": 13300 }, // G1,G2 13423
  880. { "iso": [ 500, 800, 1000 ], "levels": 16200 }, // nominal 16383
  881. { "iso": [ 1600, 2000, 3200 ], "levels": 16100 }, // nominal 16383
  882. { "iso": [ 2500, 5000 ], "levels": 13150 }, // G1,G2 13423
  883. { "iso": [ 4000, 6400 ], "levels": 16000 }, // nominal 16383
  884. { "iso": [ 8000, 10000,12800, 16000 ], "levels": 15800 }, // R,G1,G2 16383
  885. { "iso": [ 25600, 51200 ], "levels": 15500 } // R,G1,G2 16383
  886. ],
  887. "white_max": 16383,
  888. "aperture_scaling": [
  889. // need for more data to properly fill all scale factors
  890. { "aperture": 1.4, "scale_factor": 1.200 }, // guessed
  891. { "aperture": 1.6, "scale_factor": 1.130 }, // 15264/13423
  892. { "aperture": 1.8, "scale_factor": 1.090 }, // guessed
  893. { "aperture": 2.0, "scale_factor": 1.060 }, // guessed
  894. { "aperture": 2.2, "scale_factor": 1.025 }, // guessed
  895. { "aperture": 2.5, "scale_factor": 1.005 }, // guessed
  896. { "aperture": 2.8, "scale_factor": 1.000 } // guessed
  897. ]
  898. }
  899. },
  900. // Canon low-range DSLRs
  901. // Canon EOS 1200D/Rebel T5/Kiss X70" is upper at the same item as 600D/T3i/X5
  902. { // Quality B, integer ISOs measured, intermediate ISO samples missing,
  903. // scaling factors safely guessed to be same as 1200D
  904. "make_model": [ "Canon EOS 1300D", "Canon EOS Rebel T6", "Canon EOS Kiss X80" ],
  905. "dcraw_matrix": [ 6939,-1016,-866,-4428,12473,2177,-1175,2178,6162 ], // dcraw 9.27
  906. "ranges": {
  907. "white": [
  908. { "iso": [ 100, 125 ], "levels": 13480 }, // typical 13584
  909. { "iso": [ 160, 320, 640, 1250, 2500, 5000, 10000 ], "levels": 12550 }, // typical 12650
  910. { "iso": [ 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200, 4000, 6400, 8000, 12800 ], "levels": 15200 } // typical 15303
  911. ],
  912. "white_max": 16383,
  913. "aperture_scaling": [
  914. // no scale factors known for f/1.2 and f/1.0 (had no lenses to test with), but the
  915. // typical 12650 white levels maxes out at "white_max" for f/1.4 and below anyway.
  916. { "aperture": 1.4, "scale_factor": 1.290 }, // guessed from 60D data
  917. { "aperture": 1.6, "scale_factor": 1.190 }, // guessed
  918. { "aperture": 1.8, "scale_factor": 1.140 }, // guessed
  919. { "aperture": 2.0, "scale_factor": 1.090 }, // 12293/11222 = 1.095
  920. { "aperture": 2.2, "scale_factor": 1.060 }, // 11971/11222 = 1.066
  921. { "aperture": 2.5, "scale_factor": 1.050 }, // guessed
  922. { "aperture": 2.8, "scale_factor": 1.030 }, // iso100: 14042/13584=1.0336 - iso200 15820/15303 = 1.0348
  923. { "aperture": 3.2, "scale_factor": 1.000 }, //
  924. { "aperture": 3.5, "scale_factor": 1.000 } //
  925. ]
  926. }
  927. },
  928. // Canon MILC (mirrorless interchangeable-lens camera)
  929. { // Quality B, missing scaling factors are guessed safely from 650D relative data
  930. "make_model": "Canon EOS M",
  931. "dcraw_matrix": [ 6602,-841,-939,-4472,12458,2247,-975,2039,6148 ],
  932. "ranges": {
  933. "white": [
  934. { "iso": [ 100, 125 ], "levels": 13480 }, // typical 13583
  935. { "iso": [ 160, 320, 640, 1250, 2500, 5000, 10000 ], "levels": 12550 }, // typical 12650
  936. { "iso": [ 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200, 4000, 6400, 8000 ], "levels": 15200 }, // typical 15303
  937. { "iso": [ 12800, 25600 ], "levels": 16200 } // typical 16383
  938. ],
  939. "white_max": 16383,
  940. "aperture_scaling": [
  941. // no scale factors known for f/1.2 and f/1.0 (had no lenses to test with), but the
  942. // typical 12650 white levels maxes out at "white_max" for f/1.4 and below anyway.
  943. { "aperture": 1.4, "scale_factor": 1.200 }, // guessed
  944. { "aperture": 1.6, "scale_factor": 1.080 }, // guessed
  945. { "aperture": 1.8, "scale_factor": 1.055 }, // guessed
  946. { "aperture": 2.0, "scale_factor": 1.030 }, // 15821/15303
  947. { "aperture": 2.2, "scale_factor": 1.025 }, // 15691/15303
  948. { "aperture": 2.5, "scale_factor": 1.020 }, // 12947/12650
  949. { "aperture": 2.8, "scale_factor": 1.000 }, //
  950. { "aperture": 3.2, "scale_factor": 1.000 }, //
  951. { "aperture": 3.5, "scale_factor": 1.000 } //
  952. ]
  953. }
  954. },
  955. { // Quality C, inconsistent WL per ISO, missing scaling factors
  956. "make_model": "Canon EOS M10",
  957. "dcraw_matrix": [ 6400,-480,-888,-5294,13416,2047,-1296,2203,6137 ], // DNGv9.3 D65
  958. "ranges": {
  959. "white": [
  960. { "iso": [ 100, 125, 160, 320, 500, 2000, 4000, 6400 ], "levels": 16300 }, // typical 16383
  961. { "iso": 200, "levels": 12900 }, // typical 12940-15570-15376
  962. { "iso": 250, "levels": 14100 }, // typical 14200
  963. { "iso": 800, "levels": 13400 }, // typical 13500-16383x2
  964. { "iso": 1000, "levels": 14900 }, // typical 15010-16383
  965. { "iso": 1250, "levels": 12300 }, // typical 12400
  966. { "iso": 1600, "levels": 15200 }, // typical 15290-16075-16380
  967. { "iso": 2500, "levels": 12200 }, // typical 12300
  968. { "iso": 3200, "levels": 15000 }, // typical 15080-16383-16100-13660
  969. { "iso": 5000, "levels": 12800 }, // typical 12840
  970. { "iso": [ 12800, 25600 ], "levels": 16200 } // typical 16383
  971. ],
  972. "white_max": 16383,
  973. "aperture_scaling": [
  974. // all scale factors are copied from EOS M3 */
  975. { "aperture": 1.4, "scale_factor": 1.200 }, // guessed
  976. { "aperture": 1.6, "scale_factor": 1.080 }, // guessed
  977. { "aperture": 1.8, "scale_factor": 1.055 }, // guessed
  978. { "aperture": 2.0, "scale_factor": 1.030 }, // guessed
  979. { "aperture": 2.2, "scale_factor": 1.025 }, // guessed
  980. { "aperture": 2.5, "scale_factor": 1.020 }, // guessed
  981. { "aperture": 2.8, "scale_factor": 1.000 }, //
  982. { "aperture": 3.2, "scale_factor": 1.000 }, //
  983. { "aperture": 3.5, "scale_factor": 1.000 } //
  984. ]
  985. }
  986. },
  987. { // Quality C, white levels not properly indicated, aperture scaling..missing scaling factors are guessed
  988. "make_model": "Canon EOS M3",
  989. "dcraw_matrix": [ 6362,-823,-847,-4426,12109,2616,-743,1857,5635 ], // DNG_V8.8 D65
  990. "raw_crop": [ 72, 34, 6024, 4022 ], // full size 6096x4056, official crop 84,46,6083,4045
  991. "masked_areas": [ 40, 16, 4000, 54 ],
  992. "ranges": {
  993. "white": [
  994. { "iso": [ 100, 125, 160 ], "levels": 16300 }, // 16383
  995. { "iso": [ 320, 640, 1250, 2500, 5000, 10000 ], "levels": 12600 }, // 12632..14500
  996. { "iso": [ 200, 250, 400, 500, 800, 1000, 1600, 2000, 3200, 4000 ], "levels": 15000 }, // 15095, 15488
  997. { "iso": [ 6400, 8000, 12800, 25600 ], "levels": 16200 } // 16383
  998. ],
  999. "white_max": 16383,
  1000. "aperture_scaling": [
  1001. // need for more data to properly fill all scale factors
  1002. { "aperture": 1.4, "scale_factor": 1.200 }, // guessed
  1003. { "aperture": 1.6, "scale_factor": 1.080 }, // guessed
  1004. { "aperture": 1.8, "scale_factor": 1.055 }, // guessed
  1005. { "aperture": 2.0, "scale_factor": 1.030 }, // guessed
  1006. { "aperture": 2.2, "scale_factor": 1.025 }, // guessed
  1007. { "aperture": 2.5, "scale_factor": 1.020 }, // guessed
  1008. { "aperture": 2.8, "scale_factor": 1.000 }, //
  1009. { "aperture": 3.2, "scale_factor": 1.000 }, //
  1010. { "aperture": 3.5, "scale_factor": 1.000 } //
  1011. ]
  1012. }
  1013. },
  1014. { // Quality C, White Levels not properly indicated, aperture scaling..missing factors are guessed
  1015. "make_model": [ "Canon EOS M5","Canon EOS M6" ],
  1016. "dcraw_matrix": [ 8532,-701,-1167,-4095,11879,2508,-797,2424,7010 ], // DNG_V9.8 D65
  1017. "raw_crop": [ 264, 36, 6024, 4020 ], // full size 6288x4056,
  1018. //"raw_crop": [ 272, 44, 6008, 4008 ], // matched to official crop 276,48,6275,4047 - official jpeg 6000X4000
  1019. "masked_areas": [ 40, 96, 4000, 260 ],
  1020. "ranges": {
  1021. "white": [
  1022. { "iso": [ 100, 125, 200, 250 ], "levels": 15600 }, // nominal 15660-15800
  1023. { "iso": [ 160 ], "levels": 12600 }, // green 12650-12750
  1024. { "iso": [ 320 ], "levels": 13100 }, // nominal green 13200, 13528-14466-14380-14368 - blue13262-14186,
  1025. { "iso": [ 640, 1250 ], "levels": 13200 }, // iso 640 G1,G2 13260-13450 - blue13230-13430 -iso 1250 13430
  1026. { "iso": [ 2500, 5000, 10000 ], "levels": 13000 }, //
  1027. { "iso": [ 400, 500, 800, 1000, 1600, 2000, 3200, 4000, 6400 ], "levels": 16100 }, // 16383
  1028. // { "iso": [ 1600 ], "levels": 15000 }, // one sample of m6 = 15100 !!
  1029. // { "iso": [ 6400 ], "levels": 15500 }, // one sample of m6 = 15600 !!
  1030. { "iso": [ 8000, 12800, 16000, 25600 ], "levels": 16000 } // R,G1,G2 16383, B 16243
  1031. ],
  1032. "white_max": 16383,
  1033. "aperture_scaling": [
  1034. // need for more data to properly fill all scale factors
  1035. { "aperture": 1.4, "scale_factor": 1.200 }, // 31/25
  1036. { "aperture": 1.6, "scale_factor": 1.080 }, // guessed
  1037. { "aperture": 1.8, "scale_factor": 1.060 }, // guessed
  1038. { "aperture": 2.0, "scale_factor": 1.040 }, // 15292/ 14916/ 320-14466/ 320-13528/
  1039. { "aperture": 2.2, "scale_factor": 1.020 }, // guessed
  1040. { "aperture": 2.5, "scale_factor": 1.010 }, // guessed
  1041. { "aperture": 2.8, "scale_factor": 1.000 }, //
  1042. { "aperture": 3.2, "scale_factor": 1.000 }, //
  1043. { "aperture": 3.5, "scale_factor": 1.000 } //
  1044. ]
  1045. }
  1046. },
  1047. { // Quality C, only raw crop
  1048. "make_model": [ "Canon EOS M6 Mark II", "Canon EOS 90D" ],
  1049. "raw_crop": [ 144, 72, 6984, 4660 ]
  1050. },
  1051. { // Quality C, only raw crop
  1052. "make_model": [ "Canon EOS R" ],
  1053. "raw_crop": [ 144, 46, 6744, 4500 ]
  1054. },
  1055. // Canon Powershot
  1056. { // Quality C, CHDK DNGs, raw frame correction
  1057. "make_model": "Canon PowerShot A3100 IS",
  1058. "raw_crop": [ 24, 12, 4032, 3024 ] // full size 4036X3026
  1059. },
  1060. { // Quality C, CHDK DNGs, raw frame corrections, experimental infrared support commented out
  1061. "make_model": "Canon PowerShot A480",
  1062. "dcraw_matrix": [ 8275,-2905,-1261,-128,5305,505,52,482,2450 ], // DNG_CHDK_V1.3.0 Daylight
  1063. //"dcraw_matrix": [ 15906,-7425,-2014,-2010,5554,264,404,-265,2706 ], // Infrared guessed
  1064. "raw_crop": [ 6, 12, 3684, 2760 ], // full size 3720X2772, official Canon crop 3648x2736
  1065. "masked_areas": [ 12, 3694, 2760, 3716 ], // only left side optically black area is considered
  1066. "ranges": { "white": 4080 }
  1067. },
  1068. { // Quality B, experimental infrared support commented out
  1069. "make_model": "Canon PowerShot G9",
  1070. "dcraw_matrix": [ 7368,-2141,-598,-5621,13254,2625,-1419,1696,5743 ], // DNG_V8.7 D65
  1071. //"dcraw_matrix": [ 8796,-3770,311,-4148,11362,3197,-598,983,5880 ], // DNG_V8.7 A
  1072. //"dcraw_matrix": [ 15669,-8084,-2453,-2940,5756,101,126,-401,2463 ], // Infrared guessed 111
  1073. //"dcraw_matrix": [ 13254,-6296,-1798,184,2753,90,1438,-566,1129 ], // Infrared guessed
  1074. "ranges": { "white": 4080 }
  1075. },
  1076. { // Quality A, changes for raw crop which is optimistic in dcraw
  1077. "make_model": "Canon PowerShot G12",
  1078. "dcraw_matrix": [ 13244,-5501,-1248,-1508,9858,1935,-270,1083,4366 ],
  1079. //"raw_crop": [ 62, 18, 3666, 2748 ], // max usable
  1080. "raw_crop": [ 68, 20, 3656, 2744 ], // equal to official Canon frame, 72,24,3719,2759 = 3648x2736
  1081. "masked_areas": [ 24, 40, 2770, 44 ], // as declared in maker data
  1082. "ranges": { "white": 4080 }
  1083. },
  1084. { // Quality B, needs a way to auto apply 3/2 or 4/3 crops (read Exif tags ..) to work better with auto distortion,
  1085. // for the moment just comment-uncomment the desired raw crop
  1086. "make_model": "Canon PowerShot G1 X Mark II",
  1087. "dcraw_matrix": [ 7378,-1255,-1043,-4088,12251,2048,-876,1946,5805 ], // D65 matrix from adobe dcp
  1088. //"raw_crop": [ 80, 50, 4400, 3316 ], // full frame 4480x3366 borders 80,50 - much shade in corners, no/wrong auto distortion
  1089. //"raw_crop": [ 104, 144, 4360, 3128 ], // Mixed best average frame, width is 4352 from 3/2, height 3120 from 4/3 - auto distortion does not work correctly
  1090. //"raw_crop": [ 200, 144, 4168, 3128 ], // Optional official 4/3 frame 4160x3120, 4pix borders, Left Border 204-4, Top Border 148-4
  1091. "raw_crop": [ 104, 252, 4360, 2912 ], // Default official 3/2 frame 4352x2904, 4pix borders, Left Border 108-4, Top border 256-4
  1092. "masked_areas": [ 148, 2, 3340, 78 ],
  1093. "ranges": { "white": 16300 }
  1094. },
  1095. { // Quality B
  1096. "make_model": "Canon PowerShot G3 X",
  1097. "dcraw_matrix": [ 9701,-3857,-921,-3149,11537,1817,-786,1817,5147 ], // DNG_V9.1.1 D65
  1098. "raw_crop": [ 128, 36, 5480, 3656 ], // Default official 3/2 frame 5472X3648, 4pix borders, Left Border 132-4, Top border 40-4
  1099. "masked_areas": [ 40, 4, 3680, 76 ],
  1100. "ranges": { "white": 16300 }
  1101. },
  1102. { // Quality B,
  1103. "make_model": "Canon PowerShot G7 X",
  1104. "dcraw_matrix": [ 9602,-3823,-937,-2984,11495,1675,-407,1415,5049 ], // DNG_V8.7 D65
  1105. //"raw_crop": [ 116, 24, 5504, 3680 ], // Sensor size 5632x3710. Largest useful frame 120-5616X28-3702 = 5504x3682, 4pix RTborders, Left Border 120-4, Top border 28-4
  1106. "raw_crop": [ 128, 36, 5480, 3656 ], // Default official 3/2 frame 5472X3648, 4pix borders, Left Border 132-4, Top border 40-4
  1107. "masked_areas": [ 40, 4, 3680, 76 ],
  1108. "ranges": { "white": 4080 }
  1109. },
  1110. { // Quality B,
  1111. "make_model": [ "Canon PowerShot G5 X", "Canon PowerShot G9 X", "Canon PowerShot G7 X Mark II", "Canon PowerShot G9 X Mark II" ],
  1112. "dcraw_matrix": [ 9602,-3823,-937,-2984,11495,1675,-407,1415,5049 ], // DNG_V8.7 D65
  1113. //"raw_crop": [ 116, 24, 5504, 3680 ], // Sensor size 5632x3710. Largest useful frame 120-5616X28-3702 = 5504x3682, 4pix RTborders, Left Border 120-4, Top border 28-4
  1114. "raw_crop": [ 128, 36, 5480, 3656 ], // Default official 3/2 frame 5472X3648, 4pix borders, Left Border 132-4, Top border 40-4
  1115. "masked_areas": [ 40, 4, 3680, 76 ],
  1116. "ranges": { "white": 15500 } // some sporadic samples are clipped lower than 16383, one ISO125 sample at 15500
  1117. },
  1118. { // Quality A, changes for raw crop which is wrong (larger) in dcraw
  1119. "make_model": "Canon PowerShot S120",
  1120. "dcraw_matrix": [ 6961,-1685,-695,-4625,12945,1836,-1114,2152,5518 ],
  1121. "raw_crop": [ 120, 30, 4024, 3030 ],
  1122. "masked_areas": [ 32, 2, 3028, 80 ],
  1123. "ranges": { "white": 4050 }
  1124. },
  1125. { // Quality C
  1126. "make_model": "Canon PowerShot SX50 HS",
  1127. "ranges": { "white": 4050 }
  1128. },
  1129. { // Quality B
  1130. "make_model": "Canon PowerShot SX60 HS",
  1131. "dcraw_matrix": [ 13161,-5451,-1344,-1989,10654,1531,-47,1271,4955 ], // DNG_V8.7 D65
  1132. "raw_crop": [ 120, 34, 4616, 3464 ], // full raw 4768x3516, Usable 96,16,4672,3498 - Canon official 4608x3456 left 124 top 38,
  1133. "masked_areas": [ 20, 2, 3480, 80 ],
  1134. "ranges": { "white": 4050 } // nominal 4080-4093
  1135. },
  1136. { // Quality C
  1137. "make_model": "Canon PowerShot SX150 IS",
  1138. "dcraw_matrix": [ 13481, -4867, -1063, -2074, 9960, 2472, -170, 1474, 3894 ], // Adobe DNG Converter 11.1 ColorMatrix1 (there is only one matrix and illuminant, and it's for daylight)
  1139. "raw_crop": [ 26, 10, 4364, 3254 ] // cut 2pix left and right
  1140. },
  1141. { // Quality C
  1142. "make_model": "Canon PowerShot SX220 HS",
  1143. "raw_crop": [ 92, 16, 4072, 3042 ] // Cut 2pix at lower border because of too high values in blue channel
  1144. },
  1145. { // Quality C
  1146. "make_model": [ "DJI FC2103" ],
  1147. "ranges": {
  1148. "black": 4080
  1149. }
  1150. },
  1151. { // Quality C
  1152. "make_model": "DJI FC6310",
  1153. "ranges": { "white": 64886 }
  1154. },
  1155. { // Quality C
  1156. "make_model": "FUJIFILM GFX 100",
  1157. "raw_crop": [ 0, 2, 11664, 8734 ]
  1158. },
  1159. { // Quality B
  1160. "make_model": "FUJIFILM GFX 50S",
  1161. "dcraw_matrix": [ 11756,-4754,-874,-3056,11045,2305,-381,1457,6006 ], // DNGv9.9 D65
  1162. //"dcraw_matrix": [ 12407,-5222,-1086,-2971,11116,2120,-294,1029,5284 ], // copy from X-A3 DNGv9.8 D65
  1163. "raw_crop": [ 0, 0, 8280, 6208 ], // full raw 9216X6210 - useful 8280x6208
  1164. //"raw_crop": [ 6, 6, 8264, 6200 ], // fuji official JPEG 8256X6192 10,11,9,8 - experimental crop to match with official
  1165. "ranges": { "white": 16000 }
  1166. },
  1167. { // Quality A
  1168. "make_model": "FUJIFILM S1",
  1169. "dcraw_matrix": [ 12297,-4882,-1202,-2106,10691,1623,-88,1312,4790 ] // DNG_v8.5 D65
  1170. },
  1171. { // Quality B
  1172. "make_model": [ "FUJIFILM X100S", "FUJIFILM X100T" ],
  1173. "dcraw_matrix": [ 10592,-4262,-1008,-3514,11355,2465,-870,2025,6386 ], // DNG_v8.7 D65
  1174. "ranges": { "white": 16100 }
  1175. },
  1176. { // Quality C
  1177. "make_model": "Fujifilm X10",
  1178. "ranges": { "white": 3788 }
  1179. },
  1180. { // Quality C
  1181. "make_model": "Fujifilm HS30EXR",
  1182. "ranges": { "white": 3765 }
  1183. },
  1184. { // Quality B
  1185. "make_model": "FUJIFILM X70",
  1186. "dcraw_matrix": [ 10450,-4329,-878,-3217,11105,2421,-752,1758,6519 ], // DNG_v9.4 D65
  1187. //"raw_crop": [ 4, 0, 4988, 3296 ], // full raw 4992,3296, fuji official 4936,3296 - experimental crop
  1188. "ranges": { "white": 16100 }
  1189. },
  1190. { // Quality B
  1191. "make_model": "FUJIFILM X-A2",
  1192. "dcraw_matrix": [ 10763,-4560,-917,-3346,11311,2322,-475,1135,5843 ], // DNG D65
  1193. "ranges": { "white": 4050 }
  1194. },
  1195. { // Quality B
  1196. "make_model": "FUJIFILM X-A3",
  1197. "dcraw_matrix": [ 12407,-5222,-1086,-2971,11116,2120,-294,1029,5284 ], // DNGv9.8 D65
  1198. "raw_crop": [ 0, 0, 6016, 4014 ], // full raw 6016x4014
  1199. "ranges": { "white": 16100 }
  1200. },
  1201. { // Quality C
  1202. "make_model": "FUJIFILM X-A5",
  1203. "ranges": { "white": 16100 }
  1204. },
  1205. { // Quality C, bisected from the overexposed region of one pre-release sample file
  1206. "make_model": "FUJIFILM X-A7",
  1207. "ranges": { "white": 16382 }
  1208. },
  1209. { // Quality B
  1210. "make_model": "FUJIFILM X-A10",
  1211. "dcraw_matrix": [ 11540,-4999,-991,-2949,10963,2278,-382,1049,5605 ], // DNGv9.12 D65
  1212. "raw_crop": [ 0, 0, 4912, 3278 ], // full raw 4912x3278, fuji official borders 10,11,9,8
  1213. "ranges": { "white": 4050 }
  1214. },
  1215. { // Quality B
  1216. "make_model": [ "FUJIFILM X-T1", "FUJIFILM X-T10", "FUJIFILM X-E2" ],
  1217. "dcraw_matrix": [ 8458,-2451,-855,-4597,12447,2407,-1475,2482,6526 ], // DNG D65
  1218. //"dcraw_matrix": [ 9289,-3279,-632,-3539,11137,2758,-1049,1950,6544 ], // X-RITE D55
  1219. //"raw_crop": [ 4, 0, 4936, 3296 ], // full raw 4992,3296, fuji official 4936,3296 - experimental crop
  1220. "ranges": { "white": 16100 }
  1221. },
  1222. { // Quality C
  1223. "make_model": [ "FUJIFILM X-T100" ],
  1224. "ranges": { "white": 16100 }
  1225. },
  1226. { // Quality B
  1227. "make_model": "FUJIFILM X-E2S",
  1228. "dcraw_matrix": [ 11562,-5118,-961,-3022,11007,2311,-525,1569,6097 ], // DNG_v9.4 D65
  1229. "ranges": { "white": 16100 }
  1230. },
  1231. { // Quality B
  1232. "make_model": "FUJIFILM X-PRO1",
  1233. "dcraw_matrix": [ 10413,-3996,-993,-3721,11640,2361,-733,1540,6011 ], // DNG_v9.4 D65
  1234. "ranges": { "white": 4080 }
  1235. },
  1236. { // Quality B
  1237. "make_model": [ "FUJIFILM X-T2", "FUJIFILM X-T20", "FUJIFILM X-E3", "FUJIFILM X100F", "FUJIFILM X-PRO2", "FUJIFILM X-H1" ],
  1238. "dcraw_matrix": [ 11434,-4948,-1210,-3746,12042,1903,-666,1479,5235 ], // DNG_v9.4 D65
  1239. // "raw_crop": [ 0, 5, 6032, 4032 ], // full raw 6160,4032, Usable 6032,4032 - for lossless compressed files
  1240. // "raw_crop": [ 0, 0, 6032, 4032 ], // full raw 6160,4032, Usable 6032,4032 - for uncompressed files
  1241. "raw_crop": [ 0, 5, 6032, 4026 ], // full raw 6160,4032, Usable 6032,4026 - for uncompressed and lossless compressed files (but reduces height by 6 pixels)
  1242. "ranges": { "white": 16100 }
  1243. },
  1244. { // Quality C, only raw crop
  1245. "make_model": [ "FUJIFILM X-T3", "FUJIFILM X-T30" ],
  1246. "raw_crop": [ 0, 5, 6252, 4176]
  1247. },
  1248. { // Quality B
  1249. "make_model": "FUJIFILM X30",
  1250. "dcraw_matrix": [ 12328,-5256,-1144,-4469,12927,1675,-87,1291,4351 ], // DNG_v8.7 D65
  1251. "ranges": { "white": 4040 }
  1252. },
  1253. { // Quality B
  1254. "make_model": "FUJIFILM XQ2",
  1255. "dcraw_matrix": [ 9252,-2704,-1064,-5893,14265,1717,-1101,2341,4349 ], // DNG_v8.8 D65
  1256. "ranges": { "white": 4040 }
  1257. },
  1258. { // Quality B, Matrix from Adobe's dcp D65 instead of the internal in Leica's DNG
  1259. "make_model": "LEICA Q (Typ 116)",
  1260. "dcraw_matrix": [ 10068,-4043,-1068,-5319,14268,1044,-765,1701,6522 ], // DCP D65
  1261. "raw_crop": [ 4, 4, -4, -4 ] // full raw 6016x4016, Official 6000x4000
  1262. },
  1263. { // Quality C
  1264. "make_model": "LEICA Q2",
  1265. "raw_crop": [ 0, 0, 8392, 5624 ]
  1266. },
  1267. { // Quality B, Matrix from Adobe's dcp D65 instead of the internal in Leica's DNG
  1268. "make_model": "LEICA SL (Typ 601)",
  1269. "dcraw_matrix": [ 11492,-4930,-1188,-5593,14673,873,-609,1474,6343 ], // DNGv9.3 D65
  1270. "raw_crop": [ 4, 4, -4, -4 ] // full raw 6016x4016, Official 6000x4000
  1271. },
  1272. { // Quality C, only raw crop
  1273. "make_model": "Leica SL2",
  1274. "raw_crop": [ 0, 0, 0, -18 ] // 18 rows at bottom are garbage
  1275. },
  1276. { // Quality C
  1277. "make_model": "LG mobile LG-H815",
  1278. "dcraw_matrix": [ 5859,547,-1250,-6484,15547,547,-2422,5625,3906 ], // DNG D65
  1279. //"dcraw_matrix": [ 11563,-2891,-3203,-5313,15625,625,-781,2813,5625 ], // DNG A
  1280. "raw_crop": [ 0, 0, 5312, 2986 ], // cropped last two rows because last row was garbage
  1281. "ranges": { "white": 1000 }
  1282. },
  1283. { // Quality C
  1284. "make_model": "LG mobile LG-H850",
  1285. //"dcraw_matrix": [ 10000,-2188,-2813,-5156,15469,625,-703,2734,5078 ], // DNG A
  1286. "dcraw_matrix": [ 5313,1016,-1172,-6250,15391,547,-2344,5547,3359 ], // DNG D65
  1287. "ranges": { "white": 1000 }
  1288. },
  1289. { // Quality A
  1290. "make_model": [ "Nikon 1 V3", "Nikon 1 J4" ], // Same format
  1291. "dcraw_matrix": [ 5958,-1559,-571,-4021,11453,2939,-634,1548,5087 ], // matrix from DNG_v8.5 d65
  1292. //"dcraw_matrix": [ 5306,-1066,-469,-3865,11189,3076,-399,1341,5120 ], // matrix dXo D50,
  1293. "ranges": { "white": 4080 } // Black is auto extracted from Exif, lower WL to 4080 from 4095 due to some non linearity detected at raw highlights
  1294. },
  1295. { // Quality B
  1296. "make_model": "Nikon 1 J5", //
  1297. "dcraw_matrix": [ 7520,-2518,-645,-3844,12102,1945,-913,2249,6835 ], // DNG_v9.1 D65
  1298. //"dcraw_matrix": [ 7651,-2102,-751,-3299,11101,1651,-1011,2242,5770 ], // matrix from ICC converted to dcraw format XYZ on ImagingResource still life sample
  1299. "ranges": {
  1300. "white": [
  1301. { "iso": [ 160, 200 ], "levels": 4000 }, // typical G1/G2 4020-4028, R/B 4088
  1302. { "iso": [ 400, 800, 1600, 3200 ], "levels": 4000 }, // g1/g2 4030-4040, r/b 4088
  1303. { "iso": [ 6400, 12800 ], "levels": 4080 } // 4090
  1304. ]
  1305. }
  1306. },
  1307. { // Quality A
  1308. "make_model": "Nikon 1 S2", //
  1309. "dcraw_matrix": [ 6612,-1342,-618,-3338,11055,2623,-174,1792,5075 ], // matrix from DNG_v8.5 d65
  1310. "ranges": { "white": 4080 } // BL autodetected from Exif
  1311. },
  1312. // For all Nikon DSLRs which have multiple bitdepth options (14- and 12-bit) we define the 14-bit value and RT adapts it to 12-bit
  1313. // when a 12-bit bitdepth is detected (WL12 = WL14*4095/16383)
  1314. { // Quality B, samples by Johan Thor at RT.Issues, measures at long exposures with LENR are missing
  1315. // but a safety margin is included - aperture scaling makes no significant difference
  1316. "make_model": "Nikon D3S",
  1317. "dcraw_matrix": [ 8828,-2406,-694,-4874,12603,2541,-660,1509,7587 ], // dcp d65
  1318. "ranges": {
  1319. "white": [
  1320. { "iso": [ 100, 125, 160, 200, 250, 320, 400, 500 ], "levels": 15520 }, // typical G1,G2 15520-15800 R,B 16383
  1321. { "iso": [ 640, 800, 1000, 1250 ], "levels": 15400 }, // typical G1,G2 15520-15800, R,B 16383
  1322. { "iso": [ 1600, 2000, 2500 ], "levels": 15300 }, // typical G1,G2 15520-15800, R,B 16383
  1323. { "iso": [ 3200, 4000, 5000, 6400 ], "levels": 15300 }, // typical G1/G2 15400-15800, R,B 16383
  1324. { "iso": [ 8000, 10000 ], "levels": 15000 }, // typical G1/G2 15400-15800, R,B 16383
  1325. { "iso": [ 12800, 16000 ], "levels": 14500 }, // typical G1/G2 15400-15800, R,B 16383
  1326. { "iso": [ 20000, 25600 ], "levels": 13300 }, // typical G1/G2 15400-15800, R,B 16383
  1327. { "iso": [ 51200, 102400 ], "levels": 12000 } // typical G1,G1 16270-16350, R,B 16383
  1328. ],
  1329. "white_max": 16383
  1330. }
  1331. },
  1332. { // Quality B, intermediate ISO samples missing
  1333. "make_model": "Nikon D500",
  1334. "dcraw_matrix": [ 8813,-3210,-1036,-4703,12868,2021,-1054,1940,6129 ], // DNG_v9.5 D65
  1335. "ranges": {
  1336. "white": [ // measured at integer ISOs. Safety margin per ISO groups according to expected WL spread after LENR
  1337. { "iso": [ 100, 200, 400, 800, 1600 ], "levels": [ 16300, 16100, 16300 ] }, // typical G1,G2 16180 R,B 16383
  1338. { "iso": [ 3200, 6400 ], "levels": [ 16250, 16050, 16250 ] }, // typical G1,G2,16200 R,B 16383
  1339. { "iso": [ 12800, 25600 ], "levels": 16000 }, // typical G1,G2, R,B 16383
  1340. { "iso": [ 51200, 102400 ], "levels": 15800 }, // typical G1,G2, R,B 16383
  1341. { "iso": [ 204800, 409600 ], "levels": 15500 }, // typical G1,G2,R,B 16383
  1342. { "iso": [ 819200, 1638400 ], "levels": 15000 } // typical G1,G2, R,B 16383
  1343. ],
  1344. "white_max": 16383
  1345. }
  1346. },
  1347. { // Quality B, lacks aperture and ISO scaling, known to exist, but little to gain as the levels are so close to white_max
  1348. "make_model": "Nikon D7000",
  1349. "dcraw_matrix": [ 7530,-1942,-255,-4318,11390,3362,-926,1694,7649 ], // matrix provided by Tanveer(tsk1979)
  1350. "ranges": {
  1351. // measured at ISO 100. ISO differences not measured, but known to exist
  1352. "white": [ 16300, 15700, 16300 ], // typical R 16383, G 15778, B 16383
  1353. "white_max": 16383
  1354. // aperture scaling not measured, but known to exist, at f/1.8 the G channels hits white_max
  1355. }
  1356. },
  1357. { // Quality B
  1358. "make_model": "NIKON COOLPIX A",
  1359. "dcraw_matrix": [ 8198,-2239,-724,-4871,12389,2798,-1043,2050,7181 ], // dng_d65
  1360. "ranges": {
  1361. "white": [
  1362. { "iso": [ 100, 125, 160, 200, 250, 320, 400, 500, 640, 800 ], "levels": [ 16300, 15700, 16300 ] }, // typical G1,G2 15760-15800 R,B 16383
  1363. { "iso": [ 1000, 1250, 1600, 2000, 2500, 3200 ], "levels": 16300 }, // typical G1,G2, R,B 16383
  1364. { "iso": [ 4000, 5000, 6400 ], "levels": 16200 }, // typical G1,G2, R,B 16383
  1365. { "iso": [ 8000, 10000, 12800 ], "levels": 16000 }, // typical G1,G2,R,B 16383
  1366. { "iso": [ 16000, 20000, 25600 ], "levels": 15700 } // typical G1,G2, R,B 16383
  1367. ],
  1368. "white_max": 16383
  1369. }
  1370. },
  1371. { // Quality B
  1372. "make_model": "NIKON COOLPIX P1000",
  1373. "dcraw_matrix": [ 14294, -6116, -1333, -1628, 10219, 1637, -14, 1158, 5022 ], // ColorMatrix2 from Adobe DNG Converter 11.4
  1374. "ranges": { "black": 200, "white": 4093 }
  1375. },
  1376. { // Quality B, no LENR samples
  1377. "make_model": "Nikon D5",
  1378. "dcraw_matrix": [ 9200,-3522,-992,-5755,13803,2117,-753,1486,6338 ], // adobe dng_v9.5 d65
  1379. "ranges": { "black": 0, "white": 16300 } // WL typical 16383 set to 16300 for safety
  1380. },
  1381. { // Quality B
  1382. "make_model": "Nikon D3400",
  1383. "dcraw_matrix": [ 6988,-1384,-714,-5631,13410,2447,-1485,2204,7318 ], // adobe dng_v9.7 d65
  1384. "ranges": { "white": 16300 } // WL value is for 14-bit files, RT auto adapts it for 12-bit files. WL typical 16383 set to 16300 for safety
  1385. },
  1386. { // Quality B
  1387. "make_model": "Nikon D5300",
  1388. "dcraw_matrix": [ 6988,-1384,-714,-5631,13410,2447,-1485,2204,7318 ], // adobe dng_v8.8 d65
  1389. "ranges": { "white": 16300 } // WL value is for 14-bit files, RT auto adapts it for 12-bit files. WL typical 16383 set to 16300 for safety
  1390. },
  1391. { // Quality B
  1392. "make_model": [ "Nikon D5500", "Nikon D5600" ],
  1393. "dcraw_matrix": [ 8821,-2938,-785,-4178,12142,2287,-824,1651,6860 ], // adobe dng_v9.8 d65
  1394. "ranges": { "white": 16300 } // WL value is for 14-bit files, RT auto adapts it for 12-bit files. WL typical 16383 set to 16300 for safety
  1395. },
  1396. { // Quality B
  1397. "make_model": "Nikon D7200",
  1398. "dcraw_matrix": [ 8322,-3112,-1047,-6367,14342,2179,-988,1638,6394 ], // adobe dng_v9.0 d65
  1399. "ranges": { "white": 16300 } // WL value is for 14-bit files, RT auto adapts it for 12-bit files. WL typical 16383 set to 16300 for safety,
  1400. },
  1401. { // Quality B
  1402. "make_model": "Nikon D7500",
  1403. "dcraw_matrix": [ 8813,-3210,-1036,-4703,12868,2021,-1054,1940,6129 ], // adobe dng_v9.12 d65
  1404. "ranges": { "white": 16300 } // WL value is for 14-bit files, RT auto adapts it for 12-bit files. WL typical 16383 set to 16300 for safety,
  1405. },
  1406. { // Quality B, samples by joachip at RT forums, are measures at long exposures with LongExposureNoiseReduction
  1407. // aperture scaling known to exist, but little to gain as the levels are so close to white_max
  1408. "make_model": "Nikon D600",
  1409. "dcraw_matrix": [ 8178,-2245,-609,-4857,12394,2776,-1207,2086,7298 ], // dcp d65
  1410. //"raw_crop": [ 0, 0, 6034, 4028 ], // dcraw
  1411. "ranges": {
  1412. "white": [
  1413. { "iso": [ 50, 100 ], "levels": [ 15800, 15800, 15350 ] }, // typical G1/G2/R 15879, B 15395-15670 lowered to 15800, 15350, 3969 B3917
  1414. { "iso": [ 200, 400, 800 ], "levels": [ 16300, 15700, 16300 ] }, // 15878, 16383
  1415. { "iso": 1000, "levels": [ 16300, 16100, 16300 ] }, // 12-bit lossless r4095, 3981-10, b4041- 12-bit lossy r,g1,g2 3961 - b3917,
  1416. { "iso": 1600, "levels": [ 16300, 16100, 16300 ] }, // 16145-165, 16383
  1417. { "iso": [ 3200, 6400, 12800, 25600 ], "levels": [ 16300, 16300, 16300 ] } // 16383
  1418. ],
  1419. "white_max": 16383
  1420. }
  1421. },
  1422. { // Quality B, missing WL measures at intermediate ISOs (160-250-320 ..) and at long exposures with LongExposureNoiseReduction set to ON
  1423. // aperture scaling known to exist, but little to gain as the levels are so close to white_max
  1424. "make_model": "Nikon D610",
  1425. "dcraw_matrix": [ 8178,-2245,-609,-4857,12394,2776,-1207,2086,7298 ], // dcp d65
  1426. "raw_crop": [ 0, 0, 6034, 4028 ],
  1427. "ranges": {
  1428. "white": [
  1429. { "iso": [ 50, 100 ], "levels": [ 15800, 15700, 15800 ] }, // typical G1/G2 15778, R/B 15879 lowered to 15700, 15800 for possible WL distribution under LENR
  1430. { "iso": [ 200, 400, 800 ], "levels": [ 16300, 15700, 16300 ] }, // 15878, 16383
  1431. { "iso": 1600, "levels": [ 16300, 16100, 16300 ] }, // 16145-165, 16383
  1432. { "iso": [ 3200, 6400, 12800, 25600 ], "levels": [ 16300, 16300, 16300 ] } // 16383
  1433. ],
  1434. "white_max": 16383
  1435. }
  1436. },
  1437. { // Quality B, data from RusselCottrell at RT forums. sensor is not uniform
  1438. "make_model": "Nikon D700",
  1439. "dcraw_matrix": [ 8139,-2171,-663,-8747,16541,2295,-1925,2008,8093 ],
  1440. //"dcraw_matrix": [ 9336,-3405,14,-7321,14779,2764,-914,1171,8248 ], // illuminant A
  1441. "ranges": { "white": [ 15500, 15500, 15500 ] }
  1442. // Non linearities start at 15500 (hi ISOs) 15850 (low ISOs) with long exposures (>2sec) and LENR ON .. nominal 15892
  1443. // white 15500 is correct for 14-bit files, for 12-bit files RT auto_calculates it 15500*4095/16383=3874
  1444. },
  1445. { // Quality B,
  1446. "make_model": "Nikon D750",
  1447. "dcraw_matrix": [ 9020,-2890,-715,-4535,12436,2348,-934,1919,7086 ], // adobe dcp d65 DNGv8.7
  1448. "ranges": { "white": 16300 } // WL values for 14-bit files, RT auto adapts it for 12-bit files. TypicalWL 16383 set to 16300 for safety
  1449. },
  1450. { // Quality B, data from RussellCottrell at RT forums. Largest aperture scale factor is 1.013, about 1/50th of a stop
  1451. "make_model": [ "Nikon D800", "Nikon D800E" ],
  1452. "dcraw_matrix": [ 7866,-2108,-555,-4869,12483,2681,-1176,2069,7501 ], // D800/D800E from dcraw.c
  1453. "ranges": {
  1454. "white": [
  1455. { "iso": [ 100, 125, 160, 200, 250, 320, 400, 500, 640, 800, 1000, 1250 ], "levels": [ 16300, 15700, 16300 ] }, // 15779-15781
  1456. { "iso": [ 1600 ], "levels": 16000 }, // 16085-16113
  1457. { "iso": [ 2000, 2500, 3200, 4000, 5000, 6400, 12800, 25600 ], "levels": 16300 } // 16383
  1458. ]
  1459. }
  1460. },
  1461. { // Quality B, WL set at 16300 from nominal 16380 for possible non linearities with LENR
  1462. "make_model": "Nikon D810",
  1463. "dcraw_matrix": [ 9369,-3195,-791,-4488,12430,2301,-893,1796,6872 ], // dcp_v8.6 d65
  1464. "raw_crop": [ 0, 0, 7380, 4928 ], // Official raw crop 7380x4928,
  1465. "ranges": { "white": 16300 } // WL values for 14-bit files, RT auto adapts it for 12-bit files. Typical WL at 16383
  1466. },
  1467. { // Quality A, Samples by zorgtool at RT forums
  1468. "make_model": "Nikon D850",
  1469. "dcraw_matrix": [ 10405,-3755,-1270,-5461,13787,1793,-1040,2015,6785 ], // DNGv9.12.1 d65
  1470. "ranges": {
  1471. "white": [
  1472. { "iso": [ 64, 80, 100, 125, 160, 200, 250, 320 ], "levels": [ 16250, 16050, 16250 ] }, // R,B 16383 G1,G2 16145-16155
  1473. { "iso": [ 400, 500, 640, 800, 1000, 1250, 1600, 2000, 2500 ], "levels": [ 16150, 15950, 16150 ] }, // G1,G2 16110-16145
  1474. { "iso": [ 3200, 4000, 5000 ], "levels": 16000 }, // G1,G2 16120-16145
  1475. { "iso": [ 6400, 8000, 10000 ], "levels": 15700 }, // G1,G2 16120-16145
  1476. { "iso": [ 12800, 16000 ], "levels": 15400 }, // 16383
  1477. { "iso": [ 20000, 25600 ], "levels": 15000 }, // 16383
  1478. { "iso": [ 32000 ], "levels": 14500 }, // 16383
  1479. { "iso": [ 40000 ], "levels": 14000 }, // 16383
  1480. { "iso": [ 51200 ], "levels": 13500 }, // nominal 16383
  1481. { "iso": [ 102400 ], "levels": 12000 } // nominal 16383
  1482. ],
  1483. "white_max": 16383,
  1484. "aperture_scaling": [
  1485. // need for more data to properly fill all scale factors
  1486. { "aperture": 1.4, "scale_factor": 1.050 }, // 37/35
  1487. { "aperture": 1.6, "scale_factor": 1.040 }, // 68/65
  1488. { "aperture": 1.8, "scale_factor": 1.030 }, // 65/63
  1489. { "aperture": 2.0, "scale_factor": 1.000 }, //
  1490. { "aperture": 2.2, "scale_factor": 1.000 }, //
  1491. { "aperture": 2.5, "scale_factor": 1.000 }, //
  1492. { "aperture": 2.8, "scale_factor": 1.000 }, //
  1493. { "aperture": 3.2, "scale_factor": 1.000 }, //
  1494. { "aperture": 3.5, "scale_factor": 1.000 } //
  1495. ]
  1496. }
  1497. },
  1498. { // Quality B
  1499. "make_model": "Nikon D80",
  1500. "dcraw_matrix": [ 8629,-2410,-883,-9055,16940,2171,-1490,1363,8520 ], // Dcraw.c d65
  1501. "ranges": { "white": 3980 } // 12-bit files.
  1502. },
  1503. { // Quality C, only color matrix and PDAF lines info
  1504. "make_model" : "Nikon Z 7",
  1505. "dcraw_matrix" : [10405,-3755,-1270,-5461,13787,1793,-1040,2015,6785], // Adobe DNG Converter 11.0 ColorMatrix2
  1506. "pdaf_pattern" : [0, 12],
  1507. "pdaf_offset" : 29
  1508. },
  1509. { // Quality C, only color matrix and PDAF lines info
  1510. "make_model" : "Nikon Z 6",
  1511. "dcraw_matrix" : [8210, -2534, -683, -5355, 13338, 2212, -1143, 1929, 6464], // Adobe DNG Converter 11.1 Beta ColorMatrix2
  1512. "pdaf_pattern" : [0, 12],
  1513. "pdaf_offset" : 32
  1514. },
  1515. { // Quality B, 16Mp and 64Mp raw frames
  1516. "make_model": "OLYMPUS E-M5MarkII",
  1517. "dcraw_matrix": [ 9422,-3258,-711,-2655,10898,2015,-512,1354,5512 ], // DNG_v8.8 D65
  1518. "raw_crop": [ 0, 0, -6, -6 ], // largest valid, full 64Mp 9280x6938, official crop 0 0 9216 6912
  1519. "ranges": {
  1520. "white": [
  1521. { "iso": [ 100, 200 ], "levels": 3950 }, // normal 4080-4095, HR Dpreview 4047, IR 3956
  1522. { "iso": [ 400, 800, 1600, 3200 ], "levels": 4070 }, // 4070-4095
  1523. { "iso": [ 6400, 12800, 25600 ], "levels": 4040 } // 4000-4095
  1524. ]
  1525. }
  1526. },
  1527. { // Quality B, 20Mp and 80Mp raw frames
  1528. "make_model": "OLYMPUS PEN-F",
  1529. "dcraw_matrix": [ 9476,-3182,-765,-2613,10958,1893,-449,1315,5268 ], // dng_v9.5 D65
  1530. //"raw_crop": [ 0, 0, 10372, -7780 ], // Highres mode largest valid, full 80Mp 10400X7796, official crop 10 10 10368 7776
  1531. "ranges": {
  1532. "white": [
  1533. { "iso": [ 100, 200 ], "levels": 3950 }, // normal 4080-4095, HR Dpreview 4047, IR 3956
  1534. { "iso": [ 400, 800, 1600, 3200 ], "levels": 4070 }, // 4070-4095
  1535. { "iso": [ 6400, 12800, 25600 ], "levels": 4040 } // 4000-4095
  1536. ]
  1537. }
  1538. },
  1539. { // Quality B, 20Mp and 80Mp raw frames,
  1540. "make_model": "OLYMPUS E-M1MarkII",
  1541. "dcraw_matrix": [ 9383,-3170,-763,-2457,10702,2020,-384,1236,5552 ], // dng_V9.10 D65
  1542. //"dcraw_matrix": [ 8380,-2630,-639,-2887,10725,2496,-627,1427,5438 ], // beta, dng_v9.8 D65
  1543. "raw_crop": [ 8, 8, -16, -8 ], // full raw 5240X3912, jpeg top12,left12,5184x3888, full hires 10400X7792, jpeg crop 8,8,10368x7776
  1544. "ranges": {
  1545. "white": [
  1546. { "iso": [ 64, 100, 125, 160, 200, 250, 320, 400 ], "levels": 4090 }, // normal 4095
  1547. { "iso": [ 500, 640, 800, 1000, 1600 ], "levels": 4080 }, // 4085-4095
  1548. { "iso": [ 2000, 2500, 3200, 4000, 5000, 6400 ], "levels": 4060 }, // 4085-4095
  1549. { "iso": [ 12800, 25600, 51200 ], "levels": 4060 } // guess
  1550. ]
  1551. }
  1552. },
  1553. { // Quality B, missing per ISO samples
  1554. "make_model": "OLYMPUS E-M1",
  1555. "global_green_equilibration" : true,
  1556. "dcraw_matrix": [ 7687,-1984,-606,-4327,11928,2721,-1381,2339,6452 ], // dng d65
  1557. "ranges": { "white": 4080 } // nominal 4095-4094, spread with some settings as long exposure
  1558. },
  1559. { // Quality C, only raw crop for highres mode
  1560. "make_model": "OLYMPUS E-M1X",
  1561. "raw_crop": [ 0, 0, 10388, 0 ] // Highres mode largest valid, full 80Mp 10400X7792, works also for non highres mode because larger width will be ignored
  1562. },
  1563. { // Quality B, crop correction
  1564. "make_model": [ "OLYMPUS E-M10", "OLYMPUS E-M10MarkII", "OLYMPUS E-M10 Mark III" ],
  1565. "dcraw_matrix": [ 8380,-2630,-639,-2887,10725,2496,-627,1427,5438 ],
  1566. "raw_crop": [ 0, 0, 4624, 3472 ], // largest valid - full frame is 4640x3472
  1567. //"raw_crop": [ 4, 4, 4616, 3464 ], // olympus jpeg crop 8, 8, 4608, 3456
  1568. "ranges": { "white": 4080 }
  1569. },
  1570. { // Quality A, white level correction
  1571. "make_model": "OLYMPUS E-PM2",
  1572. "global_green_equilibration" : true,
  1573. "dcraw_matrix": [ 8380,-2630,-639,-2887,10725,2496,-627,1427,5438 ],
  1574. "ranges": { "white": 4040 } // nominal 4056
  1575. },
  1576. { // Quality C
  1577. "make_model": [ "OLYMPUS E-PL9" ],
  1578. "ranges": { "white": 4080 } // nominal 4093
  1579. },
  1580. { // Quality B, with long exposure noise reduction White Level gets WL-BL = around 256_12-bit levels less
  1581. "make_model": [ "OLYMPUS E-PL7", "OLYMPUS E-PL8" ],
  1582. "global_green_equilibration" : true,
  1583. "dcraw_matrix": [ 9197,-3190,-659,-2606,10830,2039,-458,1250,5458 ], // DNG_v9.8 D65
  1584. "ranges": { "white": 4080 } // nominal 4093
  1585. },
  1586. { // Quality B, per ISO WL measures missing
  1587. "make_model": [ "OLYMPUS SH-2", "Olympus SH-3" ],
  1588. "dcraw_matrix": [ 10156,-3425,-1077,-2611,11177,1624,-385,1592,5080 ], // DNG_V9.1 D65
  1589. "ranges": { "white": 4050 } // safe for worst case detected, nominal is 4093
  1590. },
  1591. { // Quality B,
  1592. "make_model": "OLYMPUS TG-5",
  1593. "dcraw_matrix": [ 10899,-3833,-1082,-2112,10736,1575,-267,1452,5269 ], // DNG_V9.12 D65
  1594. "raw_crop": [ 0, 0, -18, 0 ], // 18 pixels at right are garbage
  1595. "ranges": { "white": 4050 } // safe for worst case detected, nominal is 4093
  1596. },
  1597. { // Quality C, only raw crop
  1598. "make_model": "OLYMPUS TG-6",
  1599. "raw_crop": [ 0, 0, -24, 0 ] // 24 pixels at right are garbage
  1600. },
  1601. { // Quality C, only green equilibration
  1602. "make_model" : ["OLYMPUS E-3", "OLYMPUS E-520"],
  1603. "global_green_equilibration" : true
  1604. },
  1605. { // Quality X
  1606. "make_model": [ "Panasonic DC-LX100M2" ],
  1607. "dcraw_matrix": [ 11577, -4230, -1106, -3967, 12211, 1957, -758, 1762, 5610 ], // Adobe DNG Converter 11.0 ColorMatrix2
  1608. "raw_crop": [ 0, 0, 0, 0 ],
  1609. "ranges": { "black": 15 }
  1610. },
  1611. { // Quality C, proper ISO 100-125-160 samples missing, pixelshift files have no black offset etc. #4574
  1612. "make_model": [ "Panasonic DC-G9" ],
  1613. "dcraw_matrix": [ 7685, -2375, -634, -3687, 11700, 2249, -748, 1546, 5111 ], // Adobe DNG Converter 10.3 ColorMatrix2
  1614. "ranges": {
  1615. "black": 15, // 15 is BL offset. dcraw/RT reads the base black from Exif and calculates total BL = BLbase+BLoffset
  1616. "white": [
  1617. { "iso": 100, "levels": 3000 }, // gaussian 3100-3600 Exif_linearitylimit 2111
  1618. { "iso": 125, "levels": 3500 }, // guessed
  1619. { "iso": [ 160, 200, 250, 320, 400,500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400, 12800, 25600 ], "levels": 4080 } // nominal 4095
  1620. ]
  1621. }
  1622. },
  1623. { // Quality C, only color matrix
  1624. "make_model" : "Panasonic DC-GF10",
  1625. "dcraw_matrix": [ 7610, -2780, -576, -4614, 12195, 2733, -1375, 2393, 6490 ], // ColorMatrix2 from Adobe DNG Converter 11.3
  1626. "raw_crop": [ 0, 0, 4600, 0 ], // SensorWidth=4816 SensorHeight=3464. Width=4600 to match DNG.
  1627. "ranges": {
  1628. "black": 15
  1629. }
  1630. },
  1631. { // Quality B, CameraPhone, some samples are missing but has the same sensor as FZ1000 ..
  1632. "make_model": [ "Panasonic DMC-CM1", "Panasonic DMC-CM10" ],
  1633. "dcraw_matrix": [ 8770,-3194,-820,-2871,11281,1803,-513,1552,4434 ], // dcp_v8.7 d65
  1634. "ranges": {
  1635. "black": 15, // 15 is BL offset. dcraw/RT read the base BL from Exif and calculates total BL = BLbase+BLoffset
  1636. "white": [
  1637. { "iso": 80, "levels": 3600 }, // Exif:3277 distribution peak at 3700 up to +/- 100
  1638. { "iso": [ 100, 125, 200, 400, 800, 1600 ], "levels": 4050 }, // Exif 4095 distribution 4050-4095
  1639. { "iso": [ 3200, 6400, 12600, 25600 ], "levels": 4080 } // Exif 4095 distribution 4080-4095
  1640. ]
  1641. }
  1642. },
  1643. { // Quality B
  1644. "make_model": [ "Panasonic DC-FZ80", "Panasonic DC-FZ81", "Panasonic DC-FZ82", "Panasonic DC-FZ83" ],
  1645. "dcraw_matrix": [ 8550,-2908,-842,-3195,11529,1881,-338,1603,4631 ], // DNGv9.10.1 D65
  1646. "raw_crop": [ 0, 6, -8, -2 ], // fullraw4/3 5040x3688 official 8,8,4904,3680 = 4896X3672. Dcraw 0,0,4912,3688 RT's frame gets smaller than dcraw but works better with auto distortion
  1647. "ranges": { "black": 15, "white": 4050 } // 15 is BL offset. dcraw/RT read the base offset from Exif and calculates total BL = BLbase+BLoffset
  1648. },
  1649. { // Quality A, replicated from rawimage.cc
  1650. "make_model": "Panasonic DMC-FZ150",
  1651. "dcraw_matrix": [ 10435,-3208,-72,-2293,10506,2067,-486,1725,4682 ], // RT, copy from custom dcp d55
  1652. "ranges": { "black": 15, "white": 4050 } // 15 is BL offset. dcraw/RT read the base offset from Exif and calculates total BL = BLbase+BLoffset
  1653. },
  1654. { // Quality B,
  1655. "make_model": [ "Panasonic DMC-FZ300", "Panasonic DMC-FZ330" ],
  1656. "dcraw_matrix": [ 8378,-2798,-769,-3068,11410,1877,-538,1792,4623 ], // DNG-V9.1.1
  1657. "ranges": { "black": 15, "white": 4050 } // 15 is BL offset. dcraw/RT read the base offset from Exif and calculates total BL = BLbase+BLoffset
  1658. },
  1659. { // Quality A, samples by helices at RT forums
  1660. "make_model": [ "Panasonic DMC-FZ1000", "Leica V-LUX (Typ 114)" ],
  1661. "dcraw_matrix": [ 7830,-2696,-763,-3325,11667,1866,-641,1712,4824 ], // dcp_v8.6 d65
  1662. "ranges": {
  1663. "black": 15, // 15 is BL offset. dcraw/RT read the base BL from Exif and calculates total BL = BLbase+BLoffset
  1664. "white": [
  1665. { "iso": 80, "levels": 3600 }, // Exif:3277 distribution peak at 3700 up to +/- 100
  1666. { "iso": [ 100, 125, 200, 400, 800, 1600 ], "levels": 4050 }, // Exif 4095 distribution 4050-4095
  1667. { "iso": [ 3200, 6400, 12600, 25600 ], "levels": 4080 } // Exif 4095 distribution 4080-4095
  1668. ]
  1669. }
  1670. },
  1671. { // Quality B,
  1672. "make_model": [ "Panasonic DMC-FZ2500", "Panasonic DMC-FZ2000", "Panasonic DMC-FZH1" ],
  1673. "dcraw_matrix": [ 7386,-2443,-743,-3437,11864,1757,-608,1660,4766 ], // dcp_v9.8 d65
  1674. "ranges": {
  1675. "black": 15, // 15 is BL offset. dcraw/RT read the base BL from Exif and calculates total BL = BLbase+BLoffset
  1676. "white": [
  1677. { "iso": 80, "levels": 3600 }, // Exif:3277 distribution peak at 3700 up to +/- 100
  1678. { "iso": [ 100, 125, 200, 400, 800, 1600 ], "levels": 4050 }, // Exif 4095 distribution 4050-4095
  1679. { "iso": [ 3200, 6400, 12600, 25600 ], "levels": 4080 } // Exif 4095 distribution 4080-4095
  1680. ]
  1681. }
  1682. },
  1683. { // Quality A, samples by helices at RT forums and Chris Power at github
  1684. "make_model": [ "Panasonic DMC-ZS100", "Panasonic DMC-ZS110", "Panasonic DMC-TZ100", "Panasonic DMC-TZ101", "Panasonic DMC-TZ110", "Panasonic DMC-TX1" ],
  1685. "dcraw_matrix": [ 7790,-2736,-755,-3452,11870,1769,-628,1647,4898 ], // dcp_v8.6 d65
  1686. "raw_crop": [ 4, 4, -4, -4 ], // full raw frame 5488x3664 Exif crop 5472X3648 with 8pixel borders. Set the borders at 4 pixels which added with RT's 4 pixels border gives exactly the official frame.
  1687. "ranges": {
  1688. "black": 15, // 15 is BL offset. dcraw/RT read the base BL from Exif and calculates total BL = BLbase+BLoffset
  1689. "white": [
  1690. { "iso": 80, "levels": 3600 }, // Exif:3277 distribution peak at 3700 up to +/- 100
  1691. { "iso": [ 100, 125, 200, 400, 800, 1600 ], "levels": 4050 }, // Exif 4095 distribution 4050-4095
  1692. { "iso": [ 3200, 6400, 12600, 25600 ], "levels": 4080 } // Exif 4095 distribution 4080-4095
  1693. ]
  1694. }
  1695. },
  1696. { // Quality A
  1697. "make_model": [ "Panasonic DMC-LF1", "Leica C (Typ 112)" ],
  1698. "dcraw_matrix": [ 9379,-3267,-816,-3227,11560,1881,-926,1928,5340 ],
  1699. "ranges": { "black": 15, "white": 4050 } // 15 is BL offset. dcraw/RT read the base offset from Exif and calculates total BL = BLbase+BLoffset
  1700. },
  1701. { // Quality A
  1702. "make_model": [ "Panasonic DMC-TZ60", "Panasonic DMC-TZ61", "Panasonic DMC-ZS40", "Panasonic DMC-ZS41" ],
  1703. "dcraw_matrix": [ 8607,-2822,-808,-3755,11930,2049,-820,2060,5224 ], // matrix from Adobe dcp v8.4
  1704. "raw_crop": [ 8, 8, -8, -8 ], // crop according to Exif 4896 X 3672 plus 4 pixels borders. RT's frame gets smaller than dcraw but works better with auto distortion
  1705. "ranges": { "black": 14, "white": 4050 } // 15 is BL offset. dcraw/RT read the base offset from Exif and calculates total BL = BLbase+BLoffset
  1706. },
  1707. { // Quality B
  1708. "make_model": [ "Panasonic DMC-TZ70", "Panasonic DMC-TZ71", "Panasonic DMC-ZS50", "Panasonic DMC-ZS51" ],
  1709. "dcraw_matrix": [ 8802,-3135,-789,-3151,11468,1904,-550,1745,4810 ], // DNG_V8.8 D65
  1710. "raw_crop": [ 0, 0, -4, -4 ], // full raw 4/3 4144x3016 8,8,3008,4008 = 4000X3000. RT's frame gets smaller than dcraw but works better with auto distortion
  1711. "ranges": { "black": 14, "white": 4050 } // 12+1+1 is BL offset
  1712. },
  1713. { // Quality A, samples by Hombre
  1714. "make_model": [ "Panasonic DC-ZS70", "Panasonic DC-TZ90", "Panasonic DC-TZ91", "Panasonic DC-TZ92", "Panasonic DC-TZ93" ],
  1715. "dcraw_matrix": [ 9052,-3117,-883,-3045,11346,1927,-205,1520,4730 ], // DNG_V9.10.1 D65
  1716. "raw_crop": [ 0, 6, -8, -2 ], // fullraw4/3 5264x3904 official 8,8,3896,5192 = 5184X3888. Dcraw 0,0,5200,3904 RT's frame gets smaller than dcraw but works better with auto distortion
  1717. "ranges": { "black": 16, "white": 4050 } // 12+3+1 is BL offset
  1718. },
  1719. // Panasonic DMC-FZ150,G10,G1,G2,G3,G5,GF1,GF2,GF3 are included as overwrites of the same items of rawimage.cc to test the dcraw9.21 patch
  1720. { // Quality A, Replicated from rawimage.cc
  1721. "make_model": [ "Panasonic DMC-G10", "Panasonic DMC-G2" ],
  1722. "dcraw_matrix": [ 8310,-1811,-960,-4941,12990,2151,-1378,2468,6860 ], // Colin Walker
  1723. "ranges": {
  1724. "black": 15, // 15 is black offset, dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1725. "white": [
  1726. { "iso": [ 100, 200, 400, 800 ], "levels": 3920 }, // Exif:3967 distribution peak at 3967 +/- up to 50
  1727. { "iso": [ 1600, 3200, 6400 ], "levels": 4060 } // Exif 3967, histogram peak 4095 and distribution down to 4070
  1728. ]
  1729. }
  1730. },
  1731. { // Quality A, Replicated from rawimage.cc
  1732. "make_model": "Panasonic DMC-G1",
  1733. "dcraw_matrix": [ 7477,-1615,-651,-5016,12769,2506,-1380,2475,7240 ], // Colin Walker
  1734. "ranges": {
  1735. "black": 15, // 15 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1736. "white": [
  1737. { "iso": [ 100, 200, 400, 800 ], "levels": 3920 }, // Exif:4095 distribution peak at 3977 +/- up to 50
  1738. { "iso": [ 1600, 3200 ], "levels": 4060 } // Exif 4095, histogram peak 4095 and distribution down to 4070
  1739. ]
  1740. }
  1741. },
  1742. { // Quality A, Replicated from rawimage.cc
  1743. "make_model": "Panasonic DMC-G3",
  1744. "dcraw_matrix": [ 6051,-1406,-671,-4015,11505,2868,-1654,2667,6219 ], // Colin Walker
  1745. "ranges": {
  1746. "black": 15, // 15 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1747. "white": 4060 } // Exif:4095 normal distribution 4080-4095, 4070-4095 on long exposure NR
  1748. },
  1749. { // Quality A, Replicated from rawimage.cc
  1750. "make_model": "Panasonic DMC-G5",
  1751. "dcraw_matrix": [ 7122,-2092,-419,-4643,11769,3283,-1363,2413,5944 ], // RT
  1752. "ranges": {
  1753. "black": 15, // 15 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1754. "white": 4060 // Exif:4095 normal distribution 4080-4095, 4070-4095 on long exposure NR
  1755. }
  1756. },
  1757. { // Quality A, Replicated from rawimage.cc
  1758. "make_model": "Panasonic DMC-GF1",
  1759. "dcraw_matrix": [ 7863,-2080,-668,-4623,12331,2578,-1020,2066,7266 ], // Colin Walker
  1760. "ranges": {
  1761. "black": 15, // 15 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1762. "white": [
  1763. { "iso": [ 100, 200, 400, 800 ], "levels": 3920 }, // Exif:4095 distribution peak at 3977 +/- up to 50
  1764. { "iso": [ 1600, 3200 ], "levels": 4060 } // Exif 4095, histogram peak 4095 and distribution down to 4070
  1765. ]
  1766. }
  1767. },
  1768. { // Quality A, Replicated from rawimage.cc
  1769. "make_model": "Panasonic DMC-GF2",
  1770. "dcraw_matrix": [ 7694,-1791,-745,-4917,12818,2332,-1221,2322,7197 ], // Colin Walker
  1771. "ranges": {
  1772. "black": 15, // 15 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1773. "white": 4050 // Exif:4095 normal distribution 4080-4095, 4050-4095 on long exposure NR
  1774. }
  1775. },
  1776. { // Quality A, Replicated from rawimage.cc
  1777. "make_model": "Panasonic DMC-GF3",
  1778. "dcraw_matrix": [ 8074,-1846,-861,-5026,12999,2239,-1320,2375,7422 ], // Colin Walker
  1779. "ranges": {
  1780. "black": 15, // 15 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1781. "white": 4050 // Exif:4095 normal distribution 4080-4095, 4050-4095 on long exposure NR
  1782. }
  1783. },
  1784. { // Quality A, Replicated from rawimage.cc
  1785. "make_model": "Panasonic DMC-GH1",
  1786. "dcraw_matrix": [ 6360,-1557,-375,-4201,11504,3086,-1378,2518,5843 ], // Colin Walker
  1787. "ranges": {
  1788. "black": 15, // 15 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1789. "white": [
  1790. { "iso": [ 100, 200, 400, 800 ], "levels": 3930 }, // Exif:4095 distribution peak at 3982 +/- up to 50
  1791. { "iso": [ 1600, 3200 ], "levels": 4060 } // Exif 4095, histogram peak 4095 and distribution down to 4070
  1792. ]
  1793. }
  1794. },
  1795. { // Quality A, Replicated from rawimage.cc
  1796. "make_model": "Panasonic DMC-GH2",
  1797. //"dcraw_matrix": [ 6855,-1765,-456,-4223,11600,2996,-1450,2602,5761 ], // Colin Walker - disabled due to problems with underwater
  1798. "dcraw_matrix": [ 7780,-2410,-806,-3913,11724,2484,-1018,2390,5298 ], // dcraw d65
  1799. "ranges": {
  1800. "black": 15, // 15 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1801. "white": [
  1802. { "iso": [ 100, 200, 400, 800 ], "levels": 3930 }, // Exif:4095 distribution peak at 3982 +/- up to 50
  1803. { "iso": [ 1600, 3200, 6400, 12800 ], "levels": 4060 } // Exif 4095, histogram peak 4095 and distribution down to 4070
  1804. ]
  1805. }
  1806. },
  1807. { // Quality B, variable WL
  1808. "make_model": "Panasonic DMC-GH3",
  1809. "dcraw_matrix": [ 6559,-1752,-491,-3672,11407,2586,-962,1875,5130 ], // dcp d65
  1810. "ranges": {
  1811. "black": 16, // 16 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1812. "white": [
  1813. { "iso": 125, "levels": 3500 }, // gaussian 3600-4095
  1814. { "iso": [ 160, 200, 250, 320, 400, 500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400, 12800, 25600 ], "levels": 4080 } // nominal 4095
  1815. ]
  1816. }
  1817. },
  1818. { // Quality B, some ISO WLevels are safely guessed
  1819. "make_model": "Panasonic DMC-GH4",
  1820. "dcraw_matrix": [ 7122,-2108,-512,-3155,11201,2231,-541,1423,5045 ], // dng_v8.5 d65
  1821. "ranges": {
  1822. "black": 16, // 16 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1823. "white": [
  1824. { "iso": 100, "levels": 2700 }, // gaussian center at 2870-2920 range +/- 150, Exif 2111
  1825. { "iso": 125, "levels": 3100 }, // guessed
  1826. { "iso": [ 160, 200, 250, 320, 400, 500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400, 12800, 25600 ], "levels": 4080 } // nominal 4095
  1827. ]
  1828. }
  1829. },
  1830. { // Quality C
  1831. "make_model": "Panasonic DC-GH5",
  1832. "dcraw_matrix": [ 7641,-2336,-605,-3218,11299,2187,-485,1338,5121 ], // DNG_v9.9 D65
  1833. "ranges": {
  1834. "black": 15, // 16 is BL offset. dcraw/RT read the base BL from Exif and calculates total BL = BLbase+BLoffset
  1835. "white": [
  1836. { "iso": 100, "levels": 4080 }, // Exif_linearitylimit 2111
  1837. { "iso": 125, "levels": 4080 }, // Exif_linearitylimit 2626
  1838. { "iso": [ 160, 200, 250, 320, 400,500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400, 12800, 25600 ], "levels": 4080 } // nominal 4095
  1839. ]
  1840. }
  1841. },
  1842. { // Quality A
  1843. "make_model": "Panasonic DMC-GM1",
  1844. "dcraw_matrix": [ 6770,-1895,-744,-5232,13145,2303,-1664,2691,5703 ],
  1845. "ranges": {
  1846. "black": 15, // 15 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1847. "white": [
  1848. { "iso": 125, "levels": 3100 }, // bell shape 3150-3650 - Exif 2616
  1849. { "iso": 160, "levels": 3600 }, // guessed from relative GX7 data
  1850. { "iso": [ 200, 250, 320, 400, 500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400, 12800, 25600 ], "levels": 4080 } // nominal 4095
  1851. ]
  1852. }
  1853. },
  1854. { // Quality B, uncertainty about ISO100 WL
  1855. "make_model": "Panasonic DMC-GM5",
  1856. "dcraw_matrix": [ 8238,-3244,-679,-3921,11814,2384,-836,2022,5852 ], // dng_v8.7 d65
  1857. "ranges": {
  1858. "black": 15, // 15 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1859. "white": [
  1860. { "iso": 100, "levels": 2800 }, // bell shape 2850-3250 - Exif 2111
  1861. { "iso": [ 200, 250, 320, 400, 500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400, 12800, 25600 ], "levels": 4080 } // nominal 4095
  1862. ]
  1863. }
  1864. },
  1865. { // Quality A
  1866. "make_model": [ "Panasonic DMC-GX7", "Panasonic DMC-GF7", "Panasonic DMC-GF8" ],
  1867. "dcraw_matrix": [ 7610,-2780,-576,-4614,12195,2733,-1375,2393,6490 ],
  1868. "ranges": {
  1869. "black": 15, // 15 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1870. "white": [
  1871. { "iso": 125, "levels": 3100 },
  1872. { "iso": 160, "levels": 3600 },
  1873. { "iso": [ 200, 250, 320, 400,500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400, 12800, 25600 ], "levels": 4080 } // nominal 4095
  1874. ]
  1875. }
  1876. },
  1877. { // Quality A
  1878. "make_model": [ "Panasonic DMC-G7", "Panasonic DMC-G70" ],
  1879. "dcraw_matrix": [ 7610,-2780,-576,-4614,12195,2733,-1375,2393,6490 ], // DNG_v9.1 D65
  1880. "ranges": {
  1881. "black": 16, // 16 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1882. "white": [
  1883. { "iso": 100, "levels": 2300 }, // gaussian 2300-2700 Exif_linearitylimit 2111
  1884. { "iso": 125, "levels": 3180 }, // gaussian 3200-3600 Exif_linearitylimit 2626
  1885. { "iso": [ 160, 200, 250, 320, 400,500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400, 12800, 25600 ], "levels": 4080 } // nominal 4095
  1886. ]
  1887. }
  1888. },
  1889. { // Quality B
  1890. "make_model": [ "Panasonic DMC-GX80", "Panasonic DMC-GX85", "Panasonic DMC-GX7MK2" ],
  1891. "dcraw_matrix": [ 7771,-3020,-629,-4029,11950,2345,-821,1977,6119 ], // DNG_v9.6 D65
  1892. "ranges": {
  1893. "black": 16, // 16 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1894. "white": [
  1895. { "iso": 100, "levels": 2300 }, // gaussian 2300-2700 Exif_linearitylimit 2111
  1896. { "iso": 125, "levels": 3180 }, // gaussian 3200-3600 Exif_linearitylimit 2626
  1897. { "iso": [ 160, 200, 250, 320, 400,500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400, 12800, 25600 ], "levels": 4080 } // nominal 4095
  1898. ]
  1899. }
  1900. },
  1901. { // Quality X, no white-frames nor black-frames yet, see #4550
  1902. "make_model": [ "Panasonic DC-GX9" ],
  1903. "dcraw_matrix": [ 7564,-2263,-606,-3148,11239,2177,-540,1435,4853 ], // ColorMatrix2 from Adobe DNG Converter 10.3
  1904. "ranges": {
  1905. "black": 16,
  1906. "white": 4080
  1907. }
  1908. },
  1909. { // Quality B, Same as Panasonic G7
  1910. "make_model": [ "Panasonic DMC-G8", "Panasonic DMC-G80", "Panasonic DMC-G81", "Panasonic DMC-G85" ],
  1911. "dcraw_matrix": [ 7610,-2780,-576,-4614,12195,2733,-1375,2393,6490 ], // DNG_v9.7 D65
  1912. "ranges": {
  1913. "black": 16, // 16 is BL offset. dcraw/RT read the base black from Exif and calculates total BL = BLbase+BLoffset
  1914. "white": [
  1915. { "iso": 100, "levels": 2300 }, // gaussian 2300-2700 Exif_linearitylimit 2111
  1916. { "iso": 125, "levels": 3180 }, // gaussian 3200-3600 Exif_linearitylimit 2626
  1917. { "iso": [ 160, 200, 250, 320, 400,500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400, 12800, 25600 ], "levels": 4080 } // nominal 4095
  1918. ]
  1919. }
  1920. },
  1921. { // Quality B
  1922. "make_model": "Panasonic DMC-GX8",
  1923. "dcraw_matrix": [ 7564,-2263,-606,-3148,11239,2177,-540,1435,4853 ], // DNG_v9.1.1 D65
  1924. "ranges": {
  1925. "black": 15, // 16 is BL offset. dcraw/RT read the base BL from Exif and calculates total BL = BLbase+BLoffset
  1926. "white": [
  1927. { "iso": 100, "levels": 2800 }, // gaussian 2900-3200 Exif_linearitylimit 2111
  1928. { "iso": 125, "levels": 3180 }, // guessed gaussian 3200-3600 Exif_linearitylimit 2626
  1929. { "iso": [ 160, 200, 250, 320, 400,500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400, 12800, 25600 ], "levels": 4080 } // nominal 4095
  1930. ]
  1931. }
  1932. },
  1933. { // Quality B, samples by Ingo, missing some long exposure at high ISO samples with LENR ON
  1934. "make_model": [ "Panasonic DMC-LX100", "Leica D-LUX (Typ 109)" ],
  1935. "dcraw_matrix": [ 8844,-3538,-768,-3709,11762,2200,-698,1792,5220 ], // DNG_V8.7 d65
  1936. //"dcraw_matrix": [ 6538,-1614,-549,-5475,13096,2646,-1780,2799,5612 ], // calculated from DxO D50
  1937. "ranges": {
  1938. "black": 15, // 15 is BL offset. dcraw/RT read the base BL from Exif and calculates total BL = BLbase+BLoffset.
  1939. "white": [
  1940. { "iso": 100, "levels": 2400 }, // gaussian R,B 2450-2700 G1,G2 2550-2800 Exif_linearitylimit 2111
  1941. { "iso": 125, "levels": 3000 }, // gaussian R,B 3050-3350 G1,G2 3170-3480 Exif_linearitylimit 2626
  1942. { "iso": 160, "levels": 3800 }, // gaussian R,B 3850-median 4020 G1,G2 3870-median 4050 Exif_linearitylimit 3277
  1943. { "iso": [ 200, 250, 320, 400 ], "levels": 4080 }, // nominal 4095
  1944. { "iso": [ 500, 640, 800, 1000, 1250, 1600 ], "levels": 4060 }, // nominal 4095
  1945. { "iso": [ 2000, 2500 ], "levels": 4040 }, // nominal 4095
  1946. { "iso": [ 3200, 4000, 5000 ], "levels": 3950 }, // nominal 4095
  1947. { "iso": [ 6400, 8000, 10000 ], "levels": 4020 }, // nominal 4095
  1948. { "iso": [ 12800, 16000, 20000, 25600 ], "levels": 4000 } // nominal 4095
  1949. ]
  1950. }
  1951. },
  1952. { // Quality B, Intermediate ISOs missing
  1953. "make_model": [ "Panasonic DMC-LX9", "Panasonic DMC-LX10", "Panasonic DMC-LX15" ],
  1954. "dcraw_matrix": [ 7790,-2736,-755,-3452,11870,1769,-628,1647,4898 ], // DNg_v9.8 d65
  1955. "raw_crop": [ 4, 4, -4, -4 ], // full raw frame 5488x3664 Exif crop 5472X3648 with 8pixel borders. Set the borders at 4 pixels which added with RT's 4 pixels border gives exactly the official frame.
  1956. "ranges": {
  1957. "black": 15, // 15 is BL offset. dcraw/RT read the base BL from Exif and calculates total BL = BLbase+BLoffset.
  1958. "white": [
  1959. { "iso": 80, "levels": 2800 }, // gaussian 2800-3000 Exif_linearitylimit 2626
  1960. { "iso": 100, "levels": 3500 }, // gaussian 3500-3700 Exif_linearitylimit 3277
  1961. { "iso": [ 125, 160, 200, 250, 320, 400, 500, 640, 800, 1000, 1250, 1600, 2000, 2500, 3200, 4000, 5000, 6400, 12800, 25600 ], "levels": 4060 } // nominal 4095
  1962. ]
  1963. }
  1964. },
  1965. { // Quality A, issue #5204.
  1966. "make_model": [ "Panasonic DC-S1" ],
  1967. "dcraw_matrix": [ 9744, -3905, -779, -4899, 12807, 2324, -798, 1630, 5827 ], // ColorMatrix2 using illuminant D65 from Adobe DNG Converter 11.4
  1968. "ranges": {
  1969. "white": [
  1970. { "iso": 50, "levels": 8400 }, // LENR 8000
  1971. { "iso": 64, "levels": 10450 }, // LENR 10000
  1972. { "iso": 80, "levels": 13050 }, // LENR 12400
  1973. { "iso": 100, "levels": 16320 }
  1974. ]
  1975. }
  1976. },
  1977. { // Quality X, issue #5204. No white frames available.
  1978. "make_model": [ "Panasonic DC-S1R" ],
  1979. "dcraw_matrix": [ 11822, -5321, -1249, -5958, 15114, 766, -614, 1264, 7043 ], // ColorMatrix2 using illuminant D65 from Adobe DNG Converter 11.4
  1980. "ranges": {
  1981. "white": [
  1982. { "iso": 50, "levels": 9500 },
  1983. { "iso": [64, 80], "levels": 11600 },
  1984. { "iso": 100, "levels": 16336 }
  1985. ]
  1986. }
  1987. },
  1988. { // Quality B, per ISO info missing
  1989. "make_model": "PENTAX K-x",
  1990. "dcraw_matrix": [ 8843,-2837,-625,-5025,12644,2668,-411,1234,7410 ], // adobe dcp d65
  1991. "ranges": { "white": 4080 } // nominal at ISO200 4094
  1992. },
  1993. {
  1994. "make_model": [ "PENTAX K-S1" ],
  1995. "raw_crop": [ 0, 0, -8, 0 ]
  1996. },
  1997. { // Quality B, Intemediate ISO samples missing, Pentax_DNG WLtags are after BL sutraction and not valid
  1998. "make_model": [ "RICOH PENTAX K-70", "PENTAX K-70" ],
  1999. //"dcraw_matrix": [ 8050,-2061,-1264,-4359,12953,1515,-1096,1965,6075 ], // PENTAX DNG D65
  2000. "dcraw_matrix": [ 8766,-3149,-747,-3976,11943,2292,-517,1259,5552 ], // Adobe DNGv9.8 D65
  2001. "raw_crop": [ 58, 28, 6022, 4020 ], // full frame 6080x4064, useful raw frame 56,28,6080,4049, official DNG raw_crop 58,28,6080,4052, official jpeg crop 58+8,28+4 6000x4000
  2002. //"raw_crop": [ 62, 28, 6000, 4000 ], // matched to official jpeg crop 58+8,28+4 6000x4000
  2003. "ranges": {
  2004. "white": [
  2005. { "iso": 100, "levels": 16300 }, // 16319-16377
  2006. { "iso": 200, "levels": 16250 }, // 16319-16315
  2007. { "iso": 400, "levels": 16200 }, // 16255-16251
  2008. { "iso": 800, "levels": 16050 }, // 16255-16120
  2009. { "iso": 1600, "levels": 15750 }, // 15860
  2010. { "iso": [ 3200, 6400 ], "levels": 16200 }, // 16350
  2011. { "iso": [ 12800, 25600 ], "levels": 16100 }, // 16300
  2012. { "iso": [ 51200, 102400 ], "levels": 16000 } // 16200
  2013. ]
  2014. }
  2015. },
  2016. { // Quality B, Intemediate ISO samples missing. Pentax_DNG WLtags are after BL sutraction and not valid
  2017. "make_model": [ "RICOH PENTAX KP", "PENTAX KP" ],
  2018. "dcraw_matrix": [ 7357,-2031,-1320,-4842,13555,1349,-1538,2416,5736 ], // Adobe DNGv9.12 D65
  2019. "raw_crop": [ 52, 28, 6032, 4030 ], // full frame 6112x4060, useful raw frame 52,28,6084,4049, official DNG raw_crop 54,28,6082,4060
  2020. "ranges": {
  2021. "white": [
  2022. { "iso": 100, "levels": 16300 }, // 16383
  2023. { "iso": 200, "levels": 16250 }, // 16383
  2024. { "iso": 400, "levels": 16250 }, // 16383
  2025. { "iso": 800, "levels": 16200 }, // 16383
  2026. { "iso": 1600, "levels": 16100 }, // 16383
  2027. { "iso": [ 3200, 6400 ], "levels": 16000 }, // 16383
  2028. { "iso": [ 12800, 25600 ], "levels": 15800 }, // 16383
  2029. { "iso": [ 51200, 102400 ], "levels": 15500 }, // 16383
  2030. { "iso": [ 204800, 409600 ], "levels": 15000 }, // 16383
  2031. { "iso": [ 819200 ], "levels": 14500 } // 16383-16200
  2032. ]
  2033. }
  2034. },
  2035. { // Quality B, Intemediate ISO samples missing, Pentax_DNG WLtags are after BL sutraction and not valid
  2036. "make_model": [ "RICOH PENTAX K-1", "PENTAX K-1" ],
  2037. "dcraw_matrix": [ 8596,-2981,-639,-4202,12046,2431,-685,1424,6122 ], // adobe DNG v9.7 D65
  2038. //"dcraw_matrix": [ 8566,-2746,-1201,-3612,12204,1550,-893,1680,6264 ], // PENTAX DNG
  2039. //"raw_crop": [ 6, 18, 7376, 4932 ], // full frame 7392x4950, cropped to official DNG raw_crop 6,18,7382,4950, official jpeg crop 8,10,7360x4912
  2040. "ranges": {
  2041. "white": [
  2042. { "iso": [ 100, 200, 400, 800 ], "levels": 16300 }, // 16380
  2043. { "iso": [ 1600, 3200 ], "levels": 16250 }, // 16360
  2044. { "iso": [ 6400, 12800 ], "levels": 16200 }, // 16330
  2045. { "iso": [ 25600, 51200 ], "levels": 16100 }, // 16300
  2046. { "iso": 102400, "levels": 16000 } // 16200
  2047. ]
  2048. }
  2049. },
  2050. { // Quality B, intermediate ISOs info missing
  2051. "make_model": [ "RICOH PENTAX K-3", "PENTAX K-3" ],
  2052. "dcraw_matrix": [ 7415,-2052,-721,-5186,12788,2682,-1446,2157,6773 ], // adobe dcp d65
  2053. //"dcraw_matrix": [ 8542,-2581,-1144,-3995,12301,1881,863,1514,5755 ], // pentax DNG
  2054. //"dcraw_matrix": [ 6464,-1574,-422,-5324,12712,2934,-1129,1724,6900 ], // DxO
  2055. "raw_crop": [ 10, 4, 6028, 4024 ],
  2056. "ranges": {
  2057. "white": [
  2058. { "iso": 100, "levels": 16310 }, // 16317 or 16350
  2059. { "iso": 200, "levels": 16120 }, // 16254 or 16125
  2060. { "iso": 400, "levels": 15860 }, // 16125 or 15868
  2061. { "iso": 800, "levels": 15360 }, // 15868 or 15364-15370
  2062. { "iso": [ 1600, 3200, 6400, 12800, 25600, 51200 ], "levels": 16300 } // 16383 - pentax dng tag is 15868-15350
  2063. ]
  2064. }
  2065. },
  2066. { // Quality B, intermediate ISOs info missing
  2067. "make_model": [ "RICOH PENTAX 645Z", "PENTAX 645Z" ],
  2068. "dcraw_matrix": [ 9519,-3591,-664,-4074,11725,2671,-624,1501,6653 ], // adobe dcp d65
  2069. "raw_crop": [ 48, 0, 8276, 6208 ], // full sensor 8384x6208 - official jpeg 8256x6192
  2070. "ranges": {
  2071. "white": [
  2072. { "iso": 100, "levels": 16310 }, // 16317 or 16350
  2073. { "iso": 200, "levels": 16120 }, // 16254 or 16125
  2074. { "iso": 400, "levels": 15860 }, // 16125 or 15868
  2075. { "iso": 800, "levels": 15360 }, // 15868 or 15364-15370
  2076. { "iso": [ 1600, 3200, 6400, 12800, 25600, 51200 ], "levels": 16300 } // 16383 - pentax dng tag is 15868-15350
  2077. ]
  2078. }
  2079. },
  2080. { // Quality B, intermediate ISOs info missing, spread due to blackframe subtraction guessed to be around 10levels
  2081. "make_model": "PENTAX K10D",
  2082. "dcraw_matrix": [ 9566,-2863,-803,-7170,15172,2112,-818,803,9705 ], // adobe DNG d65
  2083. //"raw_crop": [ 0, , 3888, 2608 ],
  2084. "ranges": {
  2085. "white": [
  2086. { "iso": 100, "levels": 4080 }, // R,G1,B = 4095 G2= 4087
  2087. { "iso": 200, "levels": 4080 }, // R,G1,B = 4093-94 G2= 4087or94
  2088. { "iso": 400, "levels": 4080 }, // R,G1 = 4093-94, B=4094 G2= 4087or93or94
  2089. { "iso": 800, "levels": 4070 }, // R,G1 = 4091-4093, B=4091-92 G2= 4078or82or84-86
  2090. { "iso": [ 1600, 3200 ], "levels": 4060 } // 4067or4073-76
  2091. ]
  2092. }
  2093. },
  2094. { // Quality C, only raw crop
  2095. "make_model": "Samsung EX2F",
  2096. "raw_crop": [ 16, 7, -4, -4 ]
  2097. },
  2098. { // Quality B, corrections for raw crop vs dcraw9.21, matched to Samsung's default
  2099. "make_model": "Samsung NX mini",
  2100. "dcraw_matrix": [ 5222,-1196,-550,-6540,14649,2009,-1666,2819,5657 ], // dng 8.6 d65
  2101. "raw_crop": [ 128, 36, 5480, 3656 ], // jpeg 5472x3648 - full raw: 5664 x 3710 - Samsung's official crop: 132, 40, 5604, 3688
  2102. "ranges": { "white": 4030 } // double clipping point for each channel at a) 4095 and b) bell distribution with peak at 4038 .. used the conservative one
  2103. },
  2104. { // Quality A, Conflict with "Samsung NX30" in dcraw_v9.21_r1.414, frame corrections and color data
  2105. "make_model": [ "Samsung NX3000", "Samsung NX3300" ],
  2106. "dcraw_matrix": [ 8060,-2933,-761,-4504,12890,1762,-630,1489,5227 ], // DNG_v8.7.1 D65
  2107. "raw_crop": [ 92, 38, 5480, 3656 ] // jpeg 5472x3648 - full raw: 5600 x 3714 - Samsung's official crop: 96, 42, 5568, 3690
  2108. },
  2109. { // Quality B, RT normally use the embedded data with DNGs but because various DNGs use different color matrix, adobe_coeff setting is used in dcraw.cc to always use the data from camconst.json for NX1
  2110. "make_model": [ "Samsung NX1", "Samsung NX500" ],
  2111. "dcraw_matrix": [ 10686,-4042,-1052,-3595,13238,276,-464,1259,5931 ], // DNG_v8.7 D65
  2112. //"dcraw_matrix": [ 13298,-6099,-296,-5243,16153,-1235,-508,1220,7758 ], // DNG_v8.7 Standard Light A
  2113. //"dcraw_matrix": [ 9598,-3268,-634,-5678,14795,824,-1255,2675,4523 ], // SAMSUNG DNG CONVERTER v1.0
  2114. "ranges": {
  2115. "white": [
  2116. { "iso": 100, "levels": 16000 }, // 16000 typical 16084, LE 16120 and 16383, LENR 16280
  2117. { "iso": [ 200, 400, 800, 1600, 3200, 6400, 12800 ], "levels": 16300 }, // 16383
  2118. { "iso": [ 25600, 51200 ], "levels": 16300 } // 16383
  2119. ]
  2120. }
  2121. },
  2122. { // Quality C, corrections for frame size, black and white levels not declared properly
  2123. "make_model": "Sigma SD9",
  2124. "dcraw_matrix": [ 14996,-3468,-1425,5576,3642,972,1761,3773,3720 ], // experimental calculated from sun0.icc data
  2125. "ranges": { "black": 0, "white": 16383 }, // black is already subtracted by dcraw, white copied from x3dump data
  2126. "raw_crop": [ 20, 8, -18, -12 ]
  2127. },
  2128. { // Quality C, corrections for frame size, black level not declared properly
  2129. "make_model": "Sigma SD10",
  2130. "dcraw_matrix": [ 12555,-1865,-1125,5093,4120,867,1929,3810,3507 ], // experimental calculated from .icc data
  2131. "ranges": { "black": 0, "white": 16383 }, // black is already subtracted by dcraw, white copied from x3dump data
  2132. //"raw_crop": [ 0, 0, -0, -0 ]
  2133. "raw_crop": [ 20, 8, -18, -12 ]
  2134. },
  2135. { // Quality C, corrections for frame size, black and white levels not declared properly
  2136. "make_model": "Sigma SD14",
  2137. "dcraw_matrix": [ 16411,-4764,-2383,8110,2603,-645,3135,3878,1984 ], // experimental inverted icc wp12 - build with BL=15
  2138. //"dcraw_matrix": [ 13804,-4156,-1896,6917,1909,-431,2768,2989,1741 ], // experimental inverted icc wp10 - build with BL=15
  2139. "ranges": { "black": 15, "white": 7000 },
  2140. "raw_crop": [ 18, 12, 2652, 1768 ]
  2141. },
  2142. { // Quality C, correction for frame width
  2143. "make_model": "Sigma SD1",
  2144. "dcraw_matrix": [ 5270,42,-814,3737,5506,124,1112,9714,4510 ], // experimental from icm 1.04477,-0.74838,1.01617, -0.54028,2.52690,-3.83257, 0.54869,-0.69556,3.73746
  2145. "ranges": { "black": 16, "white": 4070 }, // BL is 16 or 31, should be measured at the horizontal black stripe at the top
  2146. "raw_crop": [ 12, 52, -110, -8 ]
  2147. },
  2148. { // Quality C, correction for frame width, color matrix investigated ..
  2149. "make_model": "Sigma SD1 Merrill",
  2150. "dcraw_matrix": [ 7211,-1577,-769,4996,3428,440,2717,7117,4699 ], // experimental inverted icc cloudy8140 d65
  2151. //"dcraw_matrix": [ 5666,139,-892,3780,5428,270,1366,9757,4526 ], // experimental inverted icc sunny8161
  2152. //"dcraw_matrix": [ 10288,-2449,-1718,8976,1868,-1608,7011,5039,-249 ], // experimental inverted icc tungsten8130 wp11
  2153. //"dcraw_matrix": [ 5864,679,-1491,2963,7635,-919,-640,13738,2790 ], // experimental inverted icc sunny8160
  2154. //"dcraw_matrix": [ 14032,-2231,-1016,-5263,14816,170,-112,183,9113 ], // hardcoded
  2155. "ranges": { "black": 16, "white": 4070 }, // BL is 16 or 31, should be measured at the horizontal black stripe at the top
  2156. "raw_crop": [ 12, 52, -110, -8 ] // for small size all numbers/2
  2157. },
  2158. { // Quality C, correction for frame width, color matrix measured on a DP1 sample ..
  2159. "make_model": [ "Sigma DP1 Merrill", "Sigma DP2 Merrill", "Sigma DP3 Merrill" ],
  2160. //"dcraw_matrix": [ 2149,1003,-530,-494,6073,344,-3935,10665,3608 ], // experimental, inverted icc DP1_Merrill_dpreview_daylight WP1.2
  2161. "dcraw_matrix": [ 2517,1175,-621,-587,7080,404,-4677,12402,4231 ], // experimental, inverted icc DP1_Merrill_dpreview_daylight WP1.4
  2162. "ranges": { "black": 16, "white": 4070 }, // BL is 16 or 31, should be measured at the horizontal black stripe at the bottom
  2163. "raw_crop": [ 12, 0, -110, -62 ] // for small size all numbers/2
  2164. },
  2165. { // Quality C, only raw crop for now - see #3858
  2166. "make_model": "Sigma sd Quattro",
  2167. "raw_crop": [ 200, 74, 5632, 3698 ]
  2168. },
  2169. { // Quality A, correction for color matrix from Colin Walker's d50 to dng d65
  2170. "make_model": "Sony NEX-C3",
  2171. //"dcraw_matrix": [ 5130,-1055,-269,-4473,11797,3050,-701,1310,7121 ], // Colin walker's d50 kept for possible consistency issues
  2172. "dcraw_matrix": [ 5991,-1456,-455,-4764,12135,2980,-707,1425,6701 ],
  2173. "ranges": { "black": 512, "white": 16300 }
  2174. },
  2175. { // Quality A, correction for frame width
  2176. "make_model": "Sony NEX-5N",
  2177. "dcraw_matrix": [ 5991,-1456,-455,-4764,12135,2980,-707,1425,6701 ],
  2178. "raw_crop": [ 0, 0, 4920, 3276 ],
  2179. "ranges": { "black": 512, "white": 16300 }
  2180. },
  2181. { // Quality A
  2182. "make_model": "Sony ILCA-77M2",
  2183. "dcraw_matrix": [ 5991,-1732,-443,-4100,11989,2381,-704,1467,5992 ], // adobe dcp d65
  2184. "raw_crop": [ 0, 0, 6024, 4024 ],
  2185. "ranges": { "black": 512, "white": 16300 }
  2186. },
  2187. { // Quality B
  2188. "make_model": "Sony ILCA-68",
  2189. "dcraw_matrix": [ 6435,-1903,-536,-4722,12449,2550,-663,1363,6517 ], // adobe DNGv9.5 d65
  2190. "raw_crop": [ 0, 0, -30, 0 ],
  2191. "ranges": { "black": 512, "white": 16300 }
  2192. },
  2193. { // Quality B, correction for frame width, crop modes covered
  2194. "make_model": "Sony ILCA-99M2",
  2195. "dcraw_matrix": [ 6660,-1918,-471,-4613,12398,2485,-649,1433,6447 ], // DNG_v9.8 D65
  2196. "raw_crop": [ 0, 0, -36, 0 ], // full raw frame 8000x5320 - 36 rightmost columns are garbage
  2197. "ranges": { "black": 512, "white": 16300 }
  2198. },
  2199. { // Quality A, correction for frame width
  2200. "make_model": [ "Sony ILCE-3000", "Sony ILCE-3500", "Sony ILCE-5000", "Sony ILCE-QX1" ],
  2201. "dcraw_matrix": [ 5991,-1456,-455,-4764,12135,2980,-707,1425,6701 ], // adobe dcp d65
  2202. "ranges": { "black": 512, "white": 16300 },
  2203. "raw_crop": [ 0, 0, 5476, 3656 ]
  2204. },
  2205. { // Quality A
  2206. "make_model": "Sony ILCE-5100",
  2207. "dcraw_matrix": [ 5991,-1456,-455,-4764,12135,2980,-707,1425,6701 ], // adobe dcp d65
  2208. "raw_crop": [ 0, 0, 6024, 4024 ],
  2209. "ranges": { "black": 512, "white": 16300 }
  2210. },
  2211. { // Quality A
  2212. "make_model": "Sony ILCE-6000",
  2213. "dcraw_matrix": [ 5991,-1456,-455,-4764,12135,2980,-707,1425,6701 ], // adobe dcp d65
  2214. "raw_crop": [ 0, 0, 6024, 4024 ],
  2215. "ranges": { "black": 512, "white": 16300 },
  2216. // detected by hand, using the picture from https://www.dpreview.com/forums/thread/3923513
  2217. // P 11 P 23 P 17 P 17 P 17 P 23 P 11 P 17 P 17 P 17 P 23 P 11 P 23 P 11 P 17 P 23 P 11 P 17 P 17 P 23 P 17 P 11 P 17 P 17 P 17 P 23 P 17 P 11 P 17 P 17 P 23 P 11 P 17 P 11 P 23
  2218. "pdaf_pattern" : [ 0,12,36,54,72,90,114,126,144,162,180,204,216,240,252,270,294,306,324,342,366,384,396,414,432,450,474,492,504,522,540,564,576,594,606,630 ],
  2219. "pdaf_offset" : 3
  2220. },
  2221. { // Quality A
  2222. "make_model": [ "Sony ILCE-6300","Sony ILCE-6500" ],
  2223. "dcraw_matrix": [ 5973,-1695,-419,-3826,11797,2293,-639,1398,5789 ], // DNG_v9.8 D65
  2224. "raw_crop": [ 0, 0, 6024, 4024 ],
  2225. "ranges": { "black": 512, "white": 16300 },
  2226. // contributed by Horshak from https://www.dpreview.com/forums/post/60873077
  2227. "pdaf_pattern" : [ 0,12,36,54,72,90,114,126,144,162,180,204,216,240,252,270,294,306,324,342,366,384,396,414,432,450,474,492,504,522,540,564,576,594,606,630 ],
  2228. "pdaf_offset" : 3
  2229. },
  2230. { // Quality A, correction for frame width
  2231. "make_model": "Sony ILCE-7R",
  2232. "dcraw_matrix": [ 4913,-541,-202,-6130,13513,2906,-1564,2151,7183 ],
  2233. "raw_crop": [ 0, 0, 7372, 4920 ],
  2234. "ranges": { "black": 512, "white": 16300 }
  2235. },
  2236. { // Quality A
  2237. "make_model": "Sony ILCE-7M2",
  2238. "raw_crop": [ 0, 0, 6024, 4024 ],
  2239. "dcraw_matrix": [ 5271,-712,-347,-6153,13653,2763,-1601,2366,7242 ], // DNGv8.7.1
  2240. "ranges": { "black": 512, "white": 16300 }
  2241. },
  2242. { // Quality C, correction for frame width
  2243. "make_model": [ "Sony DSC-RX0", "Sony DSC-RX0M2" ],
  2244. "raw_crop": [ 0, 0, -8, 0 ] // 8 rightmost columns are garbage
  2245. },
  2246. { // Quality B, correction for frame width, crop modes covered
  2247. "make_model": [ "Sony ILCE-7RM2", "Sony DSC-RX1RM2" ],
  2248. "dcraw_matrix": [ 6629,-1900,-483,-4618,12349,2550,-622,1381,6514 ], // DNG_v9.1.1 D65
  2249. "raw_crop": [ 0, 0, -36, 0 ], // full raw frame 8000x5320 - 36 rightmost columns are garbage
  2250. "ranges": { "black": 512, "white": 16300 },
  2251. // PDAF info provided by Horshack with the rawshack tool (http://testcams.com/rawshack/)
  2252. "pdaf_pattern" : [ 0,24,36,60,84,120,132,156,192,204,240,252,276,300,324,360,372,396,420 ],
  2253. "pdaf_offset" : 31
  2254. },
  2255. { // Quality C, color matrix copied from ILCE-9, LongExposures 2-3sec only
  2256. "make_model": "Sony ILCE-7M3",
  2257. "dcraw_matrix": [ 6389,-1703,-378,-4562,12265,2587,-670,1489,6550 ], // ILCE-9, DNG_v9.12 D65
  2258. // "raw_crop": [ 8, 8, 6008, 4008 ], // full raw frame 6048x4024 Dcraw auto identify 6024x4024, jpeg 12,12,6000x4000
  2259. // "ranges": { "black": 512, "white": 16300 }
  2260. "ranges": {
  2261. "black": 512,
  2262. "white": [
  2263. { "iso": [ 50, 64 ], "levels": 16100 }, // typical compressed 16372, non compressed 16383, LongEx iso50,16150 , 16275
  2264. { "iso": [ 80, 100, 125, 160 ], "levels": 16200 }, // typical compressed 16372, non compressed 16383, LongEx iso50,16150 , 16275
  2265. { "iso": [ 200, 250, 320, 400, 500, 640, 800, 1000, 1250 ], "levels": 16200 }, // compressed 16372, non compressed 16383, LongExp 16275
  2266. { "iso": [ 1600, 2000, 2500, 3200, 4000, 5000 ], "levels": 16200 }, // compressed 16372, non compressed 16383, LongExp 16275
  2267. { "iso": [ 6400, 8000, 10000, 12800 ], "levels": 16200 }, // compressed 16372, non compressed 16365-16375-16383, LongExp 16275
  2268. { "iso": [ 16000, 20000, 25600 ], "levels": 16100 }, // 16275-16340-16372, nc 16375-16325-16280, LongExp 16210
  2269. { "iso": [ 32000, 40000, 51200 ], "levels": 16100 }, // 16210-16340-16372, nc 16330, LongExp 16210
  2270. { "iso": [ 64000, 80000, 102400 ], "levels": 16100 }, // g16340 , nc 16330, LongExp 16210
  2271. { "iso": [ 128000, 160000, 204800 ], "levels": 16000 } // r16275, g16340, nc 16330, LongExp 16330-16370
  2272. ]
  2273. },
  2274. // A7III, from https://www.dpreview.com/forums/post/60843139
  2275. // in the original post:
  2276. // P 5 P 17 P 11 P 11 P 17 P 11 P 5 P 11 P 11 P 11 P 17 P 11 P 5 P 11 P 11 P 17 P 5 P 11 P 17 P 5 P 17 P 5 P 11 P 11 P 11 P 17 P 5 P 11 P 11 P 11 P 5 P 17 P 5 P 17 P 11
  2277. //
  2278. // rotated to match the start of the frame
  2279. // P 11 P 11 P 11 P 17 P 11 P 5 P 11 P 11 P 17 P 5 P 11 P 17 P 5 P 17 P 5 P 11 P 11 P 11 P 17 P 5 P 11 P 11 P 11 P 5 P 17 P 5 P 17 P 11 P 5 P 17 P 11 P 11 P 17 P 11 P 5
  2280. "pdaf_pattern" : [ 0,12,24,36,54,66,72,84,96,114,120,132,150,156,174,180,192,204,216,234,240,252,264,276,282,300,306,324,336,342,360,372,384,402,414,420],
  2281. "pdaf_offset" : 9
  2282. },
  2283. { // Quality C,
  2284. "make_model": "Sony ILCE-7RM3",
  2285. "dcraw_matrix": [ 6640,-1847,-503,-5238,13010,2474,-993,1673,6527 ], // DNG_v10.1 D65
  2286. "raw_crop": [ 0, 0, -36, 0 ], // full raw frame 8000x5320 - 36 rightmost columns are garbage
  2287. "ranges": { "black": 512, "white": 16300 },
  2288. "pdaf_pattern" : [0, 24, 36, 60, 84, 120, 132, 156, 192, 204, 240, 252, 276, 300, 324, 360, 372, 396, 420, 444, 480, 492, 504, 540, 564, 576, 612, 636, 660, 696, 720, 732, 756, 780, 804, 840],
  2289. "pdaf_offset" : 31
  2290. },
  2291. { // Quality C,
  2292. "make_model": "Sony ILCE-7RM4",
  2293. "raw_crop": [ 0, 0, -32, 0 ] // full raw frame 9600x6376 - 32 rightmost columns are garbage. Using -32 instead of 9568 to support also 16-shot pixelshift files
  2294. },
  2295. { // Quality B, color matrix copied from a7rm2
  2296. "make_model": "Sony ILCE-9",
  2297. "dcraw_matrix": [ 6389,-1703,-378,-4562,12265,2587,-670,1489,6550 ], // DNG_v9.12 D65
  2298. "raw_crop": [ 8, 8, 6008, 4008 ], // full raw frame 6048x4024 Dcraw auto identify 6024x4024, jpeg 12,12,6000x4000
  2299. "ranges": { "black": 512, "white": 16300 },
  2300. // the A9 is the same as the A7III, rotated of 1 position
  2301. // source: https://www.dpreview.com/forums/post/60857788
  2302. // P 11 P 11 P 11 P 17 P 11 P 5 P 11 P 11 P 17 P 5 P 11 P 17 P 5 P 17 P 5 P 11 P 11 P 11 P 17 P 5 P 11 P 11 P 11 P 5 P 17 P 5 P 17 P 11 P 5 P 17 P 11 P 11 P 17 P 11 P 5
  2303. "pdaf_pattern" : [ 0,12,24,36,54,66,72,84,96,114,120,132,150,156,174,180,192,204,216,234,240,252,264,276,282,300,306,324,336,342,360,372,384,402,414,420 ],
  2304. "pdaf_offset" : -7
  2305. },
  2306. { // Quality B, correction for frame width
  2307. "make_model": [ "Sony ILCE-7S", "Sony ILCE-7SM2" ],
  2308. "dcraw_matrix": [ 5838,-1430,-246,-3497,11477,2297,-748,1885,5778 ], // DNG_v9.2 D65
  2309. "raw_crop": [ 0, 0, 4254, 2848 ],
  2310. "ranges": { "black": 512, "white": 16300 }
  2311. },
  2312. { // Quality C
  2313. "make_model": [ "Sony DSC-HX99" ],
  2314. "raw_crop": [ 0, 0, -8, 0 ] // 8 rightmost columns are garbage
  2315. },
  2316. { // Quality B
  2317. "make_model": [ "Sony DSC-R1" ],
  2318. "raw_crop": [ 0, 0, 3924, 2608 ],
  2319. "ranges": { "white": 16368 }
  2320. },
  2321. { // Quality A
  2322. "make_model": [ "Sony DSC-RX100M2", "Sony DSC-RX100M3", "Sony DSC-RX100M4", "Sony DSC-RX100M5" ],
  2323. "dcraw_matrix": [ 6596,-2079,-562,-4782,13016,1933,-970,1581,5181 ], // DNG_v9.8 D65
  2324. "ranges": { "black": 800, "white": 16300 }
  2325. },
  2326. { // Quality B
  2327. "make_model": [ "Sony DSC-RX10M2", "Sony DSC-RX10M3", "Sony DSC-RX10M4" ],
  2328. "dcraw_matrix": [ 6679,-1825,-745,-5047,13256,1953,-1580,2422,5183 ], // DNG_v9.6 D65
  2329. "ranges": { "black": 800, "white": 16300 }
  2330. },
  2331. { // Quality C, No proper color data, beta samples, frame set to official jpeg,
  2332. "make_model": [ "XIAOYI M1", "YI TECHNOLOGY M1" ],
  2333. "dcraw_matrix": [ 7158,-1911,-606,-3603,10669,2530,-659,1236,5530 ], // XIAO YI DNG D65
  2334. "raw_crop": [ 4, 3, 5192, 3896 ], // full raw 5200x3902, official jpeg 5184X3888
  2335. "ranges": {
  2336. "white": [
  2337. { "iso": 100, "levels": 4080 }, // typical 4092-4094
  2338. { "iso": [ 200, 400, 800, 1600, 3200, 6400 ], "levels": 4080 }, // 4092-4095
  2339. { "iso": [ 12800, 25600, 51200 ], "levels": 4080 } // 4090-4095
  2340. ]
  2341. }
  2342. },
  2343. /* Phase One: color matrices borrowed from Adobe DNG Converter, black/white levels tested on actual raw files.
  2344. Note: the dcraw decoder makes black level subtraction and various corrections to the raw values based on
  2345. metadata embedded in the IIQ format, so what we see here is the result after that, ie black level is 0,
  2346. and white level is typically at or close to 65535. However sensors vary a bit and can be noisy around clip
  2347. so we cut away 0.05 stop from top down to 63300 to be a bit conservative.
  2348. */
  2349. { // Quality A
  2350. "make_model": [ "Phase One P40+", "Phase One IQ140", "Leaf Credo 40", "Phase One P65+", "Phase One IQ160", "Leaf Credo 60", "Phase One IQ260", "Phase One IQ3 60MP" ],
  2351. "dcraw_matrix": [ 8035,435,-962,-6001,13872,2320,-1159,3065,5434 ],
  2352. "ranges": { "black": 0, "white": 63300 }
  2353. },
  2354. { // Quality A
  2355. "make_model": [ "Phase One IQ180", "Leaf Credo 80", "Phase One IQ280", "Phase One IQ3 80MP" ],
  2356. "dcraw_matrix": [ 6294,686,-712,-5435,13417,2211,-1006,2435,5042 ],
  2357. "ranges": { "black": 0, "white": 63300 }
  2358. },
  2359. { // Quality A
  2360. "make_model": [ "Phase One P20", "Phase One P20+", "Phase One P25", "Phase One P25+" ],
  2361. "dcraw_matrix": [ 2905,732,-237,-8135,16626,1476,-3038,4253,7517 ],
  2362. "ranges": { "black": 0, "white": 63300 }
  2363. },
  2364. { // Quality A
  2365. "make_model": [ "Phase One P21", "Phase One P21+" ],
  2366. "dcraw_matrix": [ 6516,-2050,-507,-8217,16703,1479,-3492,4741,8489 ],
  2367. "ranges": { "black": 0, "white": 63300 }
  2368. },
  2369. { // Quality A
  2370. "make_model": [ "Phase One P30", "Phase One P30+"],
  2371. "dcraw_matrix": [ 4516,-244,-36,-7020,14976,2174,-3206,4670,7087 ],
  2372. "ranges": { "black": 0, "white": 63300 }
  2373. },
  2374. { // Quality A
  2375. "make_model": [ "Phase One P45", "Phase One P45+" ],
  2376. "dcraw_matrix": [ 5053,-24,-117,-5685,14077,1703,-2619,4491,5850 ],
  2377. "ranges": { "black": 0, "white": 63300 }
  2378. },
  2379. { // Quality X, matrix taken from H5D-50c which has the same sensor, probably with the same CFA. Color looks good to the eye with files tested.
  2380. "make_model": [ "Phase One IQ250", "Leaf Credo 50", "Phase One IQ3 50MP" ],
  2381. "dcraw_matrix": [ 4932, -835, 141, -4878, 11868, 3437, -1138, 1961, 7067 ],
  2382. "ranges": { "black": 0, "white": 64400 } // CMOS sensor, we dare to set white level a bit higher than for the more varying Phase One CCDs
  2383. },
  2384. { // Quality C, matrix made from crappy cc24 photo
  2385. "make_model": [ "Phase One IQ3 100MP" ],
  2386. "dcraw_matrix": [ 4479,-895,-536,-5818,13569,2742,-1186,2190,7909],
  2387. "ranges": { "black": 0, "white": 64400 }
  2388. },
  2389. { // Quality A for tested CFV, the other models have the same sensor (16 megapixel square sensor)
  2390. "make_model": [ "Hasselblad V96C", "Hasselblad CFV", "Hasselblad CFV-II" ],
  2391. "dcraw_matrix": [ 8519, -3260, -280, -5081, 13459, 1738, -1449, 2960, 7809 ] // borrowed from Adobe's DNG converter
  2392. },
  2393. { // Quality A for tested CF-22, the other models have the same sensor
  2394. "make_model": [ "Hasselblad CF-22", "Hasselblad CF-22MS", "Hasselblad CFH-22", "Hasselblad H3D-22", "Hasselblad H3DII-22" ],
  2395. "dcraw_matrix": [ 8519, -3260, -280, -5081, 13459, 1738, -1449, 2960, 7809 ] // borrowed from Adobe's DNG converter
  2396. },
  2397. { // Quality A for tested H3D-31, the other models have the same sensor
  2398. "make_model": [ "Hasselblad H3D-31", "Hasselblad H3DII-31", "Hasselblad H4D-31" ],
  2399. "dcraw_matrix": [ 5458, -1448, 145, -4479, 12338, 2401, -1659, 3086, 6710 ] // borrowed from Adobe's DNG converter
  2400. },
  2401. { // Quality A for tested CFV-39, the other models have the same sensor. Small filter differences may exist so some might do better with a slightly different profile
  2402. "make_model": [ "Hasselblad CF-39", "Hasselblad CF-39MS", "Hasselblad CFH-39", "Hasselblad CFV-39", "Hasselblad H3D-39", "Hasselblad H3DII-39", "Hasselblad H3DII-39MS" ],
  2403. "dcraw_matrix": [ 3857, 452, -46, -6008, 14477, 1596, -2627, 4481, 5718 ] // borrowed from Adobe's DNG converter
  2404. },
  2405. { // Quality A for tested CFV-50, the other models have the same sensor
  2406. "make_model": [ "Hasselblad CFV-50", "Hasselblad H3DII-50", "Hasselblad H3DII-50MS", "Hasselblad H4D-50", "Hasselblad H4D-50MS", "Hasselblad H4D-200MS", "Hasselblad H5D-50", "Hasselblad H5D-50MS", "Hasselblad H5D-200MS" ],
  2407. "dcraw_matrix": [ 5656, -659, -346, -3923, 12306, 1791, -1602, 3509, 5442 ] // borrowed from Adobe's DNG converter
  2408. },
  2409. { // Quality A
  2410. "make_model": [ "Hasselblad H4D-40", "Hasselblad H5D-40" ],
  2411. "dcraw_matrix": [ 6159, -1402, -177, -5439, 12762, 3007, -955, 2200, 7104 ] // borrowed from Adobe's DNG converter
  2412. },
  2413. { // Quality A for tested H4D-60, the other models have the same sensor
  2414. "make_model": [ "Hasselblad H4D-60", "Hasselblad H5D-60" ],
  2415. "dcraw_matrix": [ 9662, -684, -279, -4903, 12293, 2950, -344, 1669, 6024 ] // borrowed from Adobe's DNG converter
  2416. },
  2417. { // Quality A
  2418. "make_model": [ "Hasselblad H5D-50c", "Hasselblad CFV-50c" ],
  2419. "dcraw_matrix": [ 4932, -835, 141, -4878, 11868, 3437, -1138, 1961, 7067 ]
  2420. },
  2421. { // Quality C
  2422. "make_model": [ "Hasselblad H6D-100cMS" ],
  2423. "raw_crop": [ 64, 108, 11608, 8708 ]
  2424. },
  2425. {
  2426. "make_model": [ "HUAWEI DLI-L22" ],
  2427. "dcraw_matrix": [ 6984, -812, -975, -4792, 13481, 1381, -1056, 2355, 4873 ] // ColorMatrix1 (D65, wrong order) from Adobe DNG Converter 11.2.1
  2428. },
  2429. {
  2430. "make_model": [ "samsung SM-N960F" ],
  2431. "dcraw_matrix": [ 6632, -622, -1104, -5659, 14819, 773, -1846, 4465, 4967 ] // ColorMatrix1 from Adobe DNG Converter 11.1
  2432. },
  2433. // Dummy test entry to test the parser and show the format with all entries active
  2434. {
  2435. "make_model": "DummyMake DummyModel",
  2436. "dcraw_matrix": [ 7530,-1942,-255,-4318,11390,3362,-926,1694,7649 ],
  2437. "raw_crop": [ 10, 20, 4000, 3000 ],
  2438. "masked_areas": [ 51, 2, 3804, 156, 51, 5794, 3804, 5792 ],
  2439. "ranges": {
  2440. "aperture_scaling": [
  2441. { "aperture": 1.2, "scale_factor": 1.1 },
  2442. { "aperture": 1.4, "scale_factor": 1.08 }
  2443. ],
  2444. "black": [
  2445. { "iso": 100 , "levels": [ 10, 20, 10, 20 ] },
  2446. { "iso": [100, 200] , "levels": [ 30, 40, 30 ] },
  2447. { "iso": 3200, "levels": [ 50, 60, 50, 60 ] }
  2448. ],
  2449. "white": [
  2450. { "iso": 100 , "levels": [ 10000, 11000, 10000, 11000 ] },
  2451. { "iso": 3200, "levels": [ 11000, 11000, 10000, 11000 ] }
  2452. ],
  2453. "white_max": 16383
  2454. }
  2455. }
  2456. ]}