Spline Specification
Layer Specification
Spline annotations are stored on a napari
Points layer and
can contain multiple splines.
Points.datais an(n, d)array of n d-dimensional points.Points.featuresis a table which will contain a column calledspline_id, an integer id for each point.Points.metadata["n3d_metadata"]is a dictionary with the following key/value pairsannotation_type:spline
Zarr Array Specification
The following assumes an n3d file has been read into a variable called
n3d using the zarr library
import zarr
zarr.load('spline.n3d')
n3dis an(n, d)zarr.core.Arrayn3d.attrs["annotation_type"]is"spline"n3d.attrs["spline_id"]is an(n, )array containing the spline id of each point