Find continuous elements in matrix
Ältere Kommentare anzeigen
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 Kommentar
Walter Roberson
am 18 Jun. 2012
Do you have the Image Processing Toolbox?
Akzeptierte Antwort
Weitere Antworten (1)
Sean de Wolski
am 18 Jun. 2012
CC = bwconncomp(a);
CC.PixelIdxList{:}
Kategorien
Mehr zu Spline Postprocessing finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!