WrittenAssignment2Written Assignment 2Due in class on October 3, 9:30 AM. Late assignments will be accepted by the TAs until the answer key is posted. 1. Convolution BoundariesConvolve the following 1D signal: 0 0 0 6 6 6 0 0 0 4 4 4 0 0 0 2 2 2 0 0 0 4 4 4 with the kernel: 1/4 [1 2 1] in the following 2 ways:
2. Seperable and Squareable KernelsSome 2D filter kernels have a special property that they are separable. This means that they can be divided up into two 1D convolutions (one in each direction). Gaussians and binomials have this property. As it turns out, using the separated form is preferable (when it is possible) because it is much more efficient. Not only are there fewer operations, but the memory accesses are all in a "row" (often, it is best to implement things by grabbing a column out of the image into a row, computing the convolution, and then putting the row back into the column.
3. Downsampling FiltersWhen we downsample an image, we must be careful to do proper filtering to avoid aliasing. Too much, or too little filtering, and you'll get a bad result. Consider reducing an image by a factor of 3.
4. Reconstruction kernelsConsider the following sampled signal (you can assume it has zeros before and after): 0 0 5 5 4 4 3 2 1 5 1 0 Sketch the continuous reconstruction of this signal with:
5. Reconstruction kernelsConsider the following sampled signal (again, assume it has zeros before and after): 0 1 1 1 0 0 1 1 0 1 0 And resampling this to double the number of samples. What would the resulting sampled signal (this will be the 11 original samples and the 10 samples "in between") be if:
Why might you prefer one filter over the other? |