What is Nostr?
Adrian Cochrane /
npub1j5r…z5md
2023-12-30 20:10:15
in reply to nevent1q…vfhe

Adrian Cochrane on Nostr: Any interested mathematicians: Please clarify why this works? An efficient means of ...

Any interested mathematicians: Please clarify why this works?

An efficient means of computing this "image cross-correlation" task is to convert the 2 frames into frequency-space using a Fast-Fourier Transform. With little more than a component-wise multiply & conversion back to signal-space gives us rankings for how close of a match each shift is! All that's left is to iterate over them to find the top-ranked coordinate & sum into the counter registers queried by the main CPU.

2/5?
Author Public Key
npub1j5rg8epzgjyu79yt2vq0hs3gx4lwfymxstsd99wcjnu0r57de39q0uz5md