MCPcopy
hub / github.com/opensheetmusicdisplay/opensheetmusicdisplay / compareImages.mjs

File compareImages.mjs

test/performance/compareImages.mjs:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Compares two directories of rendered PNGs (baseline vs new) pixel-wise.
2// Usage: node test/performance/compareImages.mjs <dirA> <dirB> [diffThreshold] [maxDiffImages]
3// Writes red-overlay diff images for the worst offenders next to dirB as *_DIFF.png.
4import FS from "fs";

Callers

nothing calls this directly

Calls 6

sortMethod · 0.80
logMethod · 0.80
equalsMethod · 0.80
pushMethod · 0.80
floorMethod · 0.80
getContextMethod · 0.45

Tested by

no test coverage detected