Compare images
VisionConfigured target required
vision.compare-imagesMeasure 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 image
beforeImage Baseline image.
RequiredDefault:None- After image
afterImage Image compared with the baseline.
RequiredDefault:None- Comparison region
regionRegion 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 size
grid-sizeInteger Box-average grid width and height, from 1 to 256.
Default availableDefault:32- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Cell delta
cell-deltaInteger Per-channel 8-bit difference required to count a grid cell as changed.
Default availableDefault:12- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042
Data outputs 2
- Changed ratio
changed-ratioNumber Fraction of grid cells whose maximum channel delta exceeds the threshold.
- Mean difference
mean-differenceNumber Mean absolute channel difference normalized to 0–1.
Version and node identity
Version 1.0.0
sha256:0b0e2ff3a6b7378941ee7846bb9486e7c9a93b1e02896eb055d0d1f45c023276