Stacker
Role
The Stacker module live-stacks a stream of frames - from the camera’s own BLOB output or from a watched folder - into a single accumulated image, updated as each new frame arrives. It runs as a small pipeline (pre-process → align+stack → post-process → save), each stage on its own thread, so a slow step never blocks frames already queued behind it.
Required devices
| Device | Role |
|---|---|
| Camera | Source of incoming frames, when Camera BLOB is the input source |
Input source
Input source is either the Camera BLOB (frames captured by the camera device directly) or a Watch folder (any FITS file dropped into Watched folder path by another tool or module). Both modes feed the same pipeline.
Pre-processing
Before stacking, a frame can optionally have Remove hot pixels applied (replaces a pixel that is far brighter than its neighbors’ mean with that mean) and/or Subtract master dark (subtracts a master dark frame loaded from Master dark path, clamped to zero rather than allowed to go negative).
Alignment
Align frames before stacking registers each frame against the session’s first frame before accumulating it, using either Star detection (SEP) or Feature matching (OpenCV) as the Alignment method. A frame that fails to align, or that doesn’t match the session’s reference frame shape, is rejected and dropped rather than corrupting the stack.
Running a session
Play starts (or resumes) stacking; Pause stops accepting new frames without resetting the accumulator, so a later Play keeps adding to the same stack; Stop resets the accumulator for a fresh session on the next Play; State reports idle/running/paused/stopping (stacking Stop still waits for any in-flight save to finish before actually going idle). Status also reports each pipeline stage’s own queue depth and busy/idle state, useful to see where a slow step is backing up. Stack reports how many frames have been integrated into the current result, and Image is the live stacked result itself.