Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

Local Binary Patterns implementation using Python 3

Local Binary Pattern (LBP) is a simple yet very efficient texture operator which labels the pixels of an image by thresholding the neighborhood of each pixel and considers the result as a binary number. Click here to learn more.

Moreover, I also added a pattern code for two bins only to compare the result of LBP and two bin pattern.

Packages Used

The program is coded using Windows 10 (64 bit) operating system with Python version 3.5.2.

The following packages are necessary to run the program:

PackageVersionInstallation
OpenCV3.2.0pip install opencv-python
Numpy1.11.3pip install numpy
Matplotlib1.5.3pip install matplotlib

Image Used

alt Lena Söderberg

Output of lbp.py

The output consists of the gray scale image, LBP representation image and LBP histogram. alt output of lbp

Output of two_bin.py

The output consists of the gray scale image, Two Bin representation image and Two Bin histogram. alt output of lbp

References


Feel free to contribute for improvement.

About

Local Binary Patterns implementation using Python3 and OpenCV

Topics

Resources

Stars

92 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages