Index in position 1 exceeds array bounds (must not exceed 8).
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
this is my error:
Index in position 1 exceeds array bounds (must not exceed 8).
Error in descriptor_PHOG (line 54)
bh_roi = bh(roi(1,1):roi(2,1),roi(3,1):roi(4,1));
2 commentaires
Réponses (1)
Jan
le 22 Mar 2019
I do not know, which of the variables is "your image". That is is "binary" does not concern the problem.
Because roi is used with indices 1 to 4 only, but the error message mentions 8 as limit, the problem is the size of bh. This means, that at least one of the elements of:
roi(1,1):roi(2,1)
is larger than 8, but bh has 8 rows only.
The forum cannot guess how to fix this based on the posted code.
0 commentaires
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!