dynamic_narrowband_blend
Blend Ha and OIII narrowband data into an RGB image using a temporary luminance mask, with channel-specific strengths and soft rolloff to prevent clipping.
Instructions
Add Ha and OIII (mono views) to an RGB view in place, through a temporary luminance mask. R += ha_strength * Ha; B += oiii_strength * OIII; G += f * ha_strength * g_ha_fraction * Ha + (1 - f) * g_strength * OIII, with f = (OIIIHa)^(1-OIIIHa). Each channel above max_output becomes max_output + (x - max_output) * rolloff. The mask is the Rec.709 luminance of the target, Gaussian-blurred with sigma mask_blur, then 0 below mask_clip and (x - mask_clip) / (1 - mask_clip) above it; it is removed afterwards. Runs as 64-bit PixelMath truncated to [0,1]; reports the median and the R and B maxima.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ha_id | Yes | Ha view (mono, same dimensions) | |
| oiii_id | Yes | OIII view (mono, same dimensions) | |
| rolloff | Yes | Fraction of the excess above max_output that is kept | |
| mask_blur | Yes | Gaussian sigma (pixels) of the luminance mask blur | |
| mask_clip | Yes | Mask level below which the blend does not apply; 0 = no clip | |
| target_id | Yes | Target RGB view, modified in place | |
| g_strength | Yes | Multiplier on OIII in the G term | |
| max_output | Yes | Per-channel level above which the soft clamp compresses | |
| ha_strength | Yes | Multiplier on Ha added to R | |
| g_ha_fraction | Yes | Fraction of ha_strength applied to Ha in the G term | |
| oiii_strength | Yes | Multiplier on OIII added to B |