Get more dynamic range with Magic Lantern dual ISO
Stripey image crazyness. work in progress...
Below cr2hdr20bit is a unix (osx) executable.
Not the easiest but in my head the best way to install these tools. *not yet tested on a clean machine
Copy to your binary directory.
chmod +x cr2hdr20bit
get and install the exiftool package.
http://www.sno.phy.queensu.ca/~phil/exiftool/
sudo port install dcraw
(assuming you have macports)
Basic execution is pretty simple:
cr2hdr20bit *.CR2
Run it without arguments for help.
It is fairly smart and can recognise whether a CR2 file is dual iso or not and skip accordingly.
Not multithreaded, but we can solve that..
Put this in a script file, it assumes that you are working on files that have sequential numbers on the end (just like what comes out of your camera).
#!/bin/bash
CORES=$(sysctl -n hw.ncpu)
if [ $CORES -ge 8 ]
then
echo "8 or more cores"
sleep 2
cr2hdr20bit *[1].CR2 &
cr2hdr20bit *[2].CR2 &
cr2hdr20bit *[3].CR2 &
cr2hdr20bit *[4].CR2 &
cr2hdr20bit *[5].CR2 &
cr2hdr20bit *[6].CR2 &
cr2hdr20bit *[78].CR2 &
cr2hdr20bit *[90].CR2 &
wait
elif [ $CORES -ge 6 ]
then
echo "6 or more cores"
sleep 2
cr2hdr20bit *[1].CR2 &
cr2hdr20bit *[2].CR2 &
cr2hdr20bit *[34].CR2 &
cr2hdr20bit *[56].CR2 &
cr2hdr20bit *[78].CR2 &
cr2hdr20bit *[90].CR2 &
wait
elif [ $CORES -ge 4 ]
then
echo "4 or more cores"
sleep 2
cr2hdr20bit *[123].CR2 &
cr2hdr20bit *[456].CR2 &
cr2hdr20bit *[78].CR2 &
cr2hdr20bit *[90].CR2 &
wait
elif [ $CORES -ge 2 ]
then
echo "2 or more cores"
sleep 2
cr2hdr20bit *[123].CR2 &
cr2hdr20bit *[456].CR2 &
cr2hdr20bit *[78].CR2 &
cr2hdr20bit *[90].CR2 &
wait
else
echo "too bad just one core"
sleep 2
cr2hdr20bit *.CR2
fi