Question

2. Gaussian Filter Create a function called gaussSample (filterSize) that accepts an input integer number. The input number should be either 3 or 5. If a user provides a non-supported input,

you get to decide how the program will behave. The program will apply the relevant gaussian filter below to our input image (illustrated below). 1/16 X 1 2 1 2 4 2 1 2 1 1/159 X 2 4 5 4 2 4 9 12 9 4 5 12 15 12 5 4 9 12 9 4 2 4 5 4 2 Remember that each destination pixel's color is calculated as a weighted average of its source's neighbors.

Question image 1