That line
tabela(i)=trainingFeatures(i)
makes no sense at all. It stores numImages value in tabela , but for image i, it stores the 1st point of the ith feature vector and nothing else. I suspect you wanted either:
tabela = zeros(20, 64, numImages);
for i = 1:numimages
tabela(:, :, i) = trainingFeatures;
end
You then get the feature vector for a given image with
tabela(:, :, imagenumber)
Or you can use
tabela = cell(1, numImages);
for i = 1:numimages
tabela{i} = trainingFeatures;
end
You then get the feature vector for a given image with
Best Answer