Question: Write the code only UNDER WRITE THE CODE HERE, do not create new functions Problem 5 . 2 : Naive Matching [ 8 points ]

Write the code only UNDER WRITE THE CODE HERE, do not create new functions Problem 5.2: Naive Matching [8 points] this, namely, for each corner in image1, find the best match from the detected corners in image2(or, if the NCC match score is too low, then return no match for that point).
Write a function and call it as below. Examine your results for 20 detected corners in each image.
Note: Your matches may not be perfect.
```
def naive_matching(img1, img2, corners1, corners2, R, NCCth):
"""
Compute NCC given two windows.
Args:
img1: Image 1.
img2: Image 2.
corners1: Corners in image 1(nx2)
corners2: Corners in image 2(nx2)
R: NCC matching radius
NCCth: NCC matching score threshold
Returns:
matching: NCC matching returns a list of tuple (c1, c2),
c1 is the 1x2 corner location in image 1,
c2 is the 1x2 corner location in image 2.
"""
### YOUR CODE HERE
raise NotImplementedError("Delete this line once you implement the function")
### END YOUR CODE
return matching
```
Write the code only UNDER WRITE THE CODE HERE, do

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!