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
Happy to add this once we decided what to do about the fact that this steps from -1 to 1 skipping 0 per definition of the distance transform boundaries being in the boundary pixel and not between boundary pixels (lab discussion, @hanslovsky knows the details). In isotropic spaces, we could probably just subtract 0.5 from all distances which states that the boundary is 0.5px closer to the pixel without making an effort to explain where it is. But this would not work with non-isotropic grids. This means this offset should probably go into the DT algorithm?
With the newly introduced binary distance transform methods (#69, #71), we can now very easily create a signed distance transform (beware: Kotlin!):
with helper methods
This will be negative inside the object defined by
mask
and positive everywhere else.The text was updated successfully, but these errors were encountered: