[Insight-users] Determine Euler number of binary image in ITK (similar to bweuler in Matlab)
Buuren, T.P.H. (Thomas) van
thomas.vanbuuren at tno.nl
Mon Oct 10 11:45:26 EDT 2011
Sergio, thank you for the response. As you said, it was pretty straightforward.
For the record: I calculated the Euler number like this given a label image:
1. isolate the cluster/component using BinaryThresholdImageFilter
2. calculate a version with possible holes filled using BinaryFillHoleImageFilter
3. Use XORImageFilter between the two results in an image with only the holes
4. Use ConnectedComponentImageFilter to count the holes.
The resulting Euler Number is 1 - nrHoles.
________________________________
From: Sergio Vera [mailto:sergio.vera at alma3d.com]
Sent: woensdag 5 oktober 2011 17:01
To: Buuren, T.P.H. (Thomas) van
Cc: insight-users at itk.org
Subject: Re: [Insight-users] Determine Euler number of binary image in ITK (similar to bweuler in Matlab)
Hi Thomas
To my knowledge, a single filter that does that calculation does not exists, but it should be pretty straightforward to do by using the label manipulation filters that you may use if you compile ITK with ITK_REVIEW set to true.
Regards
On Wed, Oct 5, 2011 at 2:46 PM, Buuren, T.P.H. (Thomas) van <thomas.vanbuuren at tno.nl<mailto:thomas.vanbuuren at tno.nl>> wrote:
Does anyone know if there is a way in ITK to determine the Euler number of a binary image, similar to the Matlab's bweuler(...) ?
Thank you,
Kind Regards
Thomas
This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/emaildisclaimer
_____________________________________
Powered by www.kitware.com<http://www.kitware.com>
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
--
Sergio Vera
Alma IT Systems
C/ Vilana, 4B, 4º 1ª
08022 Barcelona
T. (+34) 932 380 592
www.alma3d.com<http://www.alma3d.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111010/5fc31ddb/attachment.htm>
More information about the Insight-users
mailing list