torch/image — pull request #1 by zhangxiangxiao (2013-07-16 06:51:22+00:00)
Title: 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.