20105ee211A_1_ComputerAssignment2Comments

20105ee211A_1_ComputerAssignment2Comments - EE 211A Fall...

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

View Full Document Right Arrow Icon
1 EE 211A Digital Image Processing I Fall Quarter, 2010 Handout 14 Instructor: John Villasenor Comments on Computer Assignment 2 1. The IIR filter can be implemented using the following code. The input ) , ( n m x is stored in image_input[][] and the output ) , ( n m y is stored in image_float[][] . The boundary conditions are assured by checking the array indices and setting the output to zero if they are negative. /* Compute the recursion */ for(row = 0; row < image_size; row++) { for(column = 0; column < image_size; column++) { if(row - 1 < 0) { c1 = 0.0; } else { c1 = a * image_float[row - 1][column]; } if((row - 1 < 0) || (column - 1 < 0)) { c2 = 0.0; } else { c2 = b * image_float[row - 1][column - 1]; } image_float[row][column] = c1 + c2 + image_input[row][column]; } } 2. The effect of the IIR filter is to blur the image. The blurring occurs in the direction associated with the largest values of the impulse response. A more
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/19/2011 for the course EE 211A taught by Professor Villasenor during the Fall '10 term at UCLA.

Page1 / 2

20105ee211A_1_ComputerAssignment2Comments - EE 211A Fall...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online