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)