napari.types

Classes

SampleDict

ArrayBase

alias of numpy.ndarray

Functions

napari.types.ImageData(x)
napari.types.LabelsData(x)
napari.types.PointsData(x)
napari.types.ShapesData(x)
napari.types.SurfaceData(x)
napari.types.TracksData(x)
napari.types.VectorsData(x)
napari.types.LayerDataTuple(x)
napari.types.image_reader_to_layerdata_reader(func: Callable[[Union[str, Sequence[str]]], Union[numpy.ndarray, dask.array.Array, zarr.Array]]) Callable[[Union[str, Sequence[str]]], List[Union[Tuple[Any], Tuple[Any, Dict], Tuple[Any, Dict, Literal['image', 'labels', 'points', 'shapes', 'surface', 'tracks', 'vectors']]]]][source]

Convert a PathLike -> ArrayLike function to a PathLike -> LayerData.

Parameters

func (Callable[[PathLike], ArrayLike]) – A function that accepts a string or list of strings, and returns an ArrayLike.

Returns

reader_function – A function that accepts a string or list of strings, and returns data as a list of LayerData: List[Tuple[ArrayLike]]

Return type

Callable[[PathLike], List[LayerData]]