Code: Select all
convert stack.tif -depth 16 -channel all -normalize +channel +normalize +compress -alpha off 2.miff
./autowhite 2.miff 3.miff
./colorbalance -c g -a 15 3.miff 4.miff
./curves -g C "25,75" 4.miff stack_devel.tif
I am seeking suggestions about the best way to go about doing this automatically with a degree of certainty, rather than manual adjustment to the image.