Starting from:

$35

CSE 573 -Project 1 Solved







1        Image Filtering [5 points]
The goal of this task is to experiment with image filtering, and familiarize you with tricks, e.g., padding, commonly used by computer vision practitioners. Specifically, the task is to perform image smoothing and image sharpening using a low-pass filter and a high-pass filter shown in Table 1. You are required to implement all the functions that are labelled with “ #TODO” in “task1.py”. In “task1.py”, we not only provide hints to you, but also provide utility functions that could be used as building blocks for you to complete this task. In order to make it easier for you to validate the correctness of your code, we provide two examples for image smoothing and image sharpening respectively. The examples are store in “./results/” and are named as “low-pass.jpg” and “high-pass.jpg”. Your code should be able to generate images that are identical to those stored in “./results/” (Note that images in “./results/” are provide to you for reference only. At test time, a different image will be used as input and the correct output images will be different from those already stored in “./results/”). Detailed information and image data can be found at our course website on Piazza.

1/16
1/8
1/16
 
-1/9
-1/9
-1/9
1/8
1/4
1/8
-1/9
17/9
-1/9
1/16
1/8
1/16
-1/9
-1/9
-1/9
Table 1: The low-pass filter (left) and the high-pass filter (right) used in this project.

2        Template Matching [5 points]
The goal of this task is to experiment with template matching algorithms, i.e., normalized cross correlation (NCC). Specifically, the task is to locate a given image patch in a large image. You are required to implement a function named “match” in “task2.py”, which detects a patch in an image. The function “match” takes an image and a patch as inputs and returns the coordinates that the patch appears. Detailed information and image data can be found at our course website on Piazza.


More products