Question: I'm starting to do some (computational, mathematical) research on images, and I need to be sure that the colour space is loaded from my NEF files "linearly". This is causing me some difficulty, so any help would be hugely appreciated.
Here is the output of convert -version:
Code: Select all
Version: ImageMagick 6.8.9-9 Q16 x86_64 2015-08-06 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
Code: Select all
image.read( filename );
image.write(thisx*3+3,thisy*3+3,3,3,"I",ShortPixel,array);
Code: Select all
sh: 1: dcraw: not found
Magick: "dcraw" -c -w "all_nef/00001.NEF" > "/tmp/gmO8GYNt".
Caught exception: Magick: Delegate failed ("dcraw" -c -w "%i" > "%o") reported by magick/delegate.c:908 (InvokeDelegate)
What I'm aiming for is as follows:
- When using intensities, like "I" in my C++ code above, we have as little interpolation as possible - I simply want raw, linear values;
- When using colours, like "R" instead of "I" above, we simply use only the red pixels - I don't need any interpolation at all.
Thanks very much!
Chris
EDIT: I'm considering running a pass of dcraw -h -4 to TIFF, and then using ImageMagick to separate the colour channels, and finally loading only the processed images in Magick++ rather than doing it "all at once". Would this be a more elegant solution?