Skip to content

A set of type definitions for annotating functions that work with images

License

Notifications You must be signed in to change notification settings

napari/image-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

napari image types

napari is an image viewer and graphical image processing environment. Writing a plugin for napari involves annotating a Python function with image types provided by this package. As an example, if you provide the following in a module:

from typing import Union as U, Tuple as Tup
from imtypes import Image


def gaussian_filter(image : Image, sigma : U[float, Tup[float, ...]], *,
                    multichannel : bool = True) -> Image:
    ...

Then napari can ingest the module and make the gaussian filter available to users from its graphical user interface.

About

A set of type definitions for annotating functions that work with images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages