Skip to content

Commit

Permalink
test: check if block sizes are working with odd shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Nov 21, 2024
1 parent eba76c9 commit 367f3d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions automated_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ def test_multilabel_dilate_2d():
ans[1:,:] = 2
assert np.all(ans == out)

labels = np.zeros([2411,2101], dtype=bool, order="F")
labels[10:-10,10:-10] = 1

for i in range(20):
labels = fastmorph.dilate(labels)

assert np.all(labels)


def test_multilabel_erode_3d():
labels = np.ones((3,3,3), dtype=bool)
out = fastmorph.erode(labels)
Expand Down

0 comments on commit 367f3d2

Please # to comment.