Trying to read .nef file in 14 bits

4 views (last 30 days)
Hello Everyone, Im using D300s camera to take some images (.nef) and want to read them on matlab. I take the images in 14 bits but when I read them it reads in 8 bits. Does anyone knows how to read in 14 bits. I tried using imread and fread but its no help.
Thanks alot

Accepted Answer

ilan ancelseritcioglu
ilan ancelseritcioglu on 17 Apr 2023
Edited: ilan ancelseritcioglu on 17 Apr 2023
I used raw2rgb('image.nef') to read the 14 bit image. It creates a 16 bits data and interpolate some of the point (from 14 to 16) but overall it does the works and doesnt converts to 8 bits.

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!