Practice: Convolution Examples#

Question 0#

What is the result of applying a convolution using this kernel on this image? Select the option the matches your answer.

3 by 3 image on the left filling in value 1 to 9 from left to right, top to bottom. 2 by 2 kernel on the right with value 1, 1 on the first row and 0, 2 on the second row.

Your Task

Select one option. Write your answer down in your own space.

Option 0

Option A

2 by 2 result with value 5, 18 on the first row, 14, 17 on the second row.

Option 1

Option B

2 by 3 result with value 9, 12, 15 on the first row, 18, 21, 24 on the second row.

Option 2

Option C

3 by 2 result with value 5, 8 on the first row, 14, 17 on the second row, and 23, 26 on the third row.

Option 3

Option D

3 by 3 result with value 5, 8, 3 on the first row, 14, 17, 6 on the second row, and 23, 26, 9 on the third row.

Option 4

None of the above

Question 1#

Suppose I had an image with shape (6, 5) and a kernel with shape (2, 3). Using this sliding window algorithm to do a convolution, how many rows will the result have?

Your Task

Write your answer down in your own space.

Question 2#

Suppose I had an image with shape (6, 5) and a kernel with shape (2, 3). Using this sliding window algorithm to do a convolution, how many columns will the result have?

Your Task

Write your answer down in your own space.