neu_vol.backends.mapped

A source read through a lookup table: table[source]. See neu_vol/mapped.py.

Classes

MappedBackend

Read-only view applying a dense table[id] to every voxel of a source.

Module Contents

class neu_vol.backends.mapped.MappedBackend(spec: Mapping[str, Any])

Read-only view applying a dense table[id] to every voxel of a source.

The output dtype is the source’s when every table value fits in it — a 2M-supervoxel uint32 volume maps to agglomerate ids that fit in uint32, and widening it would double every downstream byte for nothing — and uint64 otherwise.

classmethod open(spec: Mapping[str, Any]) → MappedBackend
read_region(region: neu_vol.backends.base.Region) → numpy.ndarray
to_spec() → dict[str, Any]
write_region(region: neu_vol.backends.base.Region, data: numpy.ndarray) → None
property chunks: tuple[int, ...]
property dtype: numpy.dtype
property read_chunks: tuple[int, ...]
property shape: tuple[int, ...]
property voxel_size