Repository navigation
Debayering Guide
Single-shot color (OSC) astronomical cameras (ZWO ASI, QHY, Player One, Svbony) use sensors covered with a Bayer color filter array (CFA). To produce full RGB images, the missing color channels must be interpolated.
CassiniFlow supports all 4 standard 2×2 Bayer arrangements:
- RGGB (Most common on Sony IMX sensors: IMX585, IMX662, IMX678, IMX462, IMX178)
- BGGR (Common on older Aptina/Sony sensors)
- GBRG
- GRBG
Tip
If your planet appears strongly tinted green or purple, the selected Bayer matrix does not match your camera driver. Switch between RGGB and BGGR to restore natural planetary colors.
| Algorithm | Computational Cost | Edge Sharpness | Color Artifacts (Zippers) | Best For |
|---|---|---|---|---|
| Bilinear | Lowest ( |
Moderate | Prone to slight fringing on sharp limbs | Fast previews, real-time scrubbing, rapid sorting. |
| HQ Linear | Medium ( |
High | Reduced artifacts | Excellent all-rounder for general planetary use. |
| Malvar-He-Cutler | Higher ( |
Very High (gradient-corrected) | Minimal edge fringing | Fine detail work: Jupiter's GRS whorls, Saturn's Encke/Cassini rings, lunar rilles. |
In certain advanced workflows, astrophotographers prefer keeping RAW Bayer data intact throughout cropping and centering, deferring demosaicing directly to the final stacking phase.
CassiniFlow includes a Protect Bayer Pattern mode:
- Ensures all crop boundaries and centroid shifts align to even
$2 \times 2$ pixel steps. - Guarantees that the underlying RGGB matrix order is never scrambled during cropping or stabilization.
CassiniFlow • Modern Planetary & Solar Preprocessing Engine • High Performance .NET 10 & Avalonia UI
GitHub Repository • Releases • Report an Issue
CassiniFlow Wiki
Astronomical Lucky Imaging & Multi-Zone Stacking Suite
🌐 Language / Langue
🇬🇧 English • 🇫🇷 Français
-
Getting Started
-
Desktop Application (GUI)
-
Automation & CLI
-
Support & Internals
-
Prise en main
-
Interface Graphique (Desktop)
-
Automatisation & CLI
-
Support & Architecture