mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 09:56:41 +08:00
DOC: don't divide by 255 when it's not required ;-)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user