通过MATLAB提取图像的LBP特征,matlab2021a测试通过
I_MB=zeros(mSub,nSub);
for ii=1:mSub
for jj=1:nSub
I_center=I(1+mRem:mRem+mSub*blockSize,1+nRem:nRem+nSub*blockSize);
SubRgn = I_center( (ii-1)*blockSize+1 :ii*blockSize, (jj-1)* blockSize+1:jj*blockSize );
I_MB(ii,jj)=mean(SubRgn(:));
end
end