Shape Representation and Classification through Morphology