Question: 5 Template Matching ( 2 0 points ) Figure 1 : Left: gray scale values of a ( 7 times 9 )

5 Template Matching (20 points)
Figure 1: Left: gray scale values of a \(7\times 9\) image. Right: gray scale values of a \(3\times 3\) template.
As shown in Figure 1, we have an image and a template. To determine which one of the three positions in the image indicated by the shaded pixels best matches the template, we can use either Sum of squared difference (SSD) or Normalized cross correlation (NCC). Do zero padding at the border if necessary.
1. Compute the sum of squared difference (SSD) at the three positions indicated by the shaded pixels. Explain which position is the best match. (10 points)
2. Compute the normalized cross correlation (NCC) at the three positions indicated by the shaded pixels. Explain which position is the best match. (10 points)
5 Template Matching ( 2 0 points ) Figure 1 :

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!