Morphology fundamentals consist of erosion and dilation, which are basic morphological operations. Erosion removes pixels from object boundaries, shrinking object sizes and enlarging holes. Dilation adds pixels to boundaries, enlarging object sizes and shrinking holes. Both operations use a structuring element to determine how many pixels are added or removed. Erosion compares the structuring element to the image, removing pixels where it is not contained. Dilation compares overlaps, adding pixels where the structuring element and image overlap by at least one element.