Test symmetric selems for rank/morpho comparison

The handling of eccentric selems is different between these two
modules, so the results are not expected to agree. (Why they agreed
before this change is beyond me.)
This commit is contained in:
Juan Nunez-Iglesias
2015-01-22 18:30:10 +11:00
parent ea989e2456
commit 1847b18fbb
+2 -2
View File
@@ -124,7 +124,7 @@ def test_compare_with_grey_dilation():
out = np.empty_like(image)
mask = np.ones(image.shape, dtype=np.uint8)
for r in range(1, 20, 1):
for r in range(3, 20, 2):
elem = np.ones((r, r), dtype=np.uint8)
rank.maximum(image=image, selem=elem, out=out, mask=mask)
cm = grey.dilation(image=image, selem=elem)
@@ -138,7 +138,7 @@ def test_compare_with_grey_erosion():
out = np.empty_like(image)
mask = np.ones(image.shape, dtype=np.uint8)
for r in range(1, 20, 1):
for r in range(3, 20, 2):
elem = np.ones((r, r), dtype=np.uint8)
rank.minimum(image=image, selem=elem, out=out, mask=mask)
cm = grey.erosion(image=image, selem=elem)