Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance image contrast using S-shaped curve for precise control over intensity values and contrast regions.
The SigmoidCorrection node is a powerful tool in image processing that applies a sigmoid function to adjust the contrast of images. This node is particularly useful for enhancing the visual quality of images by modifying the intensity values in a non-linear fashion. The sigmoid function is known for its S-shaped curve, which can effectively compress or expand the range of pixel values, thereby enhancing the contrast in specific regions of an image. This method is beneficial for highlighting details in images that might otherwise be lost in shadows or highlights. By adjusting the cutoff and gain parameters, you can control the midpoint and steepness of the sigmoid curve, allowing for precise control over the contrast enhancement process. This node is ideal for artists and designers looking to improve the visual impact of their images without delving into complex technical adjustments.
This parameter represents the input image(s) that you want to process. The node will apply the sigmoid correction to these images, enhancing their contrast based on the specified cutoff and gain values.
The cutoff parameter determines the midpoint of the sigmoid function. It controls the point at which the input values are centered, effectively setting the threshold for contrast adjustment. The default value is 0.5, with a minimum of 0.0 and a maximum of 1.0. Adjusting this value shifts the sigmoid curve along the intensity axis, allowing you to target specific tonal ranges for enhancement.
The gain parameter controls the steepness of the sigmoid curve, affecting how quickly the transition occurs around the cutoff point. A higher gain value results in a steeper curve, leading to more pronounced contrast changes. The default value is 5.0, with a minimum of 1.0 and a maximum of 10.0. By fine-tuning the gain, you can enhance subtle details or create more dramatic contrast effects in your images.
The output is the processed image(s) with enhanced contrast. The sigmoid correction modifies the intensity values based on the specified cutoff and gain, resulting in images that have improved visual clarity and detail. This output can be used directly in your projects or further processed with other nodes for additional effects.
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.