Nodes/comfyui_cv/cv2.intensity_transform.contrastStretching
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.intensity_transform.contrastStretching
  • input
  • result
r10
s10
r20
s20
Categoryimage/CV/low-level/intensity_transform

Inputs (5)

NameTypeDefaultDescription
inputCOMFY_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.
r1INT0-2147483648–2147483647 - - -
s1INT0-2147483648–2147483647 - - -
r2INT0-2147483648–2147483647 - - -
s2INT0-2147483648–2147483647 - - -

Outputs (1)

NameTypeDescription
resultCOMFY_MATCHTYPE_V3Echoes the 'input' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY.