mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-11 22:34:43 +08:00
MAINT: minor spacing issues and typos fixed
This commit is contained in:
@@ -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
|
||||
----------
|
||||
|
||||
@@ -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].
|
||||
|
||||
@@ -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].
|
||||
|
||||
Reference in New Issue
Block a user