Project

General

Profile

Camera Support #11020

Nikon D500 - uncompressed

Added by Marcel Bihr over 3 years ago. Updated over 2 years ago.

Status:
Fixed
Priority:
Low
Assignee:
-
Category:
-
Target version:
Start date:
05/08/2016
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.0.4

Description

Darktable 2.04 can not open RAW Files from a Nikon D500 (due to whitebalance that can not be read).

I'll make available several Raw files with different depth (12 and 14 bit) and compression (none, lossless, compressed). I also add a medium-size Raw and a small-sized one (both 14-bit lossless, don't know if the size matters).

The files will be here shortly: https://www.dropbox.com/sh/hb8nzbgeh5nwqri/AAD3BBIt73ftfpYkg_W39HIwa?dl=0

Regards
Marcel


Related issues

Has duplicate darktable - Bug #11577: nikon D500 supportDuplicate04/17/2017

Associated revisions

Revision 5a227572 (diff)
Added by Roman Lebedev about 3 years ago

Nikon D500 - basic support (only 12bit / 14bit compressed raws!). Refs #11020

All iso levels have the same black/white levels...

Revision 906e59aa (diff)
Added by Roman Lebedev about 3 years ago

Nikon D500 - basic support (only 12bit / 14bit compressed raws!). Refs #11020

All iso levels have the same black/white levels...

(cherry picked from commit 5a227572df55280e1331e138f2415d375455f055)

Revision c8d5a356 (diff)
Added by Roman Lebedev over 2 years ago

NIKON D500: uncompressed modes support. Fixes #11020

History

#1 Updated by Marcel Bihr over 3 years ago

Using the following values, I get acceptable results for 14-bit lossless compressed images (the values are extracted from converted dngs):

diff --git a/src/external/adobe_coeff.c b/src/external/adobe_coeff.c
index 1870b4c..575aeec 100644
--- a/src/external/adobe_coeff.c
+++ b/src/external/adobe_coeff.c
@@ -270,6 +270,7 @@ static void dt_dcraw_adobe_coeff(const char *name, float cam_xyz[1][12])
     { "Nikon D5300", { 6988,-1384,-714,-5631,13410,2447,-1485,2204,7318 } },
     { "Nikon D5500", { 8821,-2938,-785,-4178,12142,2287,-824,1651,6860 } },
     { "Nikon D50", { 7732,-2422,-789,-8238,15884,2498,-859,783,7330 } },
+    { "Nikon D500", { 8813,-3210,-1036,-4703,12868,2021,-1054,1940,6129 } },
     { "Nikon D600", { 8178,-2245,-609,-4857,12394,2776,-1207,2086,7298 } },
     { "Nikon D610", { 8178,-2245,-609,-4857,12394,2776,-1207,2086,7298 } },
     { "Nikon D60", { 8736,-2458,-935,-9075,16894,2251,-1354,1242,8263 } },
diff --git a/src/external/rawspeed/data/cameras.xml b/src/external/rawspeed/data/cameras.xml
index c7ba848..7147d84 100644
--- a/src/external/rawspeed/data/cameras.xml
+++ b/src/external/rawspeed/data/cameras.xml
@@ -1805,6 +1805,23 @@
                <Crop x="0" y="0" width="-46" height="0"/>
                <Sensor black="0" white="15892"/>
        </Camera>
+       <Camera make="NIKON CORPORATION" model="NIKON D500">
+
+               <ID make="Nikon" model="D500">Nikon D500</ID>
+
+               <CFA width="2" height="2">
+                       <Color x="0" y="0">RED</Color>
+                       <Color x="1" y="0">GREEN</Color>
+                       <Color x="0" y="1">GREEN</Color>
+                       <Color x="1" y="1">BLUE</Color>
+               </CFA>
+               <Crop x="0" y="0" width="0" height="0"/>
+               <Sensor black="400" white="15520"/>
+               <Hints>
+                       <Hint name="nikon_override_auto_black" value=""/>
+               </Hints>
+       </Camera>
+
        <Camera make="NIKON CORPORATION" model="NIKON D3100"  decoder_version="2">
                <ID make="Nikon" model="D3100">Nikon D3100</ID>
                <CFA width="2" height="2">

#2 Updated by Marcel Bihr over 3 years ago

Please find attached a patch enabling Nikon D500 basic support for 14-bit compressed and 12-bit compressed images. The uncompressed do not yet work.

#3 Updated by Roman Lebedev about 3 years ago

  • % Done changed from 0 to 20
  • Status changed from New to Incomplete
  • Subject changed from Basic Support for Nikon D500 to Nikon D500 - uncompressed

#4 Updated by Roman Lebedev over 2 years ago

  • Has duplicate Bug #11577: nikon D500 support added

#5 Updated by Roman Lebedev over 2 years ago

  • % Done changed from 20 to 100
  • Status changed from Incomplete to Fixed

#6 Updated by Roman Lebedev over 2 years ago

  • Target version set to 2.4.0

Also available in: Atom PDF

Go to top