You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GlobalDefaultNumberOfThreads affects result
Applying ErodeObjectMorphologyImageFilter on binary image produces different result with
GlobalDefaultNumberOfThreads > 1
To Reproduce
Steps to reproduce the behavior:
Operating system, version, and architecture
OS: [Ubuntu 18.4]
Architecture: x86_64
CPU(s): 16
Programming language: Python 3.9.14]
Version of SimpleITK:
tested on 2.1.0, 2.2.0, 2.3.1
How was SimpleITK installed?
binary distribution [e.g. python -m pip install SimpleITK]
A minimal working example which causes the error.
data - shape.zip
I usually use the Binary Morphology filters or a Grayscale Morphology filters to perform binary morphology operations.
I was able to reproduce the race condition, and reviewed the code for the ObjectMorphology filters. It appears that there is a fundamental issue with the set of filters using the "output" image to both sample the kernel and write to it.
GlobalDefaultNumberOfThreads affects result
Applying ErodeObjectMorphologyImageFilter on binary image produces different result with
GlobalDefaultNumberOfThreads > 1
To Reproduce
Steps to reproduce the behavior:
Architecture: x86_64
CPU(s): 16
Programming language: Python 3.9.14]
Version of SimpleITK:
tested on 2.1.0, 2.2.0, 2.3.1
How was SimpleITK installed?
data - shape.zip
Got:
Expected behavior
Expecting eroded image to be the same
Additional context
Also Is it supposed to work differently from sitk.BinaryErode ? Because sitk.BinaryErode gives different result for this image :)
The text was updated successfully, but these errors were encountered: