Package for greyscale orientation analysis on 2D and 3D images
Project description
OrientationPy is the pythonic successor to the well-loved OrientationJ Fiji Plugin (github) from the BIG (Biomedical Imaging Group) in EPFL. It is a library that takes in 2D images or 3D volumes and computes the orientation of the greylevels. A key step is the computation of image gradients, for which we offer a number of different techniques.
Please visit the OrientationPy online docs.
Highlights
Please see the Example Gallery for some small examples of the use of the code, allowing the computation of orientations maps like this:
Other noteworthy python projects
Other greylevel-measuring software that we’re aware of in python:
skimage.feature.structure_tensor: Only using finite differences for gradient
structure-tensor: Sobel filter for gradient
pynamix.measure.orientation_map: FFT-based approach
Todo
[X] 3D tests
[X] 3D coherency and energy
[X] integrate gradients and structure tensor into gradientStructureTensor
[X] Change 3D orientation system to z-top
[X] compare (and check compatibility) to skimage structure tensor
[X] write anglesToVectors()
[X] numba speedup?
[X] dict output to computeOrientations
[X] Write sphinx home page
[x] spam plots
[_] in Boxed functions, return box centres? AND/OR accept centres and sizes?
[_] factor for non-isotropic voxels
[_] asserts for input sanity (i.e., gradient shapes all the same)
[_] VTK out
[_] scripts with tiff in?
[_] rose plot
[_] rename plotOrientations → ZalignedStereoPlot?
[_] investigate smoothed ‘pole plots’
[_] in plotting.py create an image synthesizer?
[_] mask greylevels
[_] dask
Acknowledgements
The initial prototype was coded by Alexandru Vasile during a 6-week visit to the EPFL Center for Imaging, supported by Mariana Verezhak from PSI
We used some of this data for testing: https://zenodo.org/record/5483719#.Yyra4vFBy2A
We initialised this repository from a cookie-cutter: https://github.com/Nekroze/cookiecutter-pypackage
History
0.2.0.2 (2023-01-13) Moved code to /src so it gets packaged?
0.2.0.1 (2023-01-13) Moved to pyproject.toml
0.2.0.0 (2023-01-13) First version on pip (non-working due to requirements.txt)
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
File details
Details for the file orientationpy-0.2.0.2.tar.gz
.
File metadata
- Download URL: orientationpy-0.2.0.2.tar.gz
- Upload date:
- Size: 62.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f0ffb2826ad0f1627e80f9a923ab3564e1936de3c742af0be51a7d66c1757f1 |
|
MD5 | b4617112afa1dd27eac334a59422d520 |
|
BLAKE2b-256 | 14da50665ac474c9142db2aeb2e645370ce37f673212967f5976125f60b11bb9 |
File details
Details for the file orientationpy-0.2.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: orientationpy-0.2.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 49.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc661522cafbe09e93d7cfa40abc65206292bb20b7ddb88e676a111579b04b5c |
|
MD5 | 4a037ec95d59d324b7cd6872088b125a |
|
BLAKE2b-256 | 1ffd5b37279c3ed29974d1e56c952cad8796570d3c4269bbc8443c73aa7c22d2 |