How can I get the Euler number of a binary matrix ?

2 ビュー (過去 30 日間)
Yazeed
Yazeed 2013 年 11 月 28 日
回答済み: Image Analyst 2013 年 11 月 28 日
Hi , i`ve never programmed in matlab before and I want to calculate the Euler Number of a binary matrix such as
0001000
0001000
0001000
0001000
I hope that my question is clear.
Thank You.

採用された回答

Image Analyst
Image Analyst 2013 年 11 月 28 日
Try this (if you have the Image Processing Toolbox):
measurements = regionprops(binaryMatrix, 'EulerNumber');
EulerNumbers = [measurements.EulerNumber];

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDetection についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by