Skip to content

Multi Zone Stacking

Stéphane Pilloy edited this page Nov 4, 2026 · 2 revisions
Language: English | Français 🇫🇷

Multi-Zone Stacking Engine

CassiniFlow includes a native, high-performance Multi-Zone Stacking Engine capable of compensating for localized atmospheric turbulence distortions across planetary discs and lunar/solar surfaces.


How Multi-Zone Alignment Works

Atmospheric turbulence (seeing) does not distort an image uniformly. One edge of Jupiter or a lunar crater may be momentarily crystal clear while the opposite side is warped by an atmospheric wave.

CassiniFlow divides the image into a grid of Alignment Points (AP):

flowchart TD
    Video["Input Video Stream"] --> RefSel["Reference Frame Selection<br/>(Auto Sharpest or Double-Stack)"]
    RefSel --> APGrid["Generate Alignment Points Grid<br/>(Multi-Scale APs, Brightness Threshold, Pruning)"]
    APGrid --> LocalCorr["Local Sub-Pixel Cross-Correlation<br/>(Track shift vector dx, dy per AP)"]
    LocalCorr --> WeightedSum["Weighted AP Summation & Blending<br/>(Feathered tile transitions)"]
    WeightedSum --> Enhancements["Restoration & Color Tuning<br/>(Drizzle 1.5x/3x, ADC Alignment, Sharpening)"]
    Enhancements --> MasterOut["Final Master Image (FITS / TIFF / PNG)"]
Loading

Key Stacking Features

1. Alignment Points (AP) Grid

  • Multi-Scale Grid: Places smaller APs on fine contrast edges (cloud belts, lunar rilles) and larger APs across smooth regions.
  • Tile Size: Configurable patch size (e.g., 24, 48, 104 pixels).
  • Automatic Pruning: Discards low-contrast background sky tiles to focus computational power exclusively on the astronomical target.
  • Min Brightness Threshold: Avoids placing points in dark sky noise.

2. Reference Frame & Double Stack

  • Automatic Reference: Analyzes the sequence to select the single frame with the highest contrast and sharpness.
  • Double Stack Reference: Averages the sharpest 5 to 15 frames together into a synthetic, noise-free reference master, dramatically boosting alignment accuracy on faint or noisy captures.

3. Noise Robustness (SNR)

  • Adjustable from 1 (High SNR / bright targets) to 8 (Very low SNR / noisy or faint targets).
  • Applies localized Gaussian bandpass filtering before correlation to prevent alignment points from locking onto sensor read noise.

4. Multi-Tier Stacking Outputs

Generate multiple stack percentages in a single execution without re-reading the video:

  • Percentages: e.g., 10%, 25%, 50%.
  • Frame Counts: e.g., 250, 500, 1000 frames. CassiniFlow saves each tier as an independent high-bit-depth master file for easy comparison.

5. Post-Stack Enhancements

  • Drizzle Scale: 1.5× and 3.0× sub-pixel interpolation to recover high-frequency detail from slightly undersampled cameras.
  • Atmospheric Dispersion Correction (ADC): Automatically registers Red and Blue color channels against Green to remove atmospheric chromatic fringes.
  • Sharpening & Feathering: Blends high-frequency unsharp masking while seamlessly feathering tile boundaries to eliminate grid stitch lines.

Clone this wiki locally