Opposite Color Local Binary Patterns (OC-LBP)
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.