From 045b04703acdf84f4af2602f110b330ffe67b7a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Mon, 1 Feb 2016 08:49:54 +0100 Subject: [PATCH] Revert contiguous array conversion --- doc/examples/features_detection/plot_gabors_from_astronaut.py | 2 +- doc/examples/numpy_operations/plot_view_as_blocks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/features_detection/plot_gabors_from_astronaut.py b/doc/examples/features_detection/plot_gabors_from_astronaut.py index 7f718014..a8cb50c2 100644 --- a/doc/examples/features_detection/plot_gabors_from_astronaut.py +++ b/doc/examples/features_detection/plot_gabors_from_astronaut.py @@ -51,7 +51,7 @@ np.random.seed(42) patch_shape = 8, 8 n_filters = 49 -astro = np.ascontiguousarray(color.rgb2gray(data.astronaut())) +astro = color.rgb2gray(data.astronaut()) # -- filterbank1 on original image patches1 = view_as_windows(astro, patch_shape) diff --git a/doc/examples/numpy_operations/plot_view_as_blocks.py b/doc/examples/numpy_operations/plot_view_as_blocks.py index 862d8e32..53797aac 100644 --- a/doc/examples/numpy_operations/plot_view_as_blocks.py +++ b/doc/examples/numpy_operations/plot_view_as_blocks.py @@ -25,7 +25,7 @@ from skimage.util.shape import view_as_blocks # -- get `astronaut` from skimage.data in grayscale -l = np.ascontiguousarray(color.rgb2gray(data.astronaut())) +l = color.rgb2gray(data.astronaut()) # -- size of blocks block_shape = (4, 4)