cupyx.scipy.ndimage.iterate_structure#
- cupyx.scipy.ndimage.iterate_structure(structure, iterations, origin=None)[source]#
Iterate a structure by dilating it with itself.
- Parameters
structure (array_like) – Structuring element (an array of bools, for example), to be dilated with itself.
iterations (int) – The number of dilations performed on the structure with itself.
origin (int or tuple of int, optional) – If origin is None, only the iterated structure is returned. If not, a tuple of the iterated structure and the modified origin is returned.
- Returns
A new structuring element obtained by dilating
structure
(iterations
- 1) times with itself.- Return type
See also