Docsity

Homework 4 - Computer Vision - Spring 2005 | CS 482, Assignments of Computer Science

Toggle sidebar
bg1
CS482 Homework 4, Spring 2005 (Due April 14)
J. Koˇseck´a
This exercise lets you examine the suitability of previously covered image/patch representations
for tracking.
Choose a template region in one of the initial frames of the video sequence and try to track it
in the remaining frames of the sequence. The template region should be around 20 ×20 pixels
(e.g. face of the person). The goal is to find the best matching region of the same size in the next
frame. In order to make the search more efficient, in the consecutive frames search only around
the previous position of the template (as opposed to exhaustively searching the whole image). For
matching represent the template by color histogram and use χ2distance between two histograms
to compute the score of the match. Report the results on the webpage and submit the hardcopy of
the code, with comments to me in class. Suggestion: Instead of color histogram methods covered
in class, you can compute the 1D chromaticity histogram of your color patch in the following way:
The chromaticity value (hue) can be calculated as:
H=arctan(Cb, Cr)/π −1≤H≤1 (1)
with (Y, Cb, Cr) defined as:
Y
Cb
Cr
=
0.2125 0.7154 0.0721
−0.1150 −0.3850 0.5000
0.5000 −0.45400 −0.0460
R
G
B
You can download the color image sequence from the course website.

Partial preview of the text

Download Homework 4 - Computer Vision - Spring 2005 | CS 482 and more Assignments Computer Science in PDF only on Docsity!

CS482 Homework 4, Spring 2005 (Due April 14) J. Koˇseck´a

This exercise lets you examine the suitability of previously covered image/patch representations for tracking.

Choose a template region in one of the initial frames of the video sequence and try to track it in the remaining frames of the sequence. The template region should be around 20 × 20 pixels (e.g. face of the person). The goal is to find the best matching region of the same size in the next frame. In order to make the search more efficient, in the consecutive frames search only around the previous position of the template (as opposed to exhaustively searching the whole image). For matching represent the template by color histogram and use χ^2 distance between two histograms to compute the score of the match. Report the results on the webpage and submit the hardcopy of the code, with comments to me in class. Suggestion: Instead of color histogram methods covered in class, you can compute the 1D chromaticity histogram of your color patch in the following way: The chromaticity value (hue) can be calculated as:

H = arctan(Cb, Cr)/π − 1 ≤ H ≤ 1 (1)

with (Y, Cb, Cr) defined as:

Y

Cb Cr

R

G

B

You can download the color image sequence from the course website.