Skip to main content

Select regions of interest (ROIs) using napari

Project description

napari-roi

napari hub PyPI License Python Version Issues Pull requests

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

Contributing

Changelog

Changelog

License

MIT

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-roi-0.1.8.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

napari_roi-0.1.8-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file napari-roi-0.1.8.tar.gz.

File metadata

  • Download URL: napari-roi-0.1.8.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for napari-roi-0.1.8.tar.gz
Algorithm Hash digest
SHA256 0123238ee652931ed0bc90421ddf76d1d58c0d4c89790a8512c5649e88620729
MD5 268753e67a1a5d04fed948d1c6683934
BLAKE2b-256 22b5252b0e2fa9d9bf67b52058c1e9cd8223f815a4788006483059f61d5aa45b

See more details on using hashes here.

File details

Details for the file napari_roi-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: napari_roi-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for napari_roi-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4f82436f6130f3f783651da01823677c18b737cc11708c7a9067fc5b473eb53d
MD5 3dcf31ec65aa2e83520915bb8e45ac04
BLAKE2b-256 ce32304765f1b2328ca9415b9f78951aadf73ff3fc876495b3440d35c52ab966

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