in case a seed was on the edge of the mask, a NoSuchElementException was thrown
this commit fixes the issue by doing out of bound checks before accessing the labeling value
I am not very familiar with the details of watershed, but this commit should not introduce any change to the algorithm itself. @tischi can you try if that would fix your issue?
NoSuchElementException
was thrownI am not very familiar with the details of watershed, but this commit should not introduce any change to the algorithm itself. @tischi can you try if that would fix your issue?