HOG features for Image Data store

2 次查看(过去 30 天)
sara khaled
sara khaled 2018-2-25
I typed the same code of digit classification i change the datastore only by another images but their sizes are not equal, Is that problem ? numImages = numel(trainingSet.Files); trainingFeatures = zeros(numImages, hogFeatureSize, 'single');
for i = 1:numImages img = readimage(trainingSet, i);
img = rgb2gray(img);
% Apply pre-processing steps
img = imbinarize(img);
trainingFeatures(i, :) = extractHOGFeatures(img, 'CellSize', cellSize);
end
% Get labels for each image. trainingLabels = trainingSet.Labels;
Subscripted assignment dimension mismatch.
Error in Untitled3 (line 119) trainingFeatures(i, :) = extractHOGFeatures(img, 'CellSize', cellSize);

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Computer Vision with Simulink 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by