필터 지우기
필터 지우기

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 CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by