Effacer les filtres
Effacer les filtres

How to solve Index exceeds matrix dimensions probelm ?

1 vue (au cours des 30 derniers jours)
sufian ahmed
sufian ahmed le 11 Août 2017
Commenté : sufian ahmed le 12 Août 2017
I am using ind2sub for connected component.but problem is that when i run multiple images and pass on each connected component into ind2sub function, it shows error. It is ok when i run only single image.But creates problem for multiple images. I dont understand what the problem is ? how can i solve it ?
ERROR: Index exceeds matrix dimensions.
Error in try5 (line 214) [yyy,xxx] = ind2sub(CC.ImageSize,CC.PixelIdxList{id});
  2 commentaires
Chad Greene
Chad Greene le 11 Août 2017
What is the size of CC.PixelIdxList? And what is the value of id?
sufian ahmed
sufian ahmed le 12 Août 2017
it changes based on image

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 12 Août 2017
You are using a value of id that is greater than the number of connected components .
  1 commentaire
sufian ahmed
sufian ahmed le 12 Août 2017
Thanks. Many days i did not get answer from u. thanks :)

Connectez-vous pour commenter.

Plus de réponses (0)

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!

Translated by