ilastik plugin for napari
Project description
ilastik-napari
Napari plugin for interactive pixel classification. Designed to be similar to the pixel classification workflow in classic ilastik.
Installation
This plugin requires you to use a conda environment. The environment manager conda comes in a few different forms.
If you haven't used conda before, you can find more information in the conda user guide.
You can use whichever variant you prefer, as the resulting environment should be the same, but we recommend the mambaforge variant as it is usually the fastest.
When using mambaforge, the mamba
command usually replaces the conda
command one would otherwise use.
Once you have installed mambaforge, set up a conda environment with napari and the fastfilters package, and then use pip to install ilastik-napari:
mamba create -y -c ilastik-forge -c conda-forge -n my-napari-env napari fastfilters
mamba activate my-napari-env
pip install ilastik-napari
Finally, run napari:
napari
That's it! You should be able to find the ilastik-napari plugin in the Plugins menu.
If you prefer to install napari using pip instead of conda:
Make sure to install napari[all]
.
Unless you want to choose a PyQt implementation other than PyQt5, in which case you should leave out the [all]
extra.
Usage
As a prerequisite, make sure you understand the napari basics.
-
Open your image, or use a sample in File - Open Sample.
-
Activate the plugin in the Plugins menu.
-
In layer list, create a new Labels layer.
-
In layers control, switch to the paint action.
-
Draw your background labels.
-
Switch to a new label.
-
Draw your foreground labels.
-
Select output types you need, and click Run.
-
The plugin will create one layer for each output type, which you save as normal napari layers.
Development
Create a development environment:
mamba create -y -n ilastik-napari-dev -c ilastik-forge fastfilters setuptools-scm conda-build anaconda-client
conda activate napari-ilastik-dev
pip install -e .
Build conda package:
conda activate napari-ilastik-dev
mamba build -c ilastik-forge conda-recipe
anaconda upload /path/to/the/new/package.tar.bz2
Build wheel and sdist packages:
conda activate napari-ilastik-dev
pip install build twine
python -m build
python -m twine upload --repository testpypi dist/*
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
Built Distribution
File details
Details for the file ilastik_napari-0.2.4.tar.gz
.
File metadata
- Download URL: ilastik_napari-0.2.4.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e971a70389f9257eaca7561637301f996f316fdff2cb223c5828d162970bec4 |
|
MD5 | b2d55f2e0bbbe9f10660aac33f409f7d |
|
BLAKE2b-256 | 7e371608c6015ea1efddd0118ace814fb7bfd5d339f159aed39044603386a617 |
File details
Details for the file ilastik_napari-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: ilastik_napari-0.2.4-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08ec090b03e286bf446c6a16f6b9a743eff10914e350a9577d358421998f8f23 |
|
MD5 | c81636268d5b6b735709afcaad576e21 |
|
BLAKE2b-256 | ad77fc83fec8a976c2e05e3a0ca6af7cae0d438fa6f1a0c5e15200ed364f5bfe |