From e77d7a7e443b6b268e690cbb64051148a4b3ca0f Mon Sep 17 00:00:00 2001 From: Nicolas Pinto Date: Tue, 14 Feb 2012 19:56:42 -0500 Subject: [PATCH] DOC: don't divide by 255 when it's not required ;-) --- doc/examples/plot_gabors_from_lena.py | 2 +- doc/examples/plot_view_as_blocks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/plot_gabors_from_lena.py b/doc/examples/plot_gabors_from_lena.py index 187289b7..36872259 100644 --- a/doc/examples/plot_gabors_from_lena.py +++ b/doc/examples/plot_gabors_from_lena.py @@ -53,7 +53,7 @@ np.random.seed(42) patch_shape = 8, 8 n_filters = 49 -lena = color.rgb2gray(data.lena()) / 255. +lena = color.rgb2gray(data.lena()) # -- filterbank1 on original Lena patches1 = view_as_windows(lena, patch_shape) diff --git a/doc/examples/plot_view_as_blocks.py b/doc/examples/plot_view_as_blocks.py index 3815d3ec..41388a89 100644 --- a/doc/examples/plot_view_as_blocks.py +++ b/doc/examples/plot_view_as_blocks.py @@ -24,7 +24,7 @@ from skimage.util.shape import view_as_blocks # -- get `lena` from skimage.data in grayscale -l = color.rgb2gray(data.lena()) / 255. +l = color.rgb2gray(data.lena()) # -- size of blocks block_shape = (4, 4)