def execMorphologicalDilation(filteredImg, h=0.4): mask = filteredImg seed = filteredImg - h dilatedImg = reconstruction(seed, mask, method='dilation') return dilatedImg