The convolution operation is a mathematical operation which
takes two functions f(x) and g(x) and produces a third function
h(x). Mathematically, convolution is defined as:
g(x) is referred to as the filter. The integral only needs to
be evaluated over the range where is nonzero (called the
support of the filter).[14]
In spatial domain image processing, we discretize the convolution
operation. f(x) becomes an array of pixels F[x]. The kernel
g(x) is an array of values G[0...(width-1)] (we assume finite
support). Equation 7 becomes: