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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started