FWIW, I wrote a version of the comparison in Go that does the entire comparison in-memory, without shelling out to any program. I did this because it parallelized much better (ie. is faster), but it also means you can easily test alternative algorithms.
See here: https://github.com/hanwen/lilypond-ci/blob/master/cmd/compare/main.go Given the example you cite, maybe calculating optical flow would let you detect and filter general motion of objects between two frames, but from a quick look, it seems involved. On Sat, Jul 27, 2024 at 6:56 PM Werner LEMBERG <w...@gnu.org> wrote: > > > I've posted a question on StackExchange, searching for a better > regtest comparison algorithm > > > https://computergraphics.stackexchange.com/questions/14143/search-for-special-image-difference-metric > > > Werner > -- Han-Wen Nienhuys - hanw...@gmail.com - http://www.xs4all.nl/~hanwen