Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: multi-source distance field #28

Merged
merged 9 commits into from
Aug 5, 2021
Merged

Conversation

william-silversmith
Copy link
Contributor

Resolves #27

The following code:

import numpy as np
import dijkstra3d
from cloudvolume import view

field = np.ones((50,50), dtype=np.uint8)
sources = [ 
	(0,0),
	(49,40),
]


out = dijkstra3d.distance_field(field, sources)
view(out)

Produces:

image

Still need to add some automated tests. Euclidean distance field not included yet (?).

@william-silversmith william-silversmith merged commit 169015e into master Aug 5, 2021
@william-silversmith william-silversmith deleted the wms_multi_source branch August 5, 2021 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow multiple sources in distance_field
1 participant