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 CenterFile Exchange에서 Detection에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by