ComfyUI Node
cv2.intensity_transform.contrastStretching
Raw wrapper of cv2.intensity_transform.contrastStretching(input, r1, s1, r2, s2). Parameters marked '?' are optional; blank means OpenCV default. From the opencv-contrib 'intensity_transform' module. See the OpenCV documentation for details.
cv2.intensity_transform.contrastStretching
- input
- result
◄r10►
◄s10►
◄r20►
◄s20►
Categoryimage/CV/low-level/intensity_transform
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| input | COMFY_MATCHTYPE_V3 | The image output(s) echo this input's format. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size. | |
| r1 | INT | 0-2147483648–2147483647 | - - - |
| s1 | INT | 0-2147483648–2147483647 | - - - |
| r2 | INT | 0-2147483648–2147483647 | - - - |
| s2 | INT | 0-2147483648–2147483647 | - - - |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | COMFY_MATCHTYPE_V3 | Echoes the 'input' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY. |