How to find the islands of a binary matrix

조회 수: 10 (최근 30일)
MINA
MINA 2018년 2월 27일
답변: Walter Roberson 2018년 2월 27일
If you have a 2D binary matrix, how would you find the islands of ones?
Thanks

채택된 답변

Walter Roberson
Walter Roberson 2018년 2월 27일
regionprops() and request whichever identification mode you prefer, such as BoundingBox or 'PixelIdxList' or 'PixelList' or 'SubarrayIdx'

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by