diff --git a/skimage/_shared/interpolation.pyx b/skimage/_shared/interpolation.pyx index f5110480..583fe43c 100644 --- a/skimage/_shared/interpolation.pyx +++ b/skimage/_shared/interpolation.pyx @@ -5,13 +5,13 @@ from .utils import _mode_deprecations def coord_map_py(Py_ssize_t dim, long coord, mode): - """ interpolation.coord_map python wrapper """ + """interpolation.coord_map python wrapper""" cdef char mode_c = ord(mode[0].upper()) return coord_map(dim, coord, mode_c) def extend_image(image, pad=10, mode='constant', cval=0): - """ Pad a 2D image by ``pad`` pixels on each side. + """Pad a 2D image by ``pad`` pixels on each side. Parameters ---------- diff --git a/skimage/transform/_warps.py b/skimage/transform/_warps.py index 02d66d91..830c98ed 100644 --- a/skimage/transform/_warps.py +++ b/skimage/transform/_warps.py @@ -64,7 +64,7 @@ def resize(image, output_shape, order=1, mode='constant', cval=0, clip=True, Note ---- Modes 'reflect' and 'symmetric' are similar, but differ in whether the edge - voxels are duplicated during the reflection. As an example, if an array + pixels are duplicated during the reflection. As an example, if an array has values [0, 1, 2] and was padded to the right by four values using symmetric, the result would be [0, 1, 2, 2, 1, 0, 0], while for reflect it would be [0, 1, 2, 1, 0, 1, 2]. diff --git a/skimage/transform/_warps_cy.pyx b/skimage/transform/_warps_cy.pyx index befc1e89..a3167016 100644 --- a/skimage/transform/_warps_cy.pyx +++ b/skimage/transform/_warps_cy.pyx @@ -80,7 +80,7 @@ def _warp_fast(cnp.ndarray image, cnp.ndarray H, output_shape=None, Note ---- Modes 'reflect' and 'symmetric' are similar, but differ in whether the edge - voxels are duplicated during the reflection. As an example, if an array + pixels are duplicated during the reflection. As an example, if an array has values [0, 1, 2] and was padded to the right by four values using symmetric, the result would be [0, 1, 2, 2, 1, 0, 0], while for reflect it would be [0, 1, 2, 1, 0, 1, 2].