klauspost / rawspeed

Raw Image Decoder Library
GNU Lesser General Public License v2.1
72 stars 20 forks source link

Strange output from the Nikon E5700 #131

Closed pedrocr closed 8 years ago

pedrocr commented 8 years ago

Hi Klaus,

We seem to be getting quite strange output from the Nikon E5700. At least with this sample:

http://rawsamples.ch/raws/nikon/e5700/RAW_NIKON_E5700_SRGB.NEF

The actual rawspeed output seems identical to the dcraw decoding one (12bit packed decoding) but then dcraw produces a clean image and darktable doesn't. Did you come across any special things that needed to be done to support the E5700 in rawstudio?

Thanks,

Pedro

pedrocr commented 8 years ago

Ok, I've figured out the issue now. The camera has a CYGM bayer pattern instead of RGGB and that wrecks havoc with darktable's demosaic (which assumes there are only 3 colors). A more complete synthesis is here:

https://www.mail-archive.com/darktable-users@lists.sourceforge.net/msg08574.html