-
Notifications
You must be signed in to change notification settings - Fork 1
Images Pixels Compare
github-actions[bot] edited this page Aug 15, 2026
·
4 revisions
Back to Wiki Home
The Images Pixels Compare node compares two input images at the pixel level to check whether they are exactly the same, and outputs a boolean value.
-
Class name:
zyd232 ImagesPixelsCompare -
Category:
zyd232 Nodes -
Output:
BOOLEAN
| Input | Type | Description |
|---|---|---|
| image1 | IMAGE |
First image to compare |
| image2 | IMAGE |
Second image to compare |
| if_same_output | BOOLEAN |
Output logic switch (default true) |
| Output | Type | Description |
|---|---|---|
| BOOLEAN | BOOLEAN |
Comparison result |
The node compares all pixel values of the two images to check if they are identical:
- When
if_same_output = true, it outputstrueif the two images are identical,falseif they differ. - When
if_same_output = false, the output logic is inverted: it outputstrueif the two images differ,falseif they are identical.
If the two images have different shapes (sizes), the node cannot compare pixel by pixel. In that case it returns based on the switch:
-
if_same_output = true→ returnsfalse(treated as different) -
if_same_output = false→ returnstrue(treated as different)
Useful for workflow control, for example:
- Determine whether the output image of a step has changed, to decide whether to continue downstream processing.
- Combine with the
if_same_outputswitch to implement "if same, do A; if different, do B" branching logic.
Back to Wiki Home