Structure Characterization Using Mathematical Morphology