Skip to main content

A regionprops table widget plugin for napari

Project description

napari-skimage-regionprops (nsr)

License

PyPI

Python Version

tests

codecov

A napari plugin for measuring properties of labeled objects based on scikit-image

Usage

From the menu Tools > Measurement > Regionprops (nsr) you can open a dialog where you can choose an intensity image, a corresponding label image and the features you want to measure:

img.png

If you want to interface with the labels and see which table row corresponds to which labeled object, use the label picker and

activate the show selected checkbox.

If you closed a table and want to reopen it, you can use the menu Tools > Measurements > Show table (nsr) to reopen it.

You just need to select the labels layer the properties are associated with.

Usage, programmatically

You can also control the tables programmatically. See this example notebook for details.

Features

The user can select categories of features for feature extraction in the user interface. These categories contain measurements from the scikit-image regionprops list of measurements library:

  • size:

    • area

    • bbox_area

    • convex_area

    • equivalent_diameter

  • intensity:

    • max_intensity

    • mean_intensity

    • min_intensity

    • standard_deviation_intensity (extra_properties implementation using numpy)

  • perimeter:

    • perimeter

    • perimeter_crofton

  • shape

    • major_axis_length

    • minor_axis_length

    • orientation

    • solidity

    • eccentricity

    • extent

    • feret_diameter_max

    • local_centroid

  • position:

    • centroid

    • bbox

    • weighted_centroid

  • moments:

    • moments

    • moments_central

    • moments_hu

    • moments_normalized

This napari plugin was generated with Cookiecutter using with @napari's cookiecutter-napari-plugin template.

Installation

You can install napari-skimage-regionprops via pip:

pip install napari-skimage-regionprops

Or if you plan to develop it:

git clone https://github.com/haesleinhuepf/napari-skimage-regionprops

cd napari-skimage-regionprops

pip install -e .

If there is an error message suggesting that git is not installed, run conda install git.

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-skimage-regionprops" is free and open source software

Issues

If you encounter any problems, please create a thread on image.sc along with a detailed description and tag @haesleinhuepf.

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-skimage-regionprops-0.2.2.tar.gz (10.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_skimage_regionprops-0.2.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file napari-skimage-regionprops-0.2.2.tar.gz.

File metadata

  • Download URL: napari-skimage-regionprops-0.2.2.tar.gz
  • Upload date:
  • Size: 10.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for napari-skimage-regionprops-0.2.2.tar.gz
Algorithm Hash digest
SHA256 19eac5591a24c2b4e65282245e9c5f84fb5580b80105809bdfcac6758c60a918
MD5 faf9fb9288ca46b1cb9f964a8e766843
BLAKE2b-256 8a9720d81d190cd14557f9b140d08ea09d8a21b97bdbb0d369a36d780ab24c43

See more details on using hashes here.

File details

Details for the file napari_skimage_regionprops-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: napari_skimage_regionprops-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for napari_skimage_regionprops-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b453424b0b93f320b134ae2b8246b0a502af80efa9d2953dcd58c065f0091060
MD5 96ee34f814968fd82cc47256d0663c8f
BLAKE2b-256 d58b3e74a809f1dd9224f5549985b92834f1ae0c1bbe33453f16468b059e2da8

See more details on using hashes here.

Supported by

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