Algorithms¶
zarr_vectors_tools.algorithms measures and queries a store in place. Each
function reads the chunks it needs from one level and returns
arrays, dicts or pandas tables. Bundle summaries also have a command,
zvtools bundles STORE.
Function |
Geometry |
Computes |
|---|---|---|
|
hop count and parent from one vertex |
|
|
Dijkstra or A* path and cost |
|
|
component label per vertex |
|
|
coreness per vertex |
|
|
community per vertex |
|
|
community per vertex, modularity |
|
|
area, volume, Euler characteristic |
|
|
unit normal per vertex |
|
|
mean curvature per vertex |
|
|
nearest point on the surface |
|
|
first surface hit along a ray |
|
|
ids of streamlines through, or ending in, a region |
|
|
per group: count, length, tortuosity, endpoint centroids |
|
|
the stored |
|
|
per object: cable length, counts, Strahler order, extent |
|
|
the same segment’s object in each store |
|
|
one hemisphere in source vertex order |
|
|
per parcel: vertex count, area, map statistics |
|
|
the parcel nearest each point |
Every function takes the store path first (SegmentLink takes several) and
level=0 as a keyword.
compute_connected_components, compute_vertex_normals and
compute_mean_curvature store their result as a vertex attribute with
write_back=True. compute_skeleton_metrics and bundle_summary store theirs
by default. A function writes to the level it reads, and a rerun replaces the
attribute; bundle_summary reads level 0 and writes to every level.
Every function follows objects across chunk boundaries: an edge or triangle whose ends lie in different chunks counts once. Results do not depend on the chunk shape.