How to find the islands of a binary matrix

7 vues (au cours des 30 derniers jours)
MINA
MINA le 27 Fév 2018
If you have a 2D binary matrix, how would you find the islands of ones?
Thanks

Réponse acceptée

Walter Roberson
Walter Roberson le 27 Fév 2018
regionprops() and request whichever identification mode you prefer, such as BoundingBox or 'PixelIdxList' or 'PixelList' or 'SubarrayIdx'

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by