Skip to main content

napari-process-points-and-surfaces (nppas)

License PyPI Python Version tests codecov Development Status napari hub DOI

Process and analyze surfaces using vedo in napari.

img.png The nppas gastruloid example is derived from AV Luque and JV Veenvliet (2023) which is licensed CC-BY and can be downloaded from here: https://zenodo.org/record/7603081

Usage

You find menus for surface generation, smoothing and analysis in the menu Tools > Surfaces and Tools > Points. For detailed explanation of the underlying algorithms, please refer to the vedo documentation.

For processing meshes in Python scripts, see the demo notebook. There you also learn how this screenshot is made:

img.png

For performing quantitative measurements of surface in Python scripts, see the demo notebook. There you also learn how this screenshot is made:

img.png

Surface measurements and annotations

Using the menu Tools > Measurement tables > Surface quality table (vedo, nppas) you can derive quantiative measurements of the vertices in a given surface layer.

img_1.png

To differentiate regions when analyzing those measurements it is recommended to use the menu Tools > Surfaces > Annotate surface manually (nppas) after measurements have been made. This tool allows you to draw annotation label values on the surface. It is recommended to do activate a colorful colormap such as hsv before starting to draw annotations. Furthermore, set the maximum of the contrast limit range to the number of regions you want to annotate + 1. Annotations can be drawn as freehand lines and circles.

img.png

After measurements and annotations were done, you can save the annotation in the same measurement table using the menu Tools > Measurement tables > Surface quality/annotation to table (nppas)

img.png

For classifying surface vertices using machine learning, please refer to the napari APOC documentation.

Measurement visualization

To visualize measurements on the surface, just double-click on the table column headers.

img.png

Installation

You can install napari-process-points-and-surfaces via mamba/conda and pip:

mamba install vedo vtk libnetcdf=4.7.4 -c conda-forge
pip install napari-process-points-and-surfaces

Troubleshooting: Open3d installation

Since version 0.4.0, nppas does no longer depend on open3d. Some deprecated functions still use Open3d though. Follow the installation instructions in the open3d documentation to install it and keep using those functions. Also consider updating code and no longer using these deprecated functions. See release notes for details.

See also

There are other napari plugins with similar / overlapping functionality

And there is software for doing similar things:

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-process-points-and-surfaces" is free and open source software

Acknowledgements

Some code snippets and example data were taken from the vedo and open3d repositories and documentation. See thirdparty licenses for licensing details. The Standford Bunny example dataset has been taken from The Stanford 3D Scanning Repository. The nppas gastruloid example is derived from AV Luque and JV Veenvliet (2023) which is licensed CC-BY and can be downloaded from here: https://zenodo.org/record/7603081

Issues

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

Metadata

Release files for napari-process-points-and-surfaces 0.5.0

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-process-points-and-surfaces 0.5.0
File Size Uploaded
napari-process-points-and-surfaces-0.5.0.tar.gz 1.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-process-points-and-surfaces 0.5.0
File Interpreter ABI Platform
napari_process_points_and_surfaces-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.4 MB

Release files / napari-process-points-and-surfaces-0.5.0.tar.gz

Download URL napari-process-points-and-surfaces-0.5.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
ac0fc58002e9c5a3c8ea11364bf084c1cd7549c02fd62bbdb54d6b8262801da6
BLAKE2b-256 checksum
How to use checksums
6d1c39bc6845d530883bf081cbfb7a17b785245b4c326130ef2004dd8791bdee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.15

Release files / napari_process_points_and_surfaces-0.5.0-py3-none-any.whl

Download URL napari_process_points_and_surfaces-0.5.0-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4876cf0697656d28a6d713d9201f3e90578f222d781dad62ecf765976724ce6a
BLAKE2b-256 checksum
How to use checksums
e65f160d8e33918c389e8d4cdfdb7bd8a91a8565bbd7b77c46c3ed84de7430ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.15

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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