Opposite Color Local Binary Patterns (OC-LBP)

Implementation of LBP (Texture analysis) incorporating colors
1.9K Downloads
Updated 12 Nov 2013

View License

The function implements OC-LBP (Opposite COlor Local Binary Pattern analysis).
See OC-LBP description in: [1] Maenpaa T. "The local binary pattern approach to texture analysis{extensions and applications"; 2003. Ph.D. thesis, University of Oulu. [2] Maenpaa T. Matti P. and Jaakko V."Separating Color and Pattern Information for Color Texture Discrimination"; University of Oulu, Finland

Syntax
OCLBP= oppositeColorLBP(inImg);
OCLBP= oppositeColorLBP(inImg, filtDims);
OCLBP= oppositeColorLBP(inImg, filtDims, chnsComb);
OCLBP= oppositeColorLBP(inImg, filtDims, chnsComb, isEfficient);

Description
The OCLBP tests the relation between pixel and it's neighbors, encoding this relation into a binary word. This allows detection of patterns/features. As opposed to the regular LBP, the pixel and it's neighborhood can belong to different colors, thus resulting in ac Opposite Color relations. This operator is proposed to identify inter color pattern relation, capable of achieving much richer feature space.

Cite As

Nikolay S. (2024). Opposite Color Local Binary Patterns (OC-LBP) (https://www.mathworks.com/matlabcentral/fileexchange/44284-opposite-color-local-binary-patterns-oc-lbp), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Local binary patterns, Snail/helix matrix indexing

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0