Mathematical Morphology: Theory and Hardware