Week 12 • Thursday

Block 118: Template Matching

Find a pattern or sub-image within a larger image.

Concepts

Code Examples

See exercise below.

Exercise

Create a small patch from an image and find it using template matching. Draw a rectangle around all matches above a threshold (multi-match).

Homework

What are the main limitations of template matching? When would you need a more powerful approach? Friday