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
Manual application of parallel iterative algorithm
Comparison to a simple OpenCV-based implementation (repro included)
For some context, I am hoping to submit a PR that rewrites the algorithm more efficiently.
Along the way I found that our algorithms disagreed, which brought me here.
I'm not sure how to fix the offset case in the current code, it seems like it may be reversing the footprint but I am not sure.
If you are curious you can see my work-in-progress implementation here.
Thank you– happy to provide any additional information!
Description:
Hi! I think I found a bug in the skimage.morphology.grayreconstruct.reconstruction function. [src]
The unit test
test_offset_not_none
[src] asserts that the seed:and the mask:
with footprint
[1, 1, 1]
and offset[0]
, reconstruct as:But I think it should be:
I explain my reasoning in this document.
I include 2 approaches:
For some context, I am hoping to submit a PR that rewrites the algorithm more efficiently.
Along the way I found that our algorithms disagreed, which brought me here.
I'm not sure how to fix the offset case in the current code, it seems like it may be reversing the footprint but I am not sure.
If you are curious you can see my work-in-progress implementation here.
Thank you– happy to provide any additional information!
Way to reproduce:
Version information:
The text was updated successfully, but these errors were encountered: