mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 13:17:10 +08:00
FIX: Errors in unit tests
This commit is contained in:
@@ -79,8 +79,8 @@ def test_ellipsoid_levelset():
|
||||
[ 1.25, 0.5 , 0.25, 0.5 , 1.25],
|
||||
[ 2. , 1.25, 1. , 1.25, 2. ]]]]
|
||||
|
||||
assert_array_equal(test, expected.astype(bool))
|
||||
assert_array_equal(test_anisotropic, expected.astype(bool))
|
||||
assert_array_equal(test, expected)
|
||||
assert_array_equal(test_anisotropic, expected)
|
||||
|
||||
|
||||
def test_ellipsoid_stats():
|
||||
|
||||
@@ -7,7 +7,7 @@ from skimage.measure import marching_cubes, mesh_surface_area
|
||||
|
||||
def test_marching_cubes_isotropic():
|
||||
ellipsoid_isotropic = ellipsoid(6, 10, 16, levelset=True)
|
||||
_, surf = ellipsoid_stats(6, 10, 16, levelset=True)
|
||||
_, surf = ellipsoid_stats(6, 10, 16)
|
||||
verts, faces = marching_cubes(ellipsoid_isotropic, 0.)
|
||||
surf_calc = mesh_surface_area(verts, faces)
|
||||
|
||||
@@ -17,9 +17,9 @@ def test_marching_cubes_isotropic():
|
||||
|
||||
def test_marching_cubes_anisotropic():
|
||||
sampling = (1., 10 / 6., 16 / 6.)
|
||||
ellipsoid_anisotropic, _, surf = ellipsoid(6, 10, 16, sampling=sampling,
|
||||
levelset=True)
|
||||
_, surf = ellipsoid_stats(6, 10, 16, sampling=sampling, levelset=True)
|
||||
ellipsoid_anisotropic = ellipsoid(6, 10, 16, sampling=sampling,
|
||||
levelset=True)
|
||||
_, surf = ellipsoid_stats(6, 10, 16, sampling=sampling)
|
||||
verts, faces = marching_cubes(ellipsoid_anisotropic, 0.,
|
||||
sampling=sampling)
|
||||
surf_calc = mesh_surface_area(verts, faces)
|
||||
|
||||
Reference in New Issue
Block a user