How to save feature value from histogram of LBP image in Matlab?

…衆ロ難τιáo~ 提交于 2019-12-02 12:24:55

you should initialize the feature matrix before entering the outer loop (if you could know the size of LBP):

featureMatrix = zeros(total_images,size_LBP); % where size_LBP is the number of columns of LBP.

then replace featureMatrix {x} = hist(LBP,0:255); in the loop with:

featureMatrix(x,:) = hist(LBP,255);

I hope this works for you!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!