HDR Composition

Build one linear frame from two or more aligned exposures of the same filter. Saturated cores in the long exposure are replaced by the shorter exposures, scaled to the same flux.

The inputs stay in their own files. Apply writes a new view, HDR Composition. That view is still linear and still inside 0–1: when the recovered cores push the peak above 1, the whole frame is divided by that peak, which is a linear scale and so changes no ratio in the image. Autostretch shows the recovered structure. A later stretch (Statistical Stretch, Hyperbolic Stretch, Curves, WaveScale HDR) brings it into the display range for good.

1. What you need open

2. Which views

The list starts empty. Pick a view in the dropdown and press Add. Only the views in the list are combined; other open views are left alone. Remove takes the selected row back out. Refresh updates the dropdown after you open another image.

Order does not matter. Apply works out which frame is the longest exposure from the frames themselves, by fitting each pair against the other on the pixels that are unsaturated in both, and composes longest-first whatever order the list is in. The list is re-ordered after Apply to show what it actually used. Header exposure times are read too (EXPTIME, EXPOSURE, XPOSURE and others, including XISF properties) and break a tie between frames the measurement cannot separate. Sort by exposure, Up and Down are still there if you want to see or set the order yourself.

3. What Apply does

  1. Marks pixels at or above Binarizing threshold as saturated, per channel.
  2. Grows that mask by Mask growth pixels, then feathers it over Mask smoothness pixels. The core of the mask stays fully replaced.
  3. Measures long ≈ scale × short + offset on the unsaturated overlap. Sky does not have to match beforehand; the offset absorbs a pedestal difference.
  4. Writes scale × short + offset into the saturated pixels.
  5. Repeats with the next shorter frame, only where the previous short frame was clipped too. Recovered pixels above the threshold are kept.

4. Controls

Binarizing threshold

Default 0.800. Lower it when cores clip earlier than that, for example a stack whose stars flatten at 0.6. Raise it only when bright-but-real pixels are being replaced.

Mask growth

Default 1 px. Increase it when a halo of blooming or a hard ring remains just outside the replaced core.

Mask smoothness

Default 7 px. This is the width of the blend, not a blur of the picture. The interior of a saturated core is still taken entirely from the short exposure.

Also open the replacement mask

Writes a second mono view, white where the short exposures contributed. Use it to see whether the threshold caught the cores you care about.

The status line under the buttons reports the fitted scale and offset per channel, and the fraction of pixels replaced. A scale near the exposure ratio (300 s / 30 s → about ×10) is a good sign. A scale near 1 on very different exposures means the frames are not linear, not registered, or not the same filter.
This is not WaveScale HDR. WaveScale HDR compresses the bright range of a single image. HDR Composition merges different exposure times before that stretch.