Question: Write a program in any language (but Matlab or C++ is preferred) that implements spatial convolution with a 3x3 Gaussian filter. Ignore the border effects.

Write a program in any language (but Matlab or C++ is preferred) that implements spatial convolution with a 3x3 Gaussian filter. Ignore the border effects.

INPUT: A gray level image of a checkerboard

OUTPUT: Execute convolution with a 3x3 Gaussian filter three times. The input for the second and third passes will be the output of the first and second passes, respectively. Ignore border effects. Before the first convolution and after each convolution, compute the total energy in the image. The output is:

The original image

The convolved image from each pass

The original energy total

The energy total after each convolution

Computer codes

CONSTRAINT: The convolution algorithm must be implemented from first principles the sum of weighted products. For other necessary functionality (reading, printing, conversions, etc.) you may use built-in functions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!