Depending upon the tools you have, there are various approaches. Here is a way I did it some time back, so it may be dated, using only freely available software. This was to produce a long exposure effect on a waterfall, alter the modes for your needs.
1. Export your images as 16-bit TIF
2. Align Images with Hugin Hugin download
# align_image_stack -a aligned_ -v -m -g 10 -C ../*.tif
or using a GPU
# align_image_stack -a aligned_ -v -m -g 10 -C --gpu ../*.tif
3. Stack Images (be sure to switch to directory of aligned images. 3 example stack approaches)
(a). Imagemagick
# convert *.tif -evaluate-sequence median -alpha off median.tif
(b). Hugin Enfuse
# enfuse -o enfuse.tif -d 16 --exposure-weight=1 --saturation -weight=0.2 --contrast-weight=0 --soft-mask aligned_*
(c). Hugin Stacker
# hugin_stacker --output=median2.tif --mode=median --bigtiff ../*.tif
Regardless of the tools you use, the general approach is:
- compatible image type
- Align
- stack
Depending upon your images, alignment may be readily automated or need manual alignment guides created.