[ITK] [ITK-users] What's the difference between itkFastMarchingImageFilterBase and itkFastMarchingImageFilter?

Bradley Lowekamp blowekamp at mail.nih.gov
Mon Mar 30 14:32:02 EDT 2015


Hello,

I just completed a quick performance test in SimpleITK:

In [1]: import SimpleITK as sitk

In [2]: print sitk.Version()
SimpleITK Version: 0.9.0b01
Compiled: Feb 19 2015 00:47:16


In [3]: img = sitk.Image(512,515,365,sitk.sitkFloat32)

In [4]: img += 1

In [5]: %timeit -n 1 -r 1 sitk.FastMarchingBase( img, [[10,10,10]])
1 loops, best of 1: 4min 1s per loop

In [6]: %timeit -n 1 -r 1 sitk.FastMarching( img, [[10,10,10]])
1 loops, best of 1: 5min per loop


Your time does strike me as slow but it is on par with what I got on my i7 MacBook Pro. I recall previous experiments yielding the non-Base as the clear winner. This constant image is a convoluted example and may not reflect real world performance.

Perhaps you can improve the stopping citera,  so as to not compute more that needed.

HTH,
Brad

On Mar 30, 2015, at 2:00 PM, Lin M <majcjc at gmail.com> wrote:

> Hi Bill,
> 
> It's a Release build. 
> 
> Best,
> Lin
> 
> On Mon, Mar 30, 2015 at 1:57 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Is your windows build a Release build or Debug build?
> 
> On Mon, Mar 30, 2015 at 10:47 AM, Lin M <majcjc at gmail.com> wrote:
> > Hi Brad,
> >
> > Thank you for your reply! Do you think it's normal to take about 250 secs on
> > a 512*512*365 image to compute the result?
> >
> > I followed the example from here
> > http://www.itk.org/Doxygen/html/SphinxExamples_2src_2Filtering_2FastMarching_2CreateDistanceMapFromSeeds_2Code_8cxx-example.html#_a2
> >
> > I'm using a i7-860 16G 64bit win8 machine.
> >
> > Best,
> > Lin
> >
> > On Mon, Mar 30, 2015 at 1:15 PM, Bradley Lowekamp <blowekamp at mail.nih.gov>
> > wrote:
> >>
> >> Hello,
> >>
> >> The itkFastMarchingImageFilterBase, is new and more generalized with a
> >> support for generalized stopping criteria and a base infrastructure that can
> >> run on quad-edge meshes. The plain itkFastMarchingImageFilter is a bit
> >> faster but missing some features and flexibility.
> >>
> >> HTH,
> >> Brad
> >>
> >>
> >> On Mar 30, 2015, at 12:24 PM, Lin M <majcjc at gmail.com> wrote:
> >>
> >> Hi all,
> >>
> >> I'm wondering what's the difference between itkFastMarchingImageFilterBase
> >> and itkFastMarchingImageFilter.
> >>
> >> I'm currently using itkFastMarchingImageFilterBase on a 3D image
> >> (512*512*365) whose computational time is much slower than I expected (about
> >> 250secs). I'm trying to find a way to improve that but I really don't have a
> >> clue now. Can you give me some suggestions about that? Thank you very much!
> >>
> >> Best,
> >> Lin
> >> _____________________________________
> >> Powered by 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.php
> >>
> >> 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://public.kitware.com/mailman/listinfo/insight-users
> >>
> >>
> >
> >
> > _____________________________________
> > Powered by 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.php
> >
> > 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://public.kitware.com/mailman/listinfo/insight-users
> >
> 
> 
> 
> --
> Unpaid intern in BillsBasement at noware dot com
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150330/6b6c08fc/attachment.html>
-------------- next part --------------
_____________________________________
Powered by 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.php

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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list