mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-02 06:48:05 +08:00
Revert contiguous array conversion
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user