フィルターのクリア

How to solve Index exceeds matrix dimensions probelm ?

1 回表示 (過去 30 日間)
sufian ahmed
sufian ahmed 2017 年 8 月 11 日
コメント済み: sufian ahmed 2017 年 8 月 12 日
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 件のコメント
Chad Greene
Chad Greene 2017 年 8 月 11 日
What is the size of CC.PixelIdxList? And what is the value of id?
sufian ahmed
sufian ahmed 2017 年 8 月 12 日
it changes based on image

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2017 年 8 月 12 日
You are using a value of id that is greater than the number of connected components .
  1 件のコメント
sufian ahmed
sufian ahmed 2017 年 8 月 12 日
Thanks. Many days i did not get answer from u. thanks :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by