contrast stretch

Description

Perform a simple contrast stretch separately on each channel. The stretch is linear around the midpoint and excessive values are clamped. Clamped values normally have the SAT DQ bit set (and so may appear magenta), this can be disabled. Uncertainty is discarded.


Connections

Inputs

Index Name Type Desc
0 (none) img (none)

Outputs

Index Name Type Desc
0 (none) img (none)

Parameters

contrast stretchtol: float (default 0.2)Contrast stretch tolerance (between 0% and 50%)
sat: boolean (default True)Set the saturated DQ bit on pixels outside the stretch range

Automatically generated by generate_autodocs.py

Date: 2026-03-05T22:20:48.599151