mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
MAINT: PEP8 fixes and _interpolation_test.pyx -> interpolation.pyx rename
This commit is contained in:
@@ -49,8 +49,8 @@ def resize(image, output_shape, order=1, mode='constant', cval=0, clip=True,
|
||||
Whether to keep the original range of values. Otherwise, the input
|
||||
image is converted according to the conventions of `img_as_float`.
|
||||
|
||||
Notes
|
||||
-----
|
||||
Note
|
||||
----
|
||||
Modes 'mirror' and 'reflect' are similar, but differ in whether the edge
|
||||
voxels 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
|
||||
|
||||
@@ -76,8 +76,8 @@ def _warp_fast(cnp.ndarray image, cnp.ndarray H, output_shape=None,
|
||||
Used in conjunction with mode 'C' (constant), the value
|
||||
outside the image boundaries.
|
||||
|
||||
Notes
|
||||
-----
|
||||
Note
|
||||
----
|
||||
Modes 'mirror' and 'reflect' are similar, but differ in whether the edge
|
||||
voxels 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
|
||||
|
||||
@@ -181,7 +181,6 @@ def test_resize3d_resize():
|
||||
assert_almost_equal(resized, ref)
|
||||
|
||||
|
||||
|
||||
def test_resize3d_2din_3dout():
|
||||
# 3D output with 2D input
|
||||
x = np.zeros((5, 5), dtype=np.double)
|
||||
@@ -192,7 +191,6 @@ def test_resize3d_2din_3dout():
|
||||
assert_almost_equal(resized, ref)
|
||||
|
||||
|
||||
|
||||
def test_resize3d_bilinear():
|
||||
# bilinear 3rd dimension
|
||||
x = np.zeros((5, 5, 2), dtype=np.double)
|
||||
|
||||
Reference in New Issue
Block a user