Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 . 1 5 The implementation of linear spatial filters requires moving the center of a mask throughout an image and, at each location, computing
The implementation of linear spatial filters requires moving the center of a
mask throughout an image and, at each location, computing the sum of products
of the mask coefficients with the corresponding pixels at that location see
Section A lowpass filter can be implemented by setting all coefficients to
allowing use of a socalled boxfilter or movingaverage algorithm, which con
sists of updating only the part of the computation that changes from one loca
tion to the next.
a Formulate such an algorithm for an filter, showing the nature of the
computations involved and the scanning sequence used for moving the
mask around the image.
b The ratio of the number of computations performed by a bruteforce imple
mentation to the number of computations performed by the boxfilter algo
rithm is called the computational advantage. Obtain the computational
advantage in this case and plot it as a function of for The scal
ing factor is common to both approaches, so you need not consider it in ob
taining the computational advantage. Assume that the image has an outer
border of zeros that is wide enough to allow you to ignore border effects in
your analysis.
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