mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-12 12:50:49 +08:00
STY: Cleanups after Tony's review.
This commit is contained in:
@@ -6,11 +6,10 @@ from skimage import transform as tf, data, img_as_float
|
||||
|
||||
def test_roundtrip():
|
||||
image = img_as_float(data.checkerboard())
|
||||
|
||||
swirl_params = {'radius': 80, 'rotation': 0, 'order': 2, 'mode': 'reflect'}
|
||||
unswirled = tf.swirl(
|
||||
tf.swirl(image, strength=10, **swirl_params),
|
||||
strength=-10, **swirl_params
|
||||
)
|
||||
swirled = tf.swirl(image, strength=10, **swirl_params)
|
||||
unswirled = tf.swirl(swirled, strength=-10, **swirl_params)
|
||||
|
||||
assert np.mean(np.abs(image - unswirled)) < 0.01
|
||||
|
||||
|
||||
Reference in New Issue
Block a user