function feaOfBB = getBBFeat(savepath,i,medFeatMat,location,blockHeight,blockWidth,step)
% blockproc的函数句柄
if ~isdir(savepath)
mkdir(savepath);
end
[h,w,~] = size(medFeatMat);
medFeaOfBB = medFeatMat(location(1):(location(1)+blockHeight-1),location(2):(location(2)+blockWidth-1),:);
feaOfBB = [location(1),location(2), blockHeight,blockWidth,histAndVectOfBb(medFeaOfBB)];
dlmwrite([savepath 'person_' num2str(i,'%04d') '.txt'],feaOfBB,'-append');
if location(1)+blockHeight+step-1 <= h
medFeaOfBB2 = medFeatMat(location(1)+step:(location(1)+blockHeight+step-1),location(2):(location(2)+blockWidth-1),:);
feaOfBB2 = [location(1)+step,location(2),blockHeight,blockWidth,histAndVectOfBb(medFeaOfBB2)];
dlmwrite([savepath 'person_' num2str(i,'%04d'