HOG features for Image Data store

조회 수: 3 (최근 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