Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
