ComfyUI Node
Color Auto Stretch Contrast (MD)
Automatically stretches the contrast of the image similar to GIMP's Auto Stretch Contrast, with options to preserve colors and use non-linear mapping.
Color Auto Stretch Contrast (MD)
- image
- mask
- image
◄keep_colorstrue►
◄non_linearfalse►
Categorymd/image/color
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Input image tensor. | |
| keep_colors | BOOLEAN | true | Preserve the color ratios when stretching contrast. |
| non_linear | BOOLEAN | false | Use a non-linear (perceptual) stretching method. |
| maskopt | MASK | Optional mask to restrict the adjustment area. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | The contrast-stretched image. |