Skip to main content

Napari plugin for OrientationPy.

Project description

EPFL Center for Imaging logo

napari-orientationpy

Analyze greylevel orientations in 2D and 3D in Napari. This plugin is based on the Orientationpy project.

Installation

Python installation

You can install napari-orientationpy as a Python package via pip:

pip install napari-orientationpy

Executable installer

Alternatively, you can download, unzip, and execute the latest installer from the Releases page to install napari-orientationpy as a standalone app. The first time you run the app, it'll take some time to install the project on your computer (this is only on the first run).

Usage

To get started, open an image in the Napari viewer and start napari-orientationpy from the Plugins menu:

Plugins > Orientation measurement (Napari Orientationpy)
  1. Select the structural scale parameter sigma. This value control represents the scale at which the image gradients are computed. Try different values of sigma to understand what works best for your images. A reasonable guess would be the order in size, in pixels, of the structures that you are interested in. For example, if you are imaging fibers that appear to be about 4 pixels wide, try to set a value of sigma=4.

  1. If you are analyzing a 3D image, select fiber or membrane mode. In fiber mode, the orientation normals follow fibrous structures. In membrane mode, the orientations are normal to the surface of membranous structures.

  2. Decide which outputs you'd like to visualize.

  • The color-coded orientation is a pixel-wise representation of 3D orientations as colors (similar colors = similar orientations).
  • The orientation vectors get rendered in a Vectors layer in Napari. They are sampled on a regular grid defined by the Spacing (X), Spacing (Y) and Spacing (Z) values (for 2D images, the Z value is ignored).
  • You can also output the local orientation gradient (misorientation).
  1. Compute orientation. This button will trigger the orientation computation only when necessary (i.e. when the value of sigma, the mode or the image have changed). If you only adjust the orientation vectors parameters, clicking the compute button will update the results very fast.
  2. Save orientation (CSV). This will save the orientation measurements as a CSV table with columns X, Y, Z, theta, phi, for all the pixels in the image.

Sample images

We provide a few sample images to test our plugin. You can open them from:

File > Open Sample > Napari Orientationpy

Contributing

Contributions are very welcome.

License

This software is distributed under the terms of the BSD-3 license.

Issues

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

Acknowledgements

This project uses the PyApp software for creating a runtime installer.

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_orientationpy-0.0.8.tar.gz (10.2 MB view details)

Uploaded Source

Built Distribution

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

napari_orientationpy-0.0.8-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file napari_orientationpy-0.0.8.tar.gz.

File metadata

  • Download URL: napari_orientationpy-0.0.8.tar.gz
  • Upload date:
  • Size: 10.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for napari_orientationpy-0.0.8.tar.gz
Algorithm Hash digest
SHA256 710346f6d5bc8a525c61946838150f0a4c3035a2b7973190af2830cfbafd75db
MD5 5028f9793a0900ecd3807e1646b978d6
BLAKE2b-256 304b6ed2f73b7898fa5c745816acbf8d5da70de2c8bfc8e6a909b1dd594f18d2

See more details on using hashes here.

File details

Details for the file napari_orientationpy-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_orientationpy-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ec644625271b1c3bd7beb86309bfde2e1db8d5ccce52d209005cbe88c20bf215
MD5 bc7cf9bdda45a2a9e6fda9f7388397c1
BLAKE2b-256 22698452f71a4b5c7b07ba2be2cffdf3a566a5457acc3f58d3d8e5178a2ec6e7

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