Napari plugin for OrientationPy.
Project description
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)
- Select the structural scale parameter
sigma. This value control represents the scale at which the image gradients are computed. Try different values ofsigmato 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.
-
If you are analyzing a 3D image, select
fiberormembranemode. Infibermode, the orientation normals follow fibrous structures. Inmembranemode, the orientations are normal to the surface of membranous structures. -
Decide which outputs you'd like to visualize.
- The
color-coded orientationis a pixel-wise representation of 3D orientations as colors (similar colors = similar orientations). - The
orientation vectorsget rendered in aVectorslayer in Napari. They are sampled on a regular grid defined by theSpacing (X),Spacing (Y)andSpacing (Z)values (for 2D images, theZvalue is ignored). - You can also output the local
orientation gradient(misorientation).
- Compute orientation. This button will trigger the orientation computation only when necessary (i.e. when the value of
sigma, themodeor theimagehave changed). If you only adjust theorientation vectorsparameters, clicking the compute button will update the results very fast. - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file napari_orientationpy-0.1.0.tar.gz.
File metadata
- Download URL: napari_orientationpy-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f16a4a414d9aed0bf973d359ac21b5806f384a645028ded2d900eb4f6650daf6
|
|
| MD5 |
93e2a2e9c8bf22900d20dc191e5e624b
|
|
| BLAKE2b-256 |
17f9e9d48e95935bec04c248f9d9966522977e22bcb929764459856780c65bb3
|
File details
Details for the file napari_orientationpy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: napari_orientationpy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6542e265a46b8c4def1df564377d48713d6082fc7a887c5519779b6a472aaa17
|
|
| MD5 |
30c87f6541dca3ac901a02f62616220b
|
|
| BLAKE2b-256 |
874d367e33b1db534a8e49c2ff5b059bd437cdc09c9cfab0763870ebdfdaaf7a
|