File Exchange

image thumbnail

Shift based LBP

version 1.1.0.0 (84.7 KB) by Nikolay S.
The function implements LBP (Local Binary Pattern analysis), in a shift based manner.

4 Downloads

Updated 21 Feb 2015

View License

The LBP tests the relation between pixel and it's neighbors, encoding this relation into a binary word. This allows detection of texture and more complicated patterns & features.
The function is inspired by materials published by Matti Pietikainen in http://www.cse.oulu.fi/CMV/Research/LBP . This implementation however is not totally aligned with the methods proposed by Professor Pietikainen (see Issues & Comments). The current method proposes an implementation based on shifted images- which is beneficial in run time, especially in cases of large filter support. This is also a different way of thinking about the LBP algorithm. Two image shift functions are proposed- a circshift based one- which is faster, but less accurate, and filter2 based one- which takes more time and actually is exactly the same as efficientLBP proposed before.

Comments and Ratings (3)

I've applied your operator but i seem to acquire a different decimal number than expected. For example say these are my inputs:
4 4 4 4
4 4 4 4
4 4 4 4
4 4 4 4
I'm then attaining these decimal numbers as shown below:
193 193 241 241
195 193 241 241
199 199 255 255
199 199 255 255
Could you please tell me if i'm doing something wrong?
Thank you

jayanti

Updates

1.1.0.0

Modified description image

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

Inspired by: Image/matrix shift, Local binary patterns