How can I get the Euler number of a binary matrix ?
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
Image Analyst
2013년 11월 28일
Try this (if you have the Image Processing Toolbox):
measurements = regionprops(binaryMatrix, 'EulerNumber');
EulerNumbers = [measurements.EulerNumber];
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Detection에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!