# PA1 - should be re-sampled copy of half the width and...

This preview shows pages 1–2. Sign up to view the full content.

CAP5415 Computer Vision Programming Assignment # 1 1. Write a function Convolution(Image I, Kernel H) that has arguments a. Image I (Images may be of varying sizes and you may want to give the size as arguments. If you are using MATLAB, you can compute size within the function) b. Kernel H (Again, you should allow varying size Kernels) The output of function should be the convolution of I with H. Test your function and show results on the following Kernels. i. Averaging Kernel ( 3 3 × and 5 5 × ) ii. Gaussian Kernel ( 3 , 2 , 1 = σ ) Use ) 1 3 ( ) 1 3 ( + × + as size of Kernel (You may want to write a separate function to generate Gaussian Kernels for different values of ) iii. Roberts Edge Operators: ± ² ³ ´ µ - - 1 1 1 1 and ± ² ³ ´ µ - - 1 1 1 1 iv. Sobel Edge Operators ± ² ³ ³ ³ ´ µ - - - 1 2 1 0 0 0 1 2 1 and ± ² ³ ³ ³ ´ µ - - - 1 0 1 2 0 2 1 0 1 v. Prewitt Edge Operators ± ² ³ ³ ³ ´ µ - - - - 1 1 1 1 2 1 1 1 1 and ± ² ³ ³ ³ ´ µ - - - - 1 1 1 1 2 1 1 1 1 2. Write a function Reduce(Image I) that has an image as an input and the output

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: should be re-sampled copy of half the width and height of the input image. Use the two 1D gaussian kernels as discussed in class. 3. Write a function Expand(Image I) that has an image as an input and the output is the expanded copy of input image, twice the width and height of original image. 4. Use the Reduce function in (2) to write a function GaussianPyramids(Image I, Levels n ) that produces n levels of gaussian pyramid for image I. 5. Use the above functions to write a function LaplacianPyramids(Image I, Levels n ) that produces n levels of Laplacian pyramid of image I. Deliverables: 1. Report including Input and Output images (Soft Copy) 2. Code (Soft copy) Send your assignments by email to [email protected] . Submission Deadline: February 11, 2003 (23:59)...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

PA1 - should be re-sampled copy of half the width and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online