Structuring elements are used in morphological operations to define the shape and size of the neighborhood for processing.