How to find the islands of a binary matrix

9 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 Matrix Computations 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!