scipy.ndimage.morphology.iterate_structure

scipy.ndimage.morphology.iterate_structure(structure, iterations, origin=None)

Iterate a structure by dilating it with itself.

If origin is None, only the iterated structure is returned. If not, a tuple of the iterated structure and the modified origin is returned.