Skip to main content

napari-tree-rings

License MIT PyPI Python Version tests codecov napari hub

A tool to delineate bark, pith and xylem annual rings and to measure their property parameters on circular sections of tree trunks.


This napari plugin was generated with copier using the napari-plugin-template.

How to use it?

Users can export the segmentation findings and estimate bark, ring borders, and pith with ease using the Napari Tree Rings plugin:

  • Run button on the Segment Rings tag: find the rings in just one image.
  • Run Batch button on the Batch Segment Trunk tag: runs all the images in the folder.

Users can also modify certain parameters, including the batch size. The interface's goal is to assist biologists without having programming expertise by being user-friendly.

If accessible, the unit of micrometres will be used to determine the parameters; if not, pixels will be used. The calculated parameters are made up of:

  • bbox: The bounding box’s minimum and maximum coordinates on the horizontal and vertical axes.

  • perimeter: perimeter of the region, measured as the length of the contour.

  • area: Region’s area.

  • area_convex: Area of the convex hull image, which is the smallest convex polygon enclosing the region.

  • axis_major_length: Length of the ring boundaries’ major axis.

  • axis_minor_length: Length of the ring boundaries’ minor axis.

  • eccentricity: The eccentricity, which ranges from 0 to 1, is the focal distance divided by the major axis length. When the eccentricity is zero, the region becomes a circle.

  • feret_diameter_max: The maximum Feret's diameter, which is the largest distance between points across the convex hull.

  • orientation: Angle between the major axis and the vertical axis, measured in radians and ranging from -pi/2 to pi/2 anticlockwise.

  • area_growth: The area between the two ring boundaries that experiences growth over a year (except the cases of pith and bark).

  • For more details, check the detailed documentation.

Installation

You can install napari-tree-rings via pip:

pip install napari-tree-rings

Adding other measurements

If you would like to add other measurements while running batch, you can modify BatchSegmentTrunk.run in the src/napari_tree_rings/image/process.py. There is an example of area_growth for you to see and refer to.

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 MIT license, "napari-tree-rings" is free and open source software

Issues

If you encounter any problems, please [file an issue] along with a detailed description.

Metadata

Release files for napari-tree-rings 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for napari-tree-rings 0.1.5
File Size Uploaded Provenance Actions
napari_tree_rings-0.1.5.tar.gz 11.0 MB Without provenance Details for napari_tree_rings-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for napari-tree-rings 0.1.5
File Interpreter ABI Platform Actions
napari_tree_rings-0.1.5-py3-none-any.whl Python 3 none any Details for napari_tree_rings-0.1.5-py3-none-any.whl

Total release size: 11.0 MB

Release files / napari_tree_rings-0.1.5.tar.gz

Download URL napari_tree_rings-0.1.5.tar.gz
Size 11.0 MB
Tags Source
SHA-256 checksum
How to use checksums
6452c6f19b647ea357fea11552afb640e7e4bbece62115a02e85e6140f621cf5
BLAKE2b-256 checksum
How to use checksums
b3e13619e39b6eafc4d4b4b03448fed2ea7af65e463e75a52e8afdc57d6941cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release files / napari_tree_rings-0.1.5-py3-none-any.whl

Download URL napari_tree_rings-0.1.5-py3-none-any.whl
Size 32.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1c48013d4456444ffcb85500ce3a5731f5f0a2372f36d3ac5787c28cc29121b
BLAKE2b-256 checksum
How to use checksums
9b7b69655855c25a1cecf20e7673fc4621cbc5d7982b48b6b750ecc5804e2006
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Security for napari-tree-rings 0.1.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page