Can anyone state what is the reason for ambiguity (considering the clockwise direction starting from top left corner in 8 neighbor surrounding pixel for uniform LBP).

1 view (last 30 days)
Input Matrix ==>
90 101 67
118 83 44
196 105 48
After using the inbuilt LBP feature extractor in MATLAB i.e. extractLBPFeatures(matrix_name) (Inbuilt is uniform local binary pattern.) The value returned is:
Columns 1 through 16
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 17 through 32
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 33 through 48
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 49 through 59
0 0 0 0 0 0 0 0 0 1.0000 0
But, my algorithm of uniform local binary pattern gives this histogram:
Columns 1 through 16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 17 through 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 33 through 48 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 Columns 49 through 59 0 0 0 0 0 0 0 0 0 0 0
Explanation of algorithm:
1)
90 101 67
118 83 44
196 105 48
+++++++++++++++++ 2)
1 1 0
1 X 0
1 1 0
+++++++++++++++++ 3)
from top left corner : clockwise direction we get 8 bit binary pattern as 11000111 (base 2) = 191 (base 10). Thus, 1 is added to 199 pixel i.e. 40th uniform pattern. So, 40th column is 1 whereas, inbuilt function produced 58th column to be 1 which is indicating 255 pixel.
0 0 0
0 199 0
0 0 0
+++++++++++++++++
  1 Comment
Image Analyst
Image Analyst on 9 Feb 2018
I don't have that function. What toolbox is it in (List it in the products section to the left)? Why do you get 59 columns instead of a single 8 bit binary number which gets converted into a single decimal number?

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 29 May 2018
See attached demo. You can see that the pattern changes but not dramatically as the LSB is rotated.

Community Treasure Hunt

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

Start Hunting!