Morphological erosion and dilation functions

Two functions are added to support the two necessary and sufficient morphological operations: erosion and dilation.

image.erode(im,kern,pad)
image.dilate(im,kern,pad)

Only binary images (with values 1 and 0) and kernels are supported.