How to find the islands of a binary matrix

9 Ansichten (letzte 30 Tage)
MINA
MINA am 27 Feb. 2018
Beantwortet: Walter Roberson am 27 Feb. 2018
If you have a 2D binary matrix, how would you find the islands of ones?
Thanks

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 27 Feb. 2018
regionprops() and request whichever identification mode you prefer, such as BoundingBox or 'PixelIdxList' or 'PixelList' or 'SubarrayIdx'

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Computations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by