class neuroglancer.read_precomputed_annotations.AnnotationReader

Provides read access to a Neuroglancer Precomputed annotation dataset.

Constructors

AnnotationReader(base_spec: Any | Spec...)

Constructs an annotation reader.

I/O

get_within_spatial_bounds(*...-> Iterator[Annotation]

Returns an iterator over the annotations within the specified bounds.

by_idAnnotationMap[int, Annotation]

Annotations indexed by their 64-bit annotation id.

relationshipsdict[str, AnnotationMap[int, list[Annotation]]]

Related segment maps for each relationship.

Accessors

coordinate_spaceCoordinateSpace

Coordinate space of annotations.

staleness_boundfloat

Staleness bound to use when reading.

annotation_typeLiteral[
    "point"
, "line", "axis_aligned_bounding_box", "ellipsoid"
]

Type of annotations.

metadatadict[str, Any]

Raw Precomputed Annotation JSON metadata.

propertieslist[AnnotationPropertySpec]

Per-annotation properties included in the dataset.

lower_boundtuple[float, ...]

Lower bound of all annotations within coordinate_space.

upper_boundtuple[float, ...]

Upper bound of all annotations within coordinate_space.