{ } Raw JSON

bundles / skimage latest / skimage / morphology / footprints / pad_footprint

function

skimage.morphology.footprints:pad_footprint

source: /dev/scikit-image/src/skimage/morphology/footprints.py :1062

Signature

def   pad_footprint ( footprint * pad_end = True )

Summary

Pad the footprint to an odd size along each dimension.

Parameters

footprint : ndarray or tuple

The input footprint or sequence of footprints

pad_end : bool, optional

If True, pads at the end of each dimension (right side), otherwise pads on the front (left side).

Returns

padded : ndarray or tuple

The footprint, padded to an odd size along each dimension.

Examples

footprint = np.array([[0, 0],
                      [1, 1],
                      [1, 1]], np.uint8)
pad_footprint(footprint)

Aliases

  • skimage.morphology.pad_footprint

Referenced by