Skip to main content

napari-skimage

License BSD-3 PyPI Python Version tests codecov napari hub

napari-skimage gives easy access to scikit-image functions in napari. The main goal of the plugin is to allow new users of napari, especially without coding experience, to easily explore basic image processing, in a similar way to what is possible in Fiji.

This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.

Philosophy

The plugin is still in early development and does not cover all functions of scikit-image. If you are interested in a specific function, please open an issue or a pull request. scikit-image functions are turned into interactive widgets mostly via magicgui, a tool that allows to create GUIs from functions in a simple way (in particular not requiring Qt knowledge). The code avoids on purpose complex approaches, e.g. to automate the creation of widgets, in order to keep the code simple and easy to understand for beginners.

Installation

You can install napari-skimage via pip:

pip install napari-skimage

To install latest development version :

pip install git+https://github.com/guiwitz/napari-skimage.git

Usage

The plugin function can be accessed under Plugins -> napari-skimage. Each function will appear as a widget on the right of the napari window. Some functions such as Gaussian Filter give access to a single operation and its options. Some functions such as Thresholding give access to variants of the same operation via a dropdown menu. Currently the plugin does not support multi-channel processing and will consider those as stacks. At the moment, the plugin offers access to the following operation types.

Filtering

A set of classical filters: Gaussian, Prewitt, Laplace etc. as well as rank filters such as median, minimum, maximum etc.

Gaussian filter

Thresholding

A set of thresholding methods: Otsu, Li, Yen etc. Thresholding

Binary morphological operations

A set of binary morphology operations: binary erosion, binary dilation etc. Binary morphological operations

Morphological operations

A set of morphological operations: erosion, dilation, opening, closing etc. Morphological operations

Restoration

A set of restoration operations such as rolling ball, or non-local means denoising. Restoration

Mathematics

In addition the plugin provides a set of simple mathematical operators to:

  • operate on single images e.g. square, square root, log etc.
  • operate on two images e.g. add, subtract, multiply etc. Mathematics

Code structure

Each set of functions is grouped in a separate module. For example all filtering operations are grouped in src/napari_skimge/skimage_filter_widget.py. A set of test in src/_tests/test_basic_widgets.py simply check that each widget can be created and generated an output of the correct size using the default settings.

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "napari-skimage" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari_skimage-0.7.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_skimage-0.7.0-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file napari_skimage-0.7.0.tar.gz.

File metadata

  • Download URL: napari_skimage-0.7.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for napari_skimage-0.7.0.tar.gz
Algorithm Hash digest
SHA256 d0b91e2155c80a970102af440e339837db55e458423b60ed94400da384419f71
MD5 f95205c9f8cc0c43b1ce15e1a1611571
BLAKE2b-256 22425eff2607ed299a88498692687921d099df671a7426befbef99b2bcff1665

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_skimage-0.7.0.tar.gz:

Publisher: test_and_deploy.yml on guiwitz/napari-skimage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file napari_skimage-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: napari_skimage-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 31.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for napari_skimage-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3450c1c157356dc0fb0df5d2ed119fe43055bef4e95ea535977c145e1fc5793
MD5 05bb913b17b8c8467dfa2d3bc3a45ec6
BLAKE2b-256 959f826324d73fb43dab7eb9555013e87c02a1f3a97d964534c52930714b90aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_skimage-0.7.0-py3-none-any.whl:

Publisher: test_and_deploy.yml on guiwitz/napari-skimage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page