<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>I just completed a quick performance test in SimpleITK:</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="color: #5330e1">In [<b>1</b>]: </span>import SimpleITK as sitk</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="color: #5330e1">In [<b>2</b>]: </span>print sitk.Version()</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">SimpleITK Version: 0.9.0b01</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Compiled: Feb 19 2015 00:47:16</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="color: #5330e1">In [<b>3</b>]: </span>img = sitk.Image(512,515,365,sitk.sitkFloat32)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="color: #5330e1">In [<b>4</b>]: </span>img += 1</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="color: #5330e1">In [<b>5</b>]: </span>%timeit -n 1 -r 1 sitk.FastMarchingBase( img, [[10,10,10]])</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1 loops, best of 1: 4min 1s per loop</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="color: #5330e1">In [<b>6</b>]: </span>%timeit -n 1 -r 1 sitk.FastMarching( img, [[10,10,10]])</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1 loops, best of 1: 5min per loop</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div><div><div>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.</div><div><br></div><div>Perhaps you can improve the stopping citera, so as to not compute more that needed.</div><div><br></div><div>HTH,</div><div>Brad</div><div><br></div><div>On Mar 30, 2015, at 2:00 PM, Lin M <<a href="mailto:majcjc@gmail.com">majcjc@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div>Hi Bill,</div><div><br></div>It's a Release build. <div><br></div><div>Best,</div><div>Lin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 30, 2015 at 1:57 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is your windows build a Release build or Debug build?<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Mar 30, 2015 at 10:47 AM, Lin M <<a href="mailto:majcjc@gmail.com">majcjc@gmail.com</a>> wrote:<br>
> Hi Brad,<br>
><br>
> Thank you for your reply! Do you think it's normal to take about 250 secs on<br>
> a 512*512*365 image to compute the result?<br>
><br>
> I followed the example from here<br>
> <a href="http://www.itk.org/Doxygen/html/SphinxExamples_2src_2Filtering_2FastMarching_2CreateDistanceMapFromSeeds_2Code_8cxx-example.html#_a2" target="_blank">http://www.itk.org/Doxygen/html/SphinxExamples_2src_2Filtering_2FastMarching_2CreateDistanceMapFromSeeds_2Code_8cxx-example.html#_a2</a><br>
><br>
> I'm using a i7-860 16G 64bit win8 machine.<br>
><br>
> Best,<br>
> Lin<br>
><br>
> On Mon, Mar 30, 2015 at 1:15 PM, Bradley Lowekamp <<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>><br>
> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> The itkFastMarchingImageFilterBase, is new and more generalized with a<br>
>> support for generalized stopping criteria and a base infrastructure that can<br>
>> run on quad-edge meshes. The plain itkFastMarchingImageFilter is a bit<br>
>> faster but missing some features and flexibility.<br>
>><br>
>> HTH,<br>
>> Brad<br>
>><br>
>><br>
>> On Mar 30, 2015, at 12:24 PM, Lin M <<a href="mailto:majcjc@gmail.com">majcjc@gmail.com</a>> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> I'm wondering what's the difference between itkFastMarchingImageFilterBase<br>
>> and itkFastMarchingImageFilter.<br>
>><br>
>> I'm currently using itkFastMarchingImageFilterBase on a 3D image<br>
>> (512*512*365) whose computational time is much slower than I expected (about<br>
>> 250secs). I'm trying to find a way to improve that but I really don't have a<br>
>> clue now. Can you give me some suggestions about that? Thank you very much!<br>
>><br>
>> Best,<br>
>> Lin<br>
>> _____________________________________<br>
>> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Kitware offers ITK Training Courses, for more information visit:<br>
>> <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
>><br>
>> Please keep messages on-topic and check the ITK FAQ at:<br>
>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
>><br>
>><br>
><br>
><br>
> _____________________________________<br>
> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</font></span></blockquote></div><br></div>
</blockquote></div><br></div></body></html>