mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-02 12:41:06 +08:00
Fix warning in plot_view_as_blocks
This commit is contained in:
1 parent
a7685738c9
commit
976ac85e45
1 file changed
+1
-1
@@ -25,7 +25,7 @@ from skimage.util.shape import view_as_blocks
|
||||
|
||||
|
||||
# -- get `astronaut` from skimage.data in grayscale
|
||||
l = color.rgb2gray(data.astronaut())
|
||||
l = np.ascontiguousarray(color.rgb2gray(data.astronaut()))
|
||||
|
||||
# -- size of blocks
|
||||
block_shape = (4, 4)
|
||||
|
||||
Reference in new issue
Block a user