Feb 21 Informal Response (Convolution and Pooling)

Question A (Convolution)

The image I selected is a photo of buildings, as shown below:

Building

The first filter I selected is the in-class filter:

filter1

The resulting image is:

filter1

This filter accentuates the vertical boundaries in the image. Because the image mainly consists of vertical edges, this filters works very well.

The second filter I selected is the following:

filter2

The resulting image is:

filter2

This filter accentuates the horizontal boundaries in the image. Because the main building in the image does not include many horizontal edges, this filter does not give a good result.

The third filter I selected is the following:

filter3

The resulting image is:

filter3

This filter accentuates the top-left to bottom-right diagonal boundaries in the image. Because the image includes many diagonal edges in this direction, this filter also works very well.

Functionally, the filters alter the value of each pixel by weighting and adding up its and its neighbors’ values.

Convolving filters are important because they can help detect the outlines of objects.

Question B (Pooling)

Next I modify the output from the third filter with pooling, the resulting image is:

pooling

The resulting image seem to successfully further emphasize the edges. The provided pooling filter is maximizing, i.e., the pixel with the highest value in a 2 by 2 matrix of pixels is selected. The resulting image reduced in size

This method is useful because a) it reduces the size of the image for ease of computation and storage and b) it further emphasize the effects of the filter.

Bonus Question (Convolution Calculation)

The result of the convolution is:

convolution

Script

The script of this response can be found here.