 Since the Prewitt kernels can be decomposed as the products of an averaging and a differentiation
kernel, they compute the gradient with smoothing.Therefore, it is a separable filter.For example, formula_2 can be written as

The "x"-coordinate is defined here as increasing in the "left"-direction, and the "y"-coordinate is defined as increasing in the "up"-direction.