How can I get the Euler number of a binary matrix ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yazeed
am 28 Nov. 2013
Beantwortet: Image Analyst
am 28 Nov. 2013
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 Kommentare
Akzeptierte Antwort
Image Analyst
am 28 Nov. 2013
Try this (if you have the Image Processing Toolbox):
measurements = regionprops(binaryMatrix, 'EulerNumber');
EulerNumbers = [measurements.EulerNumber];
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Detection finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!