napari-roi
Select regions of interest (ROIs) using napari
Installation
You can install napari-roi via pip:
pip install napari-roi
Alternatively, you can install napari-roi via conda:
conda install -c conda-forge napari-roi
Usage
The napari-roi plugin can be opened from within napari (napari -> napari-roi: regions of interest) and operates on napari Shapes layers.
ROIs can be added to any napari Shapes layer, either by drawing a standard napari shape (e.g. rectangle), or by adding a rectangular ROI of specified size using the Add ROI functionality in the napari-roi widget. Each ROI is associated with a name, a position (X/Y origin), and a size (width/height). The location of the X/Y origin of all ROIs can be chosen in the napari-roi widget. Note that any shape supported by napari (e.g. ellipse, rectangle, polygon, line, path) can serve as an ROI; for non-rectangular shapes, napari-roi computes rectangular bounding boxes aligned with the napari coordinate system to determine their positions and sizes. ROIs can be edited or deleted by modifying the corresponding shapes in napari, or by editing the corresponding row in the napari-roi widget.
All ROIs in the current Shapes layer can be saved to a comma-separated values (CSV) file using the Save functionality in the napari-roi widget. When the Autosave option is checked, the file is automatically updated on every ROI change. Note that the selected file is specific to the current Shapes layer; ROIs from different Shapes layers cannot be saved to the same file. ROIs can be loaded from a previously saved file and added to the current Shapes layer by opening the file in the napari-roi widget.
CSV files saved using napari-roi adhere to the following format:
| Columns | Description |
|---|---|
Name |
ROI name |
X, Y |
Position (X/Y origin) |
W, H |
Size (width/height) |
Authors
Created and maintained by Jonas Windhager until February 2023.
Maintained by Milad Adibi from February 2023.
Contributing
Changelog
License
Metadata
Release files for napari-roi 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| napari-roi-0.1.8.tar.gz | 15.9 kB | Without provenance | Details for napari-roi-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| napari_roi-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for napari_roi-0.1.8-py3-none-any.whl |
Total release size: 30.1 kB
Release files / napari-roi-0.1.8.tar.gz
| Download URL | napari-roi-0.1.8.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0123238ee652931ed0bc90421ddf76d1d58c0d4c89790a8512c5649e88620729
|
|
BLAKE2b-256 checksum How to use checksums |
22b5252b0e2fa9d9bf67b52058c1e9cd8223f815a4788006483059f61d5aa45b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / napari_roi-0.1.8-py3-none-any.whl
| Download URL | napari_roi-0.1.8-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f82436f6130f3f783651da01823677c18b737cc11708c7a9067fc5b473eb53d
|
|
BLAKE2b-256 checksum How to use checksums |
ce32304765f1b2328ca9415b9f78951aadf73ff3fc876495b3440d35c52ab966
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for napari-roi 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.