View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Local Binary Patterns transformation of the input image

3.3 | 3 ratings Rate this file 42 Downloads (last 30 days) File Size: 1.42 KB File ID: #37781 Version: 1.1
image thumbnail

Local Binary Patterns transformation of the input image


Olegs Nikisins (view profile)


09 Aug 2012 (Updated )

This function performs a Local Binary Patterns transformation for the input image

| Watch this File

File Information

This function computes the LBP transformation of the input image Input_Im.
The parameters of the LBP operator are (P = 8, R),
where P - the number of sampling points in the region with the radius R.
Radius R is the input parameter of the function.
Possible values for R = 1, 2, 3, etc.
If input image is COLOUR, then the gray-scale transformation is performed.

Required Products MATLAB
MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
17 Dec 2016 Augustine Ekweariri

1) @bejaoui sawssen, you can convert the LPBP output matrix from double to uint8 using;

A = uint8(LBP_image);

2) @Santosh Shrikhande, to convert any LBP output which is usually a matrix to feature vector,

A = LBP_image(:);

% A becomes a vector.

Also, you can select the features of this LBP from LBP binary and comparing it with the LBP_image before converting to a feature vector.

11 May 2016 bejaoui sawssen

I was tested this code, but an error was occured " Undefined function or method 'LBP' for input arguments of type 'uint8'"
How can i proceed ?

Comment only
07 Aug 2015 Santosh Shrikhande

very nice code for LBP but how to create a feature vector of the LBP image.

Comment only
03 Jul 2014 poongothai rajan

L = 2*R + 1; %% The size of the LBP label

what is this..wts the use of this

20 Mar 2013 dhbk

dhbk (view profile)


09 Dec 2012 Nagesh

Nagesh (view profile)

Thanks for Code,
I use corr2 function & comapare Original image with other images such as bright,dark & so on .....
take LBP of the same & got the result as..
corrrelation coef. as
B =(Original Images)

0.9916 0.9931 0.9290 0.9830 0.7434

A =(LBP converted Original Images)

0.8497 0.8919 0.8771 0.8510 0.8329

but this result are exactlt opposite,

Tell me that is correct if wrong then ,How can i prove this using matlab...

Comment only
16 Aug 2012 1.1

Title of the file

Contact us