I have multiple noisy photos (caputed without tripod) that needs to be adjusted (moved/rotated) and averaged.
How it's better to do it in Linux with FOSS console-based programs?
Current way is something like:
mplayer mf://*.JPG -vo yuv4mpeg:file=qqq.yuv
transcode -i qqq.yuv -y null -J stabilize=maxshift=500:fieldsize=100:fieldnum=6:stepsize=50:shakiness=10
transcode -i qqq.yuv -J transform=smoothing=100000:sharpen=0:optzoom=0 -y raw -o www.yuv
mplayer www.yuv -vo pnm
gm convert -average 0*.ppm q.ppm
i.e.:
- Convert photos to video
- Apply Transcode's "Stabilize" filter
- Convert the video back to images
- Average the images.
It works, but bad: photos still not perfectly adjusted and the whole sequence is very slow.
What is better way of doing it?
Update: Experimented with "Hugin". It only distorted all photos according some "projection" and refused to merge them: enblend: excessive overlap detected; remove one of the images. Of course "excessive" - they're all almost in the same place. No averaging?
/* and images are not actually aligned */.
Proceeding to experiments with enblend/panorama_tools/ale.