Assignment 1 CS 4186 computer Vision and Image processing

$30.00

Download Details:

  • Name: Assignment1-wj0jpy.zip
  • Type: zip
  • Size: 1.07 MB

Category:

Description

5/5 - (1 vote)

Part-1: Convolution

Following below to generate a filter bank of 48 image filters, each with size  pixels:

o     4 Gaussian filters with .

o     8 LOG (Laplacian of Gaussian) filters with .

o     18 x-directional first derivation of Gaussian filters with  and  in three different scales  and six different orientations .

o     18 x-directional second derivation of Gaussian filters with  and  in three different scales  and six different orientations .

A.     Display the 48 image filters in the report.                                                                       (15%)

B.     Display the 48 image responses of colosseum.jpg and panda.jpg after performing convolution with the filter bank.                                                                                        (15%)

C.      Compute the mean and variance of each image response to form a vector of length 96 elements. Write down the filter that gives the largest value of mean and the filter that gives the largest value of variance for colosseum.jpg and panda.jpg in the report.                                                                                                                                                                        (10%)

The equations of different filters are given as below:

Gaussian filter:

1st derivative of Gaussian filter:

2nd derivative of Gaussian filter:

Laplacian of Gaussian (LoG):

Part-2: IMage ranking

You are given a collection of 20 images and 2 query images (in the canvas). Your need to extract visual feature from these images by performance convolution with the 48 filters in PART-A, and complete the following:

  1. For each query, retrieve the five most similar images from the collection of 20 images, show them in descending order of similarity score in the report. Compute the similarity score by using Euclidean distance for query 1 (panda.jpg) and Cosine similarity for query 2 (colosseum.jpg).

Euclidean distance between query  and image :

Cosine similarity between query  and image :

(20%)

  1. Implement color histogram and repeat (A) to show the five most similar images of each query.                                                                                                                         (30%)

Submission

Report itself will carry 10% marks. Please zip the followings and submit to Canvas:

  • Computer program: You can use any versions of Python 2 or Python 3.
  • Report

Deadline

The submission should be done before 25-Feb, 11:59pm.

Penalty on late submission: 20% of marks will be deducted per day. No submission will be allowed after five days from the deadline. Do NOT copy code from the internet and do not borrow other people’s code. Remember than PLAGIARISM is a serious offense for which you may fail the class or even be expelled from the university.

Contact person

Please email Teaching Assistant Alan (Email: tnguyenhu2-c@my.cityu.edu.hk) for technical question.