How to find the islands of a binary matrix

8 views (last 30 days)
If you have a 2D binary matrix, how would you find the islands of ones?
Thanks

Accepted Answer

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

More Answers (0)

Categories

Find more on Operating on Diagonal Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!