ha_inject_red
Inject Ha into an RGB image's red channel only where Ha exceeds red by a given fraction, with adjustable strength and optional rolloff clamp. Keeps green/blue unchanged and reports new 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) |