How to execute LBP code

3 Ansichten (letzte 30 Tage)
senthil vadivu
senthil vadivu am 19 Jun. 2018
Hii
I have downloaded efficient LBP code from matlab exchange code .but i facing some errors I have downloaded LBP code from other website This is the main file I=imread('D:\Fire-smoke\kurangani-photos\k4.jpg'); mapping=getmapping(8,'u2'); H1=lbp(I,1,8,'mapping','h'); %LBP histogram in (8,1) neighborhood %H1=lbp(I,1,8,0,'h'); %LBP histogram in (8,1) neighborhood %using uniform patterns subplot(2,1,1),stem(H1);
H2=lbp(I);
subplot(2,1,2),stem(H2);
SP=[-1 -1; -1 0; -1 1; 0 -1; -0 1; 1 -1; 1 0; 1 1];
I2=lbp(I,SP,0,'i'); %LBP code image using sampling points in SP
%and no mapping. Now H2 is equal to histogram
%of I2.
I have attached the lbp.m and gettingmapping.m file
When i tried to execute main.m i am getting this error
Attempt to execute SCRIPT hist as a function: C:\Mathworks Matlab R2015a (64-Bit)-[FirstUploads]\programs\hist.m
Error in lbp (line 158) result=hist(result(:),0:(bins-1));
Error in newLBPCheck (line 3) H1=lbp(I,1,8,'mapping','h'); %LBP histogram in (8,1) neighborhood
Please find code of lbp in this link LBP code
please help me

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by