MATLAB: How to have a single value for feature matrix

feature extractionimage processing

I have extracted feature from a image using SURF. i don't know how to check the result,the extracted features are in matrix of 64 column.How to make matrix to single value i.e adding matrix values

Best Answer

Assuming that you already computed a feature which is a row vector of size 64,,
% sumfeature
rowvector = rand(1,64); % assuming a 64 size row vector...replace by your feature
finalFeature = sum(rowvector(:));
sprintf('%s %d','finalFeature = ' , finalFeature)
Hope it helps.
Let me Know
Related Question