mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-02 12:41:06 +08:00
TST: Test for selem.cube
This commit is contained in:
1 parent
9d6516903d
commit
073f28e90e
1 file changed
+7
@@ -30,6 +30,13 @@ class TestSElem():
|
||||
expected_mask = np.ones((i, j), dtype='uint8')
|
||||
assert_equal(expected_mask, actual_mask)
|
||||
|
||||
def test_cube_selem(self):
|
||||
"""Test cube structuring elements"""
|
||||
for k in range(0, 5):
|
||||
actual_mask = selem.cube(k)
|
||||
expected_mask = np.ones((k, k, k), dtype='uint8')
|
||||
assert_equal(expected_mask, actual_mask)
|
||||
|
||||
def strel_worker(self, fn, func):
|
||||
matlab_masks = np.load(os.path.join(data_dir, fn))
|
||||
k = 0
|
||||
|
||||
Reference in new issue
Block a user