A Logical Perspective on Mathematical Morphology A MsC Thesis in Artificial Intelligence Brammert Ottens supervisors Marco Aiello Rein van den Boomgaard February 2, 2007