One application of spatial filtering is shape detection: finding
locations of objects with the desired shape.
Unlike frequency selective masks that are designed based
on the concept of frequency, shape detection masks are
derived from the shapes to be detected themselves.