mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-27 13:10:08 +08:00
Add (previously) pathological qhull test case
This commit is contained in:
1 parent
e9c9c2ca07
commit
c3582f21f8
1 file changed
+13
@@ -32,6 +32,19 @@ def test_basic():
|
||||
assert_array_equal(convex_hull_image(image), expected)
|
||||
|
||||
|
||||
@skipif(not scipy_spatial)
|
||||
def test_pathological_qhull_example():
|
||||
image = np.array(
|
||||
[[0, 0, 0, 0, 1, 0, 0],
|
||||
[0, 0, 1, 1, 1, 1, 1],
|
||||
[1, 1, 1, 0, 0, 0, 0]], dtype=bool)
|
||||
expected = np.array(
|
||||
[[0, 0, 0, 1, 1, 1, 0],
|
||||
[0, 1, 1, 1, 1, 1, 1],
|
||||
[1, 1, 1, 1, 0, 0, 0]], dtype=bool)
|
||||
assert_array_equal(convex_hull_image(image), expected)
|
||||
|
||||
|
||||
@skipif(not scipy_spatial)
|
||||
def test_possible_hull():
|
||||
image = np.array(
|
||||
|
||||
Reference in new issue
Block a user