<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<div>Thanks a million! I didn't know about the Maurer distance filter and it managed to finish in just 3 minutes in debug mode, so problem solved. &nbsp;Although, it does make me wonder if there's something wrong with the Daniellson distance filter or if it's really just that slow.</div><div><br></div><div>Thanks again.</div><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Tue, 19 Jun 2012 16:04:49 +0200<br>From: sergio.vera@alma3d.com<br>To: chadz111@hotmail.com<br>CC: insight-users@itk.org<br>Subject: Re: [Insight-users] SignedDanielssonDistanceMapImageFilter Very Slow on 3D Volume?<br><br>Sorry<div>I meant SignedMaurer not SignedDaniesson (Maurer seems to be much faster than Danielsson)&nbsp;</div><div><br></div><div>Maurer is 20-35 secs</div><div>Danielsson is over 120-130 seconds over &nbsp;the same image (both compiled in Release)</div>
<div><br></div><div>regards</div><div><br><br><div class="ecxgmail_quote">On Tue, Jun 19, 2012 at 3:53 PM, Sergio Vera <span dir="ltr">&lt;<a href="mailto:sergio.vera@alma3d.com">sergio.vera@alma3d.com</a>&gt;</span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex"><div>Hello</div>Mi experience is that SignedDanielsson runs in about 20-35 seconds in average size volumes (ex: 256x512x400).&nbsp;<div>
Debug code can be as slow as 8-10 times easily but 30 minutes is a bit excessive for your image&nbsp;imho&nbsp;.</div>
<div>Give it a try in Release mode and see what your timing is.</div><div><br></div><div><br></div><div><br><br><div class="ecxgmail_quote"><div><div class="h5">On Tue, Jun 19, 2012 at 3:32 PM, Chad Stanford <span dir="ltr">&lt;<a href="mailto:chadz111@hotmail.com">chadz111@hotmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">


<div><div dir="ltr">

<div>Hello,</div><div><br></div>I'm new to ITK, but have managed to implement a custom level set segmentation filter by deriving from the SegmentationLevelSet classes. &nbsp;In my case I am provided a rough initial mask that I feed into the SignedDanielssonDistanceMapImageFilter to get the initial level set input. &nbsp;This step works almost instantaneously when I test my code on 2D slices from a volume in analyze format (.hdr/.img). &nbsp;However, when I try running my code on the whole 3D volume (only 256^3 voxels) the&nbsp;SignedDanielssonDistanceMapImageFilter takes at least 30 minutes, possibly much more because I get impatient and stop it before it finishes. &nbsp;<div>

<br></div><div>Does anyone know if it is normal for the filter to perform this way on volumes and if not why this might be happening and/or how I can fix it or get around it?&nbsp;</div><div><br></div><div>The volume seems to be read in fine because I can read it in, output it again and visualize the output fine. &nbsp;Tracing through the code shows that it seems to be getting stuck in the while loop beginning on line 408 in the GenerateData function in itkDanielssonDistanceMapImageFilter.hxx . &nbsp;I am running the code in debug mode, but over 30 minutes seems excessive nonetheless.</div>

<div><br></div><div><br></div><div>Any ideas?!?</div>                                               </div></div>
<br></div></div>_____________________________________<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://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><span class="ecxHOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Sergio Vera<br><br>&nbsp;Alma IT Systems<br>&nbsp;C/ Vilana, 4B, 4º 1ª<br>&nbsp;08022 Barcelona<br>&nbsp;T. <a target="_blank">(+34) 932 380 592</a><br>
&nbsp;<a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>

</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Sergio Vera<br><br>&nbsp;Alma IT Systems<br>&nbsp;C/ Vilana, 4B, 4º 1ª<br>&nbsp;08022 Barcelona<br>&nbsp;T. (+34) 932 380 592<br>&nbsp;<a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>

</div>
<br>_____________________________________
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://www.itk.org/mailman/listinfo/insight-users</div>                                               </div></body>
</html>