ha_inject_red
Adds Hydrogen-alpha signal to the red channel of an RGB image where Ha exceeds red by a set fraction, boosting emission detail with optional soft clamp. Reports resulting red maximum and image statistics.
Instructions
Add Ha to the red channel of an RGB view in place, where Ha exceeds R by a given fraction. Where Ha > R * (1 + brightness_limit), R becomes R + strength * (Ha - R); elsewhere R, and G and B everywhere, are unchanged. With max_output and rolloff, R above max_output becomes max_output + (R - max_output) * rolloff. Runs as 64-bit PixelMath truncated to [0,1]; reports the new R maximum and the image median and max.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ha_id | Yes | Ha view (mono, same dimensions) | |
| rolloff | No | Fraction of the excess above max_output that is kept; given together with max_output | |
| strength | Yes | Fraction of the Ha excess over R added to R | |
| target_id | Yes | Target RGB view, modified in place | |
| max_output | No | Optional: R level above which the soft clamp compresses; given together with rolloff. Omitted = no clamp | |
| brightness_limit | Yes | Ha is added only where Ha > R * (1 + brightness_limit) |