PyTextureAnalysis is a Python package that contains tools to analyze the texture of images. This code contains functions to calculate the local orientation of fibers in an image, as well as the degree of coherence. A web application is also available for demonstrating the PyTextureAnalysis package, which allows users to analyze 2D grayscale images for texture analysis.
- Upload a 2D grayscale image for texture analysis
- Adjust image filter sigma, Gaussian local window, and window size for evaluating local density
- Adjust threshold value for pixel evaluation, spacing between orientation vectors, and scaling for orientation vectors
- Calculates local density, coherence, and orientation of the image
- Provides a progress bar for each stage of the analysis
A web application developed using Streamlit
is available at https://textureinformation-package.streamlit.app/. Check out the Example.ipynb
file to learn how to use the package to extract and visualize local fiber orientation and organization.
- Python 3.8 or higher
- Streamlit
- NumPy
- scikit-image
- Matplotlib
- Clone the repository.
- Install the required packages via
pip install -r requirements.txt
. - Run the web application via
streamlit run PyTextureAnalysis_StreamlitApp.py
.
- Open the web application via
streamlit run PyTextureAnalysis_StreamlitApp.py
. - Upload a 2D grayscale image for analysis.
- Adjust the various parameters using the sliders provided.
- Click the "Analyze" button to begin the analysis.
- View the progress of the analysis via the progress bar.
- View the results of the analysis.
This web application was developed, tested, and maintained by Ajinkya Kulkarni at the Max Planck Institute for Multidisciplinary Sciences, Göttingen.
For more information or to provide feedback, please visit the project repository or contact the developer directly.