ComfyUI > Nodes > ComfyUI-StableXWrapper > Extract Difference

ComfyUI Node: Extract Difference

Class Name

DifferenceExtractorNode

Category
iStableXWrapper
Author
kijai (Account age: 2440days)
Extension
ComfyUI-StableXWrapper
Latest Updated
2025-01-31
Github Stars
0.04K

How to Install ComfyUI-StableXWrapper

Install this extension via the ComfyUI Manager by searching for ComfyUI-StableXWrapper
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-StableXWrapper in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Extract Difference Description

Analyze and highlight luminosity differences between images for artists and designers, aiding in image processing evaluation.

Extract Difference:

The DifferenceExtractorNode is designed to analyze and highlight the differences in luminosity between two images, typically an original and a processed version. This node is particularly useful for artists and designers who want to understand the impact of image processing techniques on the brightness and contrast of their images. By converting both images to a luminosity representation, it calculates the difference and amplifies it based on user input, allowing for a detailed examination of changes. This can be beneficial for tasks such as quality assessment, enhancement verification, or artistic effect analysis, providing a clear visual representation of how processing has altered the image's luminosity.

Extract Difference Input Parameters:

original_image

The original_image parameter represents the initial image before any processing has been applied. It serves as the baseline for comparison and is crucial for determining the changes in luminosity. This parameter is expected to be in an image format compatible with the node's processing capabilities.

processed_image

The processed_image parameter is the image that has undergone processing or transformation. It is compared against the original_image to extract the differences in luminosity. This parameter should be in the same format and dimensions as the original_image to ensure accurate comparison.

amplification

The amplification parameter controls the degree to which the luminosity differences are emphasized in the output. It is a float value with a default of 1.0, allowing for subtle or pronounced differences based on user preference. The minimum value is 0.1, and the maximum is 10.0, providing flexibility in how much the differences are highlighted.

Extract Difference Output Parameters:

IMAGE

The output is an IMAGE that visually represents the differences in luminosity between the original and processed images. Each pixel's value indicates the magnitude of change, with higher values showing more significant differences. This output can be used to assess the impact of processing techniques or to create artistic effects by highlighting specific changes in brightness.

Extract Difference Usage Tips:

  • To achieve a more pronounced visualization of differences, increase the amplification parameter, but be cautious of setting it too high as it may exaggerate minor changes.
  • Ensure that both original_image and processed_image are of the same dimensions and format to avoid discrepancies in the output.

Extract Difference Common Errors and Solutions:

Mismatched Image Dimensions

  • Explanation: The original_image and processed_image have different dimensions, leading to an error during processing.
  • Solution: Ensure both images are resized to the same dimensions before inputting them into the node.

Invalid Amplification Value

  • Explanation: The amplification value is set outside the allowed range (0.1 to 10.0).
  • Solution: Adjust the amplification parameter to be within the specified range to avoid errors and ensure proper functionality.

Extract Difference Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-StableXWrapper
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

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.