[Insight-users] An informal comparison between itk::BinaryDilateImageFilter and Matlab's imdilate()

Bill Lorensen bill.lorensen at gmail.com
Mon Aug 15 14:31:44 EDT 2011


Did you compile ITK with a BUILD_TYPE Release?

2011/8/15 Ramón Casero Cañas <rcasero at gmail.com>

>
> Hi all,
>
> After writing a program to run filters derived from itk::ImageToImageFilter
> in Matlab [1], I though to make an informal comparison between ITK and
> Matlab's 3D binary dilation.
>
> I run both on a 574x532x1024 uint8 binary image with 3.8% of voxels == 1, a
> couple of times, on linux 64-bit, with a 3-voxel radius.
>
>
> itk::BinaryDilateImageFilter (from ITK v3.20) took between 87 and 88 sec.
>
> Matlab's imdilate()  (from Matlab R2010b) took between 76 and 79 sec.
>
>
>
> My program uses itk::ImportImageFilter to run the filter directly on the
> Matlab buffer, and also uses a Matlab buffer for the filter output (using
> mummification).
>
> The Matlab function invokes a MEX file, so in both cases we are running C++
> compiled code on the same data.
>
>
> So, the conclusion of this informal comparison would be that Matlab's
> implementation of binary dilation seems 12% faster than ITK's.
>
>
>
> [1] http://code.google.com/p/**gerardus/source/browse/tags/**
> release-0.6.0/matlab/**ItkToolbox/ItkImFilter.cpp<http://code.google.com/p/gerardus/source/browse/tags/release-0.6.0/matlab/ItkToolbox/ItkImFilter.cpp>
>
>
>
> Best regards,
>
> Ramon.
>
> --
> Dr. Ramón Casero Cañas
>
> Computational Biology
> Department of Computer Science
> University of Oxford
> Wolfson Building, Parks Rd
> Oxford OX1 3QD
>
> tlf     +44 (0) 1865 610737
> web     http://web.comlab.ox.ac.uk/**people/Ramon.CaseroCanas<http://web.comlab.ox.ac.uk/people/Ramon.CaseroCanas>
> photos  http://www.flickr.com/photos/**rcasero/<http://www.flickr.com/photos/rcasero/>
> ______________________________**_______
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/**opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/**products/protraining.html<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 <http://www.itk.org/Wiki/ITK_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-use<http://www.itk.org/mailman/listinfo/insight-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110815/78778a4b/attachment.htm>


More information about the Insight-users mailing list