中文
Node Documentation

Compare images

VisionConfigured target requiredvision.compare-images

Measure visual difference between two explicit images on the same logical region.

Example use

Compare the same region before and after an action to measure visual change.

Node preview

Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.

Loading node preview…

Data inputs 5

Before imagebeforeImage

Baseline image.

RequiredDefault: None
After imageafterImage

Image compared with the baseline.

RequiredDefault: None
Comparison regionregionRegion

Same ratio or pixel region resolved independently in both images.

Default availableDefault: {"height":1,"unit":"ratio","width":1,"x":0,"y":0}
Value format examples
{"height":0.5,"unit":"ratio","width":0.5,"x":0.25,"y":0.25}
Grid sizegrid-sizeInteger

Box-average grid width and height, from 1 to 256.

Default availableDefault: 32
  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42
Cell deltacell-deltaInteger

Per-channel 8-bit difference required to count a grid cell as changed.

Default availableDefault: 12
  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42

Data outputs 2

Changed ratiochanged-ratioNumber

Fraction of grid cells whose maximum channel delta exceeds the threshold.

Mean differencemean-differenceNumber

Mean absolute channel difference normalized to 0–1.

Version and node identity

Version 1.0.0

sha256:0b0e2ff3a6b7378941ee7846bb9486e7c9a93b1e02896eb055d0d1f45c023276