This document provides an overview of mathematical morphology and its applications to image processing. It discusses basic concepts like dilation, erosion, opening, closing and their properties. It also covers algorithms for tasks like boundary extraction, region filling, thinning and skeletonization. Grayscale morphology is introduced, including dilation, erosion and other operations on grayscale images. Some common applications are described, such as morphological smoothing, gradient calculation, top-hat transforms and textural segmentation.