def _default_selem(ndim):
 return ndi.morphology.generate_binary_structure(ndim, 1)

def _default_selem ( ndim ) : return ndi . morphology . generate_binary_structure ( ndim , 1 )
decorator to add a default structuring element to morphology functions .