Why isn't Octave reading in the entire 14 bits of my .NEF raw files?

339 Views Asked by At

I am using a Nikon D5200. I intend to do some image processing on the raw images shot with the camera. But I am encountering a problem when I read the raw images using GNU Octave. Rather than giving bit depth of 16 (since the .NEF are shot at 14-bit depth), the result is just a 8-bit array. What might be the problem?

imfinfo("/media/karthikeyan/3434-3531/DCIM/100D5200/DSC_1094.NEF")

ans =

scalar structure containing the fields:

Filename = /media/karthikeyan/3434-3531/DCIM/100D5200/DSC_1094.NEF

FileModDate = 10-Oct-2016 18:10:02

FileSize = 26735420

Format = DCRAW

FormatVersion =

Width = 6036

Height = 4020

BitDepth = 8

ColorType = truecolor

The result from exiftool is as follows:

exiftool DSC_1094.NEF | grep -i bit

Bits Per Sample : 14

I am using Ubuntu 14.04, Octave 4.0.3.

0

There are 0 best solutions below