Free command line focus stacking with enfuse

Work in progress, :)


sudo port install enblend
WIll install enfuse also.

Assuming you have your image files in this format and you are in this directory.

0001.jpg
0002.jpg
0003.jpg
0004.jpg
0005.jpg
0006.jpg
0007.jpg
0008.jpg
0009.jpg
0010.jpg 


/Applications/Hugin/HuginTools/enfuse -o stacked.TIF --exposure-weight=0 --saturation-weight=0 --contrast-weight=1 --hard-mask *.jpg

It will take a while and large images will chew a lot of memory. It brings my quad core i7 with 16G of ram to a standstill. 

set tmp
got to work out why but its necessary, something about an invalid temporary directory.

enfuse -o stacked.TIF --exposure-weight=0 --saturation-weight=0 --contrast-weight=1 --hard-mask *.jpg

I always find it handy to make a movie from my stack, great for a little movie magic in post:

ffmpeg -r 30 -f image2 -i %04d.jpg -codec:v prores -profile:v 3 army_abdomen.mov
Comments