The spatial filtering on the whole image is given by:
Move the mask over the image at each location.
Compute sum of products between the mask coefficeints
and pixels inside subimage under the mask.
Store the results at the corresponding pixels of the
output image.
Move the mask to the next location and go to step 2
until all pixel locations have been used.