Skip to content

Implementation of Autocorrelation Function, Local Binary Patterns, and Co-Occurrence Matrices for images' texture analysis

License

Notifications You must be signed in to change notification settings

MatteoZanella/siv-texture-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fabric Texture Analysis Toolkit

This Python toolkit is designed for advanced fabric texture analysis using statistical methods, enabling the extraction and examination of texture features. Intended for integration into a larger tool, it will be used by students in the Signal, Image and Video course to visually create signal processing workflows. The module emphasizes clear documentation and a user-friendly interface, ensuring seamless integration and ease of use in future educational settings.

Texture Analysis Techniques

  • Autocorrelation Function (ACF)
  • Local Binary Patterns (LBP)
  • Co-Occurrence Matrices (CoOccur)

Installation and Usage

  1. Clone the repository in your project
git clone https://github.com/MatteoZanella/siv-texture-analysis.git
  1. Install the requirements
cd siv-texture-analysis
pip install -r requirements.txt
  1. Import the modules in your code
from texture.analysis import ACF, CoOccur, LBP
from PIL import Image

# Load an image
image = Image.open('./tests/textures/lena.png')

# Compute Autocorrelation Function
acf = ACF(image)

# Compute Local Binary Patterns
lbp = LBP(image)

# Compute Co-Occurrence Matrices
com = CoOccur(image)

Running Tests

To run the test suite, use Python's unittest module:

# Run all tests
python -m unittest discover -s tests

About

Implementation of Autocorrelation Function, Local Binary Patterns, and Co-Occurrence Matrices for images' texture analysis

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages