shinestacker

Shine Stacker

Focus Stacking Processing Framework and GUI

Focus stacking for microscopy, macro photography, and computational imaging

Key Features

Quick start

Command Line Processing

from shinestacker.algorithms import *

# Minimal workflow: Alignment → Stacking
job = StackJob("demo", "/path/to/images", input_path="src")
job.add_action(CombinedActions("align", [AlignFrames()]))
job.add_action(FocusStack("result", PyramidStack()))
job.run()

Installation

Clone the package from GitHub:

git clone https://github.com/lucalista/shinestacker.git
cd shinestacker
pip install -e .

GUI Workflow

Launch GUI

shinestacker

Follow GUI guide for batch processing and retouching.

Advanced Processing Pipeline

from shinestacker import *

job = StackJob("job", "E:/focus_stacking/project_directory/", input_path="tiff_images")
job.add_action(CombinedActions("align", actions=[AlignFrames(), BalanceFrames()]))
job.add_action(FocusStackBunch("batches", PyramidStack(), frames=12, overlap=2))
job.add_action(FocusStack("stack", PyramidStack(), prefix='pyram_'))
job.add_action(FocusStack("stack", DepthMapStack(), prefix='dmap_'))
job.run()

Workflow Options

Method Best For
Python API batch processing
GUI Interactive refinement
Jupyter notebooks prototyping

Documentation Highlights

Core Processing

Requirements

Dependencies

Core processing

pip install imagecodecs matplotlib numpy opencv-python pillow psdtags psutil rawpy scipy setuptools-scm tifffile tqdm

GUI support

pip install argparse PySide6 jsonpickle webbrowser

Jupyter support

pip install ipywidgets

Known Issues