Template matching
• Metrics
• Sum of Square differences
R(x, y) =
x′,y′
(T(x′, y′) − I(x + x′, y + y′))2
R(x, y) = x′,y′
(T(x′, y′) − I(x + x′, y + y′))2
x′,y′
T(x′, y′)2 ·
x′,y′
I(x + x′, y + y′)2
• Cross-correlation
R(x, y) =
x′,y′
(T(x′, y′) · I(x + x′, y + y′))
R(x, y) = x′,y′
(T(x′, y′) · I(x + x′, y + y′))
x′,y′
T(x′, y′)2 ·
x′,y′
I(x + x′, y + y′)2
NHSM - 4th year: Computer vision - Introduction (Week 1) - M. Hachama (
[email protected]) 24/22