Technical overview

Planning, capture, and image reconstruction

This project connects two parts of planetary imaging: a browser-based calculator for the geometry of an observation, and Planetary Studio, a native desktop application for acquiring and processing the recording. The calculator models what reaches the sensor. Planetary Studio calibrates, registers, ranks, integrates, and sharpens the recorded frames.

The desktop work began with native Apple silicon support for the Celestron NexImage 10, including raw GRBG Bayer capture over UVC. It has grown into a common processing workflow for macOS, Windows, and Linux, covering tasks conventionally distributed across oaCapture, PIPP, AutoStakkert, and waveSharp.

01

Observing geometry and detector sampling

Calculate the projected observation

The calculator combines observer coordinates, capture time, sensor dimensions, pixel pitch, effective focal length, and mount geometry. It predicts angular extent and diameter in pixels, illuminated phase, light-time-corrected central longitude, sub-Earth latitude, and pole position angle. Orthographic surface projections show the predicted Earth-facing hemisphere.

Alt-az previews follow the local vertical; equatorial previews follow celestial north. A camera rotation offset transforms the body, rings, and moons into sensor coordinates. The model also estimates alt-az field rotation and conservative recording windows, and displays major-moon positions and Jupiter transit predictions.

The equipment catalog supplies editable camera and telescope presets. These establish sampling and framing; seeing, focus, diffraction, tracking errors, and atmospheric dispersion remain separate constraints on the detail that can actually be recorded.

Sampling relationships

Effective focal length
f_eff = f_telescope × M
Image scale, arcseconds per pixel
s ≈ 206.264806 × p / f_eff
Horizontal field of view, radians
FOV_x = 2 arctan(N_x × p / (2000 × f_eff))
Apparent target diameter, pixels
D_px ≈ θ_arcsec / s

Here p is pixel pitch in µm, focal lengths are in mm, N_x is the sensor width in pixels, M is the Barlow/reducer multiplier, and θ is the apparent angular diameter. The image-scale and pixel-diameter expressions use the small-angle approximation.

02

The Planetary Studio processing pipeline

01 / ACQUISITION

Raw camera capture

Record unsigned 8- or 16-bit Bayer, monochrome, or RGB frames in SER, preserving the native camera samples and timestamps. Resolution, color mode, bit depth, and frame rate are independent selectors constrained to advertised camera modes. Exposure and gain retain exact-value controls.

Live view can stop for a mode change while the camera remains connected. Incomplete UVC frames are counted and skipped; recording reports retain the stopping reason and any error.

02 / PREPARATION

Calibrate and select

Read SER, common video formats, or image sequences. Apply dark/flat calibration, Bayer conversion, hot-pixel filtering, object centering, cropping, and optional brightness normalization. Trim an inclusive frame range and reject missing or clipped targets.

Gradient energy, Laplacian variance, Brenner contrast, and mean brightness offer different quality criteria. Prepared-frame views and limited sample stacks expose the effect of settings before a full run.

03 / INTEGRATION

Register and stack

Estimate global subpixel translation from smoothed image structure, using phase-correlation proposals and intensity-based refinement. Overlapping local alignment patches accommodate local motion and can rank frames independently at each point.

Choose automatic or manual alignment points and a minimum brightness for automatic placement. Local contributions feather into the global stack. Shared global ranking avoids registering discarded frames; local ranking evaluates candidates for each patch.

04 / RECONSTRUCTION

Sharpen and export

Adjust six wavelet scales and noise thresholds, then optionally apply Richardson–Lucy deconvolution. Bundled RGB and monochrome FFDNet models provide optional noise cleanup after sharpening, before channel balance, saturation, and gamma.

Processing retains floating-point precision through the finishing stages. Export 16-bit TIFF/PNG or floating-point FITS, save presets and projects, and reuse settings in the batch queue.

03

Implementation and validation

A native application with an independent engine

Planetary Studio uses Python, NumPy, SciPy, OpenCV, and a Qt desktop interface. A native libuvc/libusb bridge receives raw USB frames outside Python callbacks. Camera ownership and recording stay in a camera worker; processing runs separately from the interface event loop. The same engine is available from the command line.

SER recordings are memory mapped and read in passes. Internal pixels use normalized float32 and stack accumulation uses float64. Projects and processing reports are readable JSON; exports retain frame-selection and processing metadata. Recordings and model inference stay on the local machine.

Recent work corrected false translations driven by fixed sensor noise and square boundaries caused by local-patch normalization. Registration now validates smoothed structure and refines translation with enhanced correlation coefficient (ECC) optimization; coverage-weighted blending retains the patch taper.

State the limits of the reconstruction

Release gates include numerical, format, protocol, and desktop tests, followed by self-tests inside the packaged executables and extracted archives on all four supported platforms. Synthetic reference images check known subpixel motion, sharpness ranking, noise reduction, and export precision.

Hardware validation is narrower: NexImage 10 raw GRBG8 capture has been exercised on macOS 27 arm64. ZWO ASI, QHY, system-camera, INDI, and ASCOM Alpaca adapters are implemented, but adapter tests do not certify every camera, firmware, pixel format, or driver combination.

Planetary Studio remains a prerelease. It is independently implemented and has not established numerical or image-quality equivalence to AutoStakkert or waveSharp. Drizzle reconstruction, planetary rotational derotation, and GPU processing are not implemented. FFDNet was trained on general photographs; aggressive cleanup can suppress real planetary detail. Stacking and sharpening cannot recover focus or spatial information absent from the data.

Validation and known limitations · Camera documentation

Source, release notes, and reproducible builds

The public repository contains the processing engine, native camera bridge, model provenance, build workflow, and release history. Current platform packages and installation details are on the official download page.

View GitHub repository