napari.types#
Classes
alias of |
Functions
- napari.types.image_reader_to_layerdata_reader(func: Callable[[str | Sequence[str]], ndarray | dask.array.Array | zarr.Array]) Callable[[str | Sequence[str]], List[Tuple[Any] | Tuple[Any, Dict] | Tuple[Any, Dict, Literal['graph', '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]]