skimage2.morphology.mirror_footprint#
- skimage2.morphology.mirror_footprint(footprint)[source]#
Mirror each dimension in the (decomposed) footprint.
Can mirror decomposed footprints which consist of a sequence of footprints and their repetitions.
- Parameters:
- footprintndarray or tuple
The input footprint or a sequence of footprints.
- Returns:
- invertedndarray or tuple
The footprint, mirrored along each dimension.
See also
pad_footprintPad the (decomposed) footprint to an odd size along each dimension.
Examples
>>> footprint = np.array([[0, 0, 0], ... [0, 1, 1], ... [0, 1, 1]], np.uint8) >>> mirror_footprint(footprint) array([[1, 1, 0], [1, 1, 0], [0, 0, 0]], dtype=uint8)