ComfyUI  >  Nodes  >  MTB Nodes >  Image Compare (mtb)

ComfyUI Node: Image Compare (mtb)

Class Name

Image Compare (mtb)

Category
mtb/image
Author
melMass (Account age: 3754 days)
Extension
MTB Nodes
Latest Updated
7/2/2024
Github Stars
0.3K

How to Install MTB Nodes

Install this extension via the ComfyUI Manager by searching for  MTB Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter MTB Nodes 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Compare (mtb) Description

Node for comparing images, highlighting differences or blending them, with multiple modes for AI artists and image manipulation tasks.

Image Compare (mtb):

The Image Compare (mtb) node is designed to compare two images and generate a resultant image that highlights their differences or blends them together based on the selected mode. This node is particularly useful for AI artists who need to analyze variations between images, create composite images, or visualize changes. By offering multiple comparison modes, such as "diff", "blend", and "checkerboard", it provides flexibility in how the images are compared and presented. The node leverages advanced image processing techniques to ensure accurate and visually meaningful results, making it an essential tool for creative and analytical tasks in image manipulation.

Image Compare (mtb) Input Parameters:

imageA

This parameter represents the first image to be compared. It is a required input and should be provided in the form of an image tensor. The quality and content of this image will directly impact the comparison results.

imageB

This parameter represents the second image to be compared against the first image (imageA). It is also a required input and should be provided as an image tensor. Any differences or similarities between this image and imageA will be highlighted based on the selected comparison mode.

mode

The mode parameter determines the method used to compare the two images. It accepts three options: "checkerboard", "diff", and "blend". The "checkerboard" mode creates a checkerboard pattern combining both images, the "diff" mode calculates the absolute difference between the images, and the "blend" mode averages the two images. The default value is "checkerboard". The choice of mode affects the visual representation of the comparison and can be selected based on the specific needs of the task.

Image Compare (mtb) Output Parameters:

IMAGE

The output is a single image tensor that represents the result of the comparison between imageA and imageB based on the selected mode. This output image can be used for further analysis, visualization, or as part of a larger image processing workflow. The content of this image will vary depending on the chosen comparison mode, highlighting differences, blending features, or creating a composite pattern.

Image Compare (mtb) Usage Tips:

  • To highlight differences between two images, use the "diff" mode, which will generate an image showing the absolute differences in pixel values.
  • For a smooth blend of two images, select the "blend" mode, which averages the pixel values of both images, creating a seamless composite.
  • The "checkerboard" mode is useful for visualizing how two images align or differ in a patterned manner, making it easier to spot specific areas of change.

Image Compare (mtb) Common Errors and Solutions:

Unknown mode {mode}

  • Explanation: This error occurs when an invalid mode is provided to the node.
  • Solution: Ensure that the mode parameter is set to one of the following valid options: "checkerboard", "diff", or "blend".

Mismatched image dimensions

  • Explanation: This error happens when the input images (imageA and imageB) have different dimensions or channel counts.
  • Solution: Make sure both images have the same dimensions and channel counts. If one image is RGB and the other is RGBA, the node will automatically handle the mismatch by adding an alpha channel to the RGB image.

Image Compare (mtb) Related Nodes

Go back to the extension to check out more related nodes.
MTB Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.