Cleaning Masks With Morphology

A threshold can leave speckles and gaps. We can test a small shape against the mask to remove or connect particular structures, provided we understand what else that operation will change.

13 sections · 4 questions · 2 coding challenges

1 / 13

Measuring Shapes in Mineral Images

BOTIE

Matheron and Serra's account traces mathematical morphology to their work in 1964 on the structure of mineral samples. Knowing the amount of a material was not enough; its spatial distribution and sizes mattered. They investigated how chosen shapes could probe the structures in an image.

The shape used to probe an image is a structuring element, also called a footprint. Its geometry determines what an operation considers small, connected, or wide enough. Our seed mask is an invented example of that idea, not a claim that one footprint can distinguish all noise from all objects.

Sources for this history