Mathematical morphology in image processing mac