Morphological Operations - Implementation

I'm trying to learn how morphological erosions and dilations are programmed to work on grayscale images. Is there a reference you can point me towards for the method that is implemented in IP7?

Clayton
I'm leaning towards... "Fast computation of morphological Operations with arbitrary structuring elements" by Droogenbroeck and Talbot.