- 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_id: AnnotationMap[int, Annotation]
Annotations indexed by their 64-bit annotation id.
- relationships: dict[str, AnnotationMap[int, list[Annotation]]]
Related segment maps for each relationship.
Accessors¶
- coordinate_space: CoordinateSpace
Coordinate space of annotations.
- staleness_bound: float
Staleness bound to use when reading.
-
annotation_type: Literal[
"point", "line", "axis_aligned_bounding_box", "ellipsoid"
] Type of annotations.
- properties: list[AnnotationPropertySpec]
Per-annotation properties included in the dataset.
- lower_bound: tuple[float, ...]
Lower bound of all annotations within
coordinate_space
.
- upper_bound: tuple[float, ...]
Upper bound of all annotations within
coordinate_space
.