<html>
<head>
</head>
<body style="line-height: normal; font-family: Times New Roman; margin-top: 4px; font-style: normal; margin-right: 4px; margin-bottom: 1px; font-size: 16pt; font-variant: normal; font-weight: normal; margin-left: 4px">
<p style="margin-bottom: 0; margin-top: 0">
<font face="Times New Roman" size="5">Interestingly, I just had the same thing happen to me with the Adaptive Histogram Equalization filter (VS 2010 Pro and Win 7, everything compiled in x64). About 43 seconds to execute in Release mode, about 15 minutes to execute in Debug.</font><br><font face="Times New Roman" size="5"></font> </p>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Times New Roman" size="5">I am also using the multi-res Demons algorithm, and didn't have this problem (it was faster in 64 bit Debug vs 32 bit Debug mode as I expected).</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Times New Roman" size="5">Kent</font> </p>
<br> <br>
<p style="margin-bottom: 0; margin-top: 0">
<br>
>>> John Drescher <drescherjm@gmail.com> 4/18/2012 03:57 PM >>><br>On Wed, Apr 18, 2012 at 3:47 PM, Erik Agterhuis<br><erik.agterhuis@resolutionbc.com> wrote:<br>> Dear all,<br>><br>><br>><br>> I had a nice resample filter running as part of a 32 bit application on<br>> windows7. It did the<br>><br>> very simple job of ‘upsampling’ a 3D MRI dataset to a higher resolution<br>> using a nearest neighbour<br>><br>> interpolator. Worked like a charm!<br>><br>> Since I kept running into memory allocation bounds elsewhere in the<br>> application, I just recompiled everything to 64 bit, using VC++<br>><br>> Express 2010. The application runs fine but the resample filter has become<br>> extremely slow<br>><br>> (I’m talking 30 minutes versus 30 seconds!).<br>><br>> Since I read earlier postings about avoiding debug mode, I made sure to<br>> stick to release mode. Just<br>><br>> added debug information (program database mode). I have traced the problem<br>> down to the<br>><br>> ‘ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType<br>>>:: LinearThreadedGenerateData(...’<br>><br>> method in itkResampleImageFilter.hxx.<br>><br>> The nested while loop over the output iterator (outIt)  in this method takes<br>> ages to finish.<br>><br>> I’ve tried different multithreading settings (even disabling<br>> multithreading), as some posts elsewhere suggested the problem<br>><br>> might have something to do with that.  As expected on my 4-core processor,<br>> having 4 threads is still<br>><br>> the best setting, so this seems to have nothing to do with it.<br>><br>> Any help would be much appreciated!<br>><br><br>I am not sure what the express versions ( I have never used that)<br>offer but I have seen slowdowns like this in Visual Studio when going<br>from Release to Debug meaning I have seen filters take 100 times<br>longer in debug mode versus release.<br><br>John<br>_____________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">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">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">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">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</p>
</body>
</html>