A focus stacking application written in Python that provides image alignment (OpenCV) and several stacking algorithms. Everything being nicely contained inside a GUI (Graphical User Interface) written using (Py)Qt5, that is easy to use.
Adapted algorithms from:
-
Image alignment and laplacian algorithm adapted from: momonola/focus-stack and https://osf.io/j8kby/. These implementations worked fine for small images, but every image had to be loaded into RAM-memory causing the program to crash when using large images. Solution was to use numpy memmaps.
-
Laplacian Pyramid algorithm adapted from: sjawhar/focus-stacking
install miniconda: https://docs.conda.io/en/latest/miniconda.html
- create the virtual environment
conda env create -f environment.yml
- configure VSCode to use the proper miniconda virtual environment: https://code.visualstudio.com/docs/python/environments#_conda-environments
- update conda
conda update conda
- update virtua env
conda env update -f environment.yml
conda activate image-stack
snapcraft
or get a shell within the snap:
snapcraft --debug
sudo snap install ./pyqt-image-focus-stack*.snap --dangerous --devmode
/snap/bin/pyqt-image-focus-stack