A Napari SAM plugin to segment everything in your image (not just some things)
Project description
napari-segment-everything
A Napari SAM plugin to segment everything in your image (not just some things)
This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.
Installation
You can install napari-segment-everything
via pip:
pip install napari-segment-everything
Instructions
1. Generate 3D labels
In the first step adjust SAM settings and generate a 3D representation of your labels. The 3D view is needed to represent overlapping labels (labels that overlap in xy can be represented at different z). After tweaking settings press 'Generate 3D labels'. Be patient. SAM with permissive settings can potentially find thousands of labels in a complicated image. At least 6G of GPU memory is recommended to run SAM and to render to 3D label map (which can be large).
2. Filter 3D labels
In the next step select a stat (solidity, hue, IOE, stability and other stats are available) then use the sliders and number boxes to filter out labels that do not represent structure of interest. If you double click on a label a popup will appear containing the stats for that label. Inpect stats for labels you want to keep, and labels you want to eliminate to help determine the filter settings.
3. Generate 2D labels
In this step the 3D labels are projected to a 2D label map, use the dropdown to choose between projecting big labels in front or small labels in front.
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-segment-everything" is free and open source software
Issues
If you encounter any problems, please [file an issue] along with a detailed description.
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
Hashes for napari-segment-everything-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0226cea66a0dc51b285e7946689459b5afbb6052dddd8d6bfbfd114eb7d76577 |
|
MD5 | b083bd5ec4e30ad584806172fb876640 |
|
BLAKE2b-256 | 9e04eb4c60a559f12b885c47eda23742772e852deb93c0239f399d6593182d96 |
Hashes for napari_segment_everything-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b525a834cebc3bf62b70c7bb65fbde270267345ab400210d3bdb49a329ab987 |
|
MD5 | 3e3045b5dbe869e8e961fcb50defd918 |
|
BLAKE2b-256 | 020d72c4c1e69962739c185bcf8d9355559735297f7137ac4f38d772d40112f5 |