LT-LBP: Logarithmic Transformation Local Binary Pattern
LT-LBP (Logarithmic Transformation – Local Binary Pattern) is a lightweight Python library for texture analysis and feature extraction from grayscale images.
Mathematical Definition
$$ LT{-}LBP = \sum_{p=0}^{7} s(g_c - g_p) \cdot p $$
where:
s(x) = 1 if x > 0
s(x) = 0 otherwise
Here, g_c is the center pixel intensity and g_p are its 8 neighboring pixels (clockwise).
This method is robust for illuminated and low-light images, making it ideal for applications in:
- Face recognition
- Texture classification
- Medical image analysis
- Surveillance
- Industrial inspection
Features
- Compute LT-LBP for any grayscale image
- Generate normalized histogram feature vectors for machine learning models
- Fully vectorized NumPy implementation
- Lightweight and easy to integrate
- Suitable for research and reproducible experiments
Installation
pip install ltlbp
## License
MIT License
## Citation
If you use LT-LBP in your research, please cite:
@article{pankaja2023ltlbp,
title = {LT-LBP-Based Spatial Texture Feature Extraction with Deep Learning for X-Ray Images},
author = {Lakshmi, Pankaja and Sivagami, M.},
journal = {Journal of Computer Science},
volume = {20},
number = {1},
pages = {106--120},
year = {2023},
doi = {10.3844/jcssp.2024.106.120},
url = {https://thescipub.com/abstract/jcssp.2024.106.120}
}
The LT-LBP Python implementation is publicly available at:
https://pypi.org/project/ltlbp/
Release files for ltlbp 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ltlbp-1.1.1.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ltlbp-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / ltlbp-1.1.1.tar.gz
| Download URL | ltlbp-1.1.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7dd686f79ecd2ae31cb58e05ce07ab4a5986082896e778f416b788a26da64239
|
|
BLAKE2b-256 checksum How to use checksums |
fb5c806beb8ca49b3a9c04e062b23ae30d06c8aea883e0ee6eb7e33a9d21bd02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / ltlbp-1.1.1-py3-none-any.whl
| Download URL | ltlbp-1.1.1-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bde1da0924abeca0ba4dad903710e29cab2e50d5736edc3042b80f8e22b69b83
|
|
BLAKE2b-256 checksum How to use checksums |
aff3266b129e513243f841294a99a6d74cd9a32fb7e206d0b5bc6a8cec4a199a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|