I am right now working on 1-D local binary pattern of an EEG signal. After getting the local binary pattern of the signal we should extract histogram features. please help me how to extract them using matlab.
Thank you for the answer, but that command is used to extract the lbp features of an image. But in my case i have an EEG signal in specific a time series. So will this hold good for a signal also?
You can try it. There are some projects uploaded on matlab central regarding EEG signal analysis. You should have a look, you might get something of your use. One such project that I once read is
%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.