Skip to main content

A plugin for segmentation by pixel classification using convolutional feature extraction

Project description

License PyPI Python Version tests codecov napari hub

overview conv-paint This napari plugin can be used to segment objects or structures in images based on a few brush strokes providing examples of the classes. Based on the same idea as other tools like ilastik, its main strength is that it can use features from pretrained neural networks like VGG16 or DINOV2, enabling the segmentation of more complex images.

Find more information and tutorials in the docs or read the preprint.

overview conv-paint

Installation

You can install napari-convpaint via pip

pip install napari-convpaint

To install latest development version :

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

Example use case: Tracking shark body parts in a movie

These are the scribble annotations provided for training:

And this is the resulting Convpaint segmentation:

Check out the documentation or the paper for more usecases!

License

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

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.

Issues

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

Authors

The idea behind this napari plugin was first developed by Lucien Hinderling in the group of Olivier Pertz, at the Institute of Cell Biology, University of Bern. The code has first been shared as open source resource in form of a Jupyter Notebook. With the desire to make this resource accessible to a broader public in the scientific community, the Pertz lab obtained a CZI napari plugin development grant with the title "Democratizing Image Analysis with an Easy-to-Train Classifier" which supported the adaptation of the initial concept as a napari plugin called napari-convpaint. The plugin has been developed by Guillaume Witz, Mykhailo Vladymyrov and Ana Stojiljkovic at the Data Science Lab, University of Bern, in tight collaboration with the Pertz lab (Lucien Hinderling, Roman Schwob, Benjamin Gräedel, Maciej Dobrzyński).

Cite Convpaint

If you find Convpaint useful in your research, please consider citing:

@article {Hinderling2024.09.12.610926,
	author = {Hinderling, Lucien and Witz, Guillaume and Schwob, Roman and Stojiljkovic, Ana and Dobrzynski, Maciej and Vladymyrov, Mykhailo and Frei, Joel and Graedel, Benjamin and Frismantiene, Agne and Pertz, Olivier},
	title = {Convpaint - Universal framework for interactive pixel classification using pretrained neural networks},
	year = {2024},
	doi = {10.1101/2024.09.12.610926},
	URL = {https://www.biorxiv.org/content/early/2024/09/14/2024.09.12.610926},
	journal = {bioRxiv}
}

Project details


Download files

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

Source Distribution

napari_convpaint-0.5.1.tar.gz (17.4 MB view details)

Uploaded Source

Built Distribution

napari_convpaint-0.5.1-py3-none-any.whl (42.1 kB view details)

Uploaded Python 3

File details

Details for the file napari_convpaint-0.5.1.tar.gz.

File metadata

  • Download URL: napari_convpaint-0.5.1.tar.gz
  • Upload date:
  • Size: 17.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for napari_convpaint-0.5.1.tar.gz
Algorithm Hash digest
SHA256 df7c8ddd8ac70254ef562bf17df3c50570498cd306ba2dd16343f358ae3e8f6d
MD5 40332ff05c9e66efd46cf9cdae8e3ddc
BLAKE2b-256 eb8b8fea6109611e89d37fb2578d59ebf044ec126b63dbe16206e2875db37729

See more details on using hashes here.

File details

Details for the file napari_convpaint-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_convpaint-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82523128ea821189d6c7a8f70b889bb34649a3e5d11c9ebc3991a73b5506c0d1
MD5 0ad808ba4f6045da05dab31b0b1650c6
BLAKE2b-256 9ab9c48aea184e7bbe4781451978a50f6bbee348bb656294cb0f7d9da7ba18bb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page