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!