mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user