I am attempting to stay as linear as possible for the workflow, as follows, then convert to sRGB. I don't want any adjustments to the images - realistically as little as possible. Post processing external to the calibration script.
I checked the dcraw man page.
These are the options used in my script
Code: Select all
dcraw -4 -o 0 q 1 -t 0 -H 1 -T *.CR2
-4 Linear 16-bit, same as -6 -W -g 1 1.
q 1 VNG deBayer
-t 0 no flip
-H 1 no highlight clipping
-T output tiff
I realise that it is not strictly linear from a RAW file.
I am attempting to process the images as near linear as possible and then recombine as sRGB. Though I'm not really sure whether there is an advantage converting to 'linear', in this case. sRGB all the way would simplify things a little - how is LAB handled in that case?
There are 4 image sets B D F L. Each color channel is processed as follows after '-separate', using R channel as an example;
Code: Select all
R.miff=(L.miff - D.miff)/(F.miff - B.miff) - same for G and B channels
then
Code: Select all
convert R.miff G.miff B.miff -set colorspace sRGB -combine output.tiff
This line is confusing me at the moment
Code: Select all
convert R.miff G.miff B.miff -set colorspace RGB -combine -set colorspce sRGB output.tiff
I understand from the documentation lets IM know the input files are RGB and then sets colorspace to sRGB - It would seem to me that if -set colorspace RGB is used in the -separate command before processing, there should be no need to reiterate in the -combine command after processing???
If no colorspace is defined is sRGB the default or RGB?
Version: ImageMagick 7.0.7 (latest compiled from source) Q32 x86_64 (as of) 2018 - 04 - 31 xubuntu