Let’s recap the important points about spatial operators. Linear operators can be used to smooth images and determine gradients. Template matching can be used to find a face in a crowd. Non-linear operators such as rank filters can be used for noise removal, and mathematical morphology treats shapes according to their compatibility with a structuring element.