Opposite Color Local Binary Patterns (OC-LBP)

Implementation of LBP (Texture analysis) incorporating colors

You are now following this Submission

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. (2026). Opposite Color Local Binary Patterns (OC-LBP) (https://au.mathworks.com/matlabcentral/fileexchange/44284-opposite-color-local-binary-patterns-oc-lbp), MATLAB Central File Exchange. Retrieved .

Acknowledgements

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

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0