Find continuous elements in matrix
이전 댓글 표시
Hi everyone,
my problem is the following: i've one matrix made of two possible values (i.e. 1 and 0). I also have the coordinates of one "starting point". I would like to select all the ones that are connected to this point without selecting the ones that are separeted by zeros. I can't figure out a way to solve the problem... can you help me?
Thanks in advance, Fabio
댓글 수: 1
Walter Roberson
2012년 6월 18일
Do you have the Image Processing Toolbox?
채택된 답변
추가 답변 (1개)
Sean de Wolski
2012년 6월 18일
CC = bwconncomp(a);
CC.PixelIdxList{:}
카테고리
도움말 센터 및 File Exchange에서 Spline Postprocessing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!