

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The instructions for homework 6 in the computer science course cmsc 426, due on may 4, 2005. The homework covers topics such as bayes' rule for animal classification, geometric transforms for image processing, and the lukas-kanade optical flow algorithm. Students are required to explain the use of bayes' rule for weight-based animal classification, develop programs for rotation, change of scale, and affine transforms with brightness interpolation, and implement the lukas-kanade optical flow algorithm.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


CMSC 426 Homework 6 Due May 4 Spring 05
Explain how Bayes’ rule can be used to classify an unknown animal having weight 35 pounds given the prior and conditional probabilities defined above.
x0 = T x (x, y) y0 = T y (x, y)
Geometric transformations of images are usually implemented in two steps. First for a point (x0, y0) we find from the inverse transform T −^1 the corresponding point (x, y). Second, since x and y are not integers, we need to estimate the brightness value at (x, y) by interpolation (from neighboring integer points).
Explain why you think the transforms are implemented in this way.
Develop programs for the following geometric transforms: (a) Rotation (b) Change of scale (c) Affine transform calculated from three pairs of corresponding points. Recall an affine transform is defined as x 0 = a 0 + a 1 x + a 2 y y 0 = b 0 + b 1 x + b 2 y For each of the above transforms, implement the following two brightness interpolation approaches:
Run your algorithms on a picture of your choice. Print the code. Print your results for (a) Scaling by a factor 3 (b) An affine transform with points A = (1, 0),B = (−1, 0),C = (0,p3) mapping to points A0 =(1.9, 0),B0 = (−0.5, 0),C0 = (0, 1) using bi-linear interpolation.