A plugin to compute a nematic field and topological defects on an image.
This napari plugin was generated with copier using the napari-plugin-template.
You can install orientationfield via pip:
pip install git+https://github.com/ChrisMzz/OrientationField
Nematics are (2,2)-shaped arrays of the form :
representing an orientation in a hemisphere (like arrows without arrowheads).
We have
We can use builtin SciPy convolutions with kernels
For all (2r+1,2r+1) where r is the radius of a circle defined by a specified parameter),
Because of the equivalent amount of information carried by the tuples
Will write more when paper gets closer to being published. For now, installing the package in an environment and running napari in the environment will load the plugin in napari, which can be used with the interface directly.
Here is what the plugin widget looks like :
A brief overview of the parameters :
The tool can be used on non biological data :
Here is an example on The Starry Night by Van Gogh, this time showcasing defect computation :
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.
Distributed under the terms of the MIT license, "orientationfield" is free and open source software
If you encounter any problems, please [file an issue] along with a detailed description.





