# Template Matching

*Module of the free GPU.js GPGPU course · 5 tasks*

Finding a patch in a picture — and why a raw difference score is fooled by a light switch.

## Tasks

1. [Score Every Position at Once](https://gpu.rocks/learn/template-matching-f57b4bed/1.md)
2. [The Score That Lies](https://gpu.rocks/learn/template-matching-f57b4bed/2.md)
3. [Normalize It](https://gpu.rocks/learn/template-matching-f57b4bed/3.md)
4. [Hoist What Never Changes](https://gpu.rocks/learn/template-matching-f57b4bed/4.md)
5. [Payoff: Present or Absent?](https://gpu.rocks/learn/template-matching-f57b4bed/5.md)

---

Interactive version: https://gpu.rocks/learn/template-matching-f57b4bed
