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.
scipy.ndimage.morphology.grey_opening
scipy.ndimage.morphology.morphological_gradient