For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /nodes/05/AdjustContrast.md.

调整对比度(AdjustContrast)

AdjustContrastimage/adjustments角色:图像处理

Adjust Contrast 节点通过围绕颜色范围中点缩放亮部与暗部之间的差异来调整输入图像的对比度。因子为 1.0 时图像保持不变,低于 1.0 时降低对比度,高于 1.0 时增加对比度。

参数

参数类型默认 / 范围说明
imagesIMAGE · 图像—(连线输入)IMAGE 张量批次,可一次处理多张。
factorFLOAT0.0 ~ 2.0通用比例系数。

输出

输出类型说明
imagesIMAGE图像

怎么接

  • 上游:LoadImage / VAEDecode
  • 下游:VAEEncode / SaveImage / 下一个图像节点
  • 接线:接在 LoadImage 或 VAEDecode 之后,处理结果再交给 VAEEncode(重绘)、SaveImage(出图)或下一个图像节点;这类节点可以任意串联成处理流水线。

使用案例

属于「图像处理」类节点,向下游提供图像数据。从 images、factor(1.0) 开始填就能跑起来。典型接法:LoadImage → 本节点 → VAEEncode。输出类型是 IMAGE,只能接同类型的输入端口,颜色对不上就是接错了。

端口与连线示意

AdjustContrast 端口与连线示意

同类节点

调整亮度