Digital images are arrays of pixel values. Many useful image effects can be created by moving a small matrix (a kernel or filter) over an image. At each position, corresponding values are multiplied ...