How to solve Index exceeds matrix dimensions probelm ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
sufian ahmed
am 11 Aug. 2017
Kommentiert: sufian ahmed
am 12 Aug. 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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 12 Aug. 2017
You are using a value of id that is greater than the number of connected components .
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!