At the very end of the this sample code I get an error message at the line 100 :
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
Error in Luca3 (line 100)
trainingFeatures(i, :) = extractHOGFeatures(img,'CellSize',cellSize);
I do not know how to make it work. Somone could maybe help me find a solution ?
I'm simply copying the code from the matlab documentation following :
https://ch.mathworks.com/help/vision/ug/digit-classification-using-hog-features.html
Cite As
Luca Parziale (2024). Digits multi-class classification HGO & SVM (https://www.mathworks.com/matlabcentral/fileexchange/113095-digits-multi-class-classification-hgo-svm), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |