Starting from:

$25

CENG391 -  Introduction to Image Understanding - Homework 4 - Solved

Exercise 1 Image Processing and Feature Detection (40 points)
Please do the following exercises by a single Python script named as src/detect  and match.py. You may use OpenCV for feature detection and descriptor computation.

a.     Detect SIFT interest points on the six images of the Golden GateBridge that are in the folder data.

b.    Draw the SIFT interest points on each image and store the result-ing images in the same folder with names as sift keypoints  i.png, where i is the image number.

c.     Calculate SIFT descriptor matches between consecutive pairs of im-

ages by brute force matching, for example between goldengate-00.png and goldengate-01.png, between goldengate-01.png and goldengate-02.png, and so on.

d.    Draw these tentative correspondences on a match image and save theresulting images in the same folder with names as tentative correspondences i-j.png, where i and j are image numbers.

e.     Save the SIFT interest points, descriptors, and tentative correspon-dences as text files in the same folder with names as sift i.txt and tentative correspondences i-j.txt.

1

         Exercise 2            RANSAC (40 points)
Please do the following exercises by a single Python script named as src/ransac.py. You may use OpenCV for homography computation with RANSAC.

a.     Read the keypoints and tentative correspondences for each image pairand match them by RANSAC.

b.    You may use RANSAC from OpenCV, implement RANSAC yourselffor 10 bonus points.

c.     Save the resulting homography matrices in files within the folder data with names such as h i-j.txt, where i and j are image numbers.

d.    Do not forget about normalization and the final estimation over allinliers. You may optionally perform guided matching.

e.     Draw and save the resulting final inlier correspondences in files in the

data folder with names as inliers i-j.png and inliers i-j.txt.

         Exercise 3           Basic Stitching (20 points)
Please do the following exercises by a single Python script named as src/stitch.py. You may use OpenCV function warp perspective for image warping.

a.     Stitch all the images by calculating a homography matrix from eachimage to one of the center images goldengate-02.png or goldengate-03.png and warping the images to this coordinate system.

b.    Save the resulting image in the folder data named as panorama.png.

c.     To blend multiple images just overwrite or average intensities of over-

lapping pixels.

More products