mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-30 13:40:44 +08:00
DOC: don't divide by 255 when it's not required ;-)
This commit is contained in:
1 parent
5e9ad08b80
commit
e77d7a7e44
2 files changed
+2
-2
No files matched your search
@@ -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