0% found this document useful (0 votes)
3 views1 page

Assign1 Spring 2025

The homework assignment for Computer Vision requires students to implement an image filtering function that supports grayscale images and arbitrary odd-shaped filters. Students must pad the input image, apply various smoothing and sharpening filters, and ensure the output image maintains the same resolution as the input. The final submission includes a source file with code and a report with filtered images, due by March 9th, 2025.

Uploaded by

hmny5504
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Assign1 Spring 2025

The homework assignment for Computer Vision requires students to implement an image filtering function that supports grayscale images and arbitrary odd-shaped filters. Students must pad the input image, apply various smoothing and sharpening filters, and ensure the output image maintains the same resolution as the input. The final submission includes a source file with code and a report with filtered images, due by March 9th, 2025.

Uploaded by

hmny5504
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Homework 1

Computer Vision (Spring 2025)

The purpose of this homework is to write an image filtering function to apply on input images. Image
filtering (or convolution) is a fundamental image processing tool to modify the image with some
smoothing or sharpening affect. You will be writing your own function to implement image filtering
from scratch. More specifically, you will implement a filter( ) function that should conform to the
following:

(1) support grayscale images,

(2) support arbitrarily shaped filters where both dimensions are odd (e.g., 3 × 3 filters, 5 × 5 filters),

(3) pad the input image with the same pixels as in the outer row and columns, and

(4) return a filtered image which is the same resolution as the input image.

You should read a color image and then convert it to grayscale. Then define different types of
smoothing and sharpening filters such as box, sobel, etc. Before you apply the filter on the image
matrix, apply padding operation on the image so that after filtering, the output filtered image
resolution remains the same. (Please refer to the end the basic image processing notebook file
that we used in the class to see how you can pad an image)

Then you should use nested loops (two for loops for row and column) for filtering operation by
matrix multiplication and addition (using image window and filter). Once filtering is completed,
display the filtered image.

Please use any image for experiment.

Submission
You should submit (using Blackboard link) the source file which includes the code (Jupiter
notebook) and a report containing different filters and corresponding filtered images.

Deadline: March 9th, Sunday, by End of the day.

You might also like