I =
0 0 0 0 0 0 0
0 1 1 0 1 1 0
1 0 1 0 1 0 1
0 1 1 0 1 0 1
0 0 0 0 1 1 0
0 0 0 0 0 0 0
I need how many closed regions in the matrix. Here obviously two.Is there any one to help?

 採用された回答

Andrei Bobrov
Andrei Bobrov 2011 年 6 月 20 日

0 投票

B = bwboundaries(I,8,'noholes')

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Language Fundamentals についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by