mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-06 05:16:40 +08:00
Set up correct type for find_boundaries test
This commit is contained in:
@@ -4,7 +4,7 @@ from skimage.segmentation import find_boundaries, mark_boundaries
|
||||
|
||||
|
||||
def test_find_boundaries():
|
||||
image = np.zeros((10, 10))
|
||||
image = np.zeros((10, 10), dtype=np.uint8)
|
||||
image[2:7, 2:7] = 1
|
||||
|
||||
ref = np.array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
@@ -24,7 +24,7 @@ def test_find_boundaries():
|
||||
|
||||
def test_mark_boundaries():
|
||||
image = np.zeros((10, 10))
|
||||
label_image = np.zeros((10, 10))
|
||||
label_image = np.zeros((10, 10), dtype=np.uint8)
|
||||
label_image[2:7, 2:7] = 1
|
||||
|
||||
ref = np.array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
|
||||
Reference in New Issue
Block a user