%function [ LBP ] = LBP( I2) [f,p] = uigetfile('*.jpg;*.bmp'); I = imread([p f]); I = imresize(I,[256 256]); cform = makecform('srgb2lab'); lab = applycform(I,cform); ll = lab(:,:,1); I2=ll; m=size(I2,1); n=size(I2,2); for i=2:m-1 for j=2:n-1 c=I2(i,j); I3(i-1,j-1)=I2(i-1,j-1)>c; I3(i-1,j)=I2(i-1,j)>c; I3(i-1,j+1)=I2(i-1,j+1)>c; I3(i,j+1)=I2(i,j+1)>c; I3(i+1,j+1)=I2(i+1,j+1)>c; I3(i+1,j)=I2(i+1,j)>c; I3(i+1,j-1)=I2(i+1,j-1)>c; I3(i,j-1)=I2(i,j-1)>c; LBP(i,j)=I3(i-1,j-1)*2^7+I3(i-1,j)*2^6+I3(i-1,j+1)*2^5+I3(i,j+1)*2^4+I3(i+1,j+1)*2^3+I3(i+1,j)*2^2+I3(i+1,j-1)*2^1+I3(i,j-1)*2^0; end end figure(); imshow(LBP);
how do I extract lbp feature vector after doing the above code and what feature vector are we getting ? so that I can feed this feature vector for neural classification.