[Insight-users] Processing of median filter in debug

Bill Lorensen bill.lorensen at gmail.com
Fri May 22 15:25:03 EDT 2009


Yes, we have seen this with Debug mode. I didn't realize that the
number of threads affected it. I just thought it was slow. As John
mentioned, try RelWithDebinfo. That's how I normally debug.

Bill

On Fri, May 22, 2009 at 2:55 PM, John Drescher <drescherjm at gmail.com> wrote:
> On Fri, May 22, 2009 at 2:45 PM, Ivan Macia <imacia at vicomtech.org> wrote:
>> Hi,
>>
>> I have been doing some 3D image processing with a Median filter. I added
>> some SimpleFilterWatcher to monitor progress. The input image was not too
>> large, about 250x40x175. I'm running an Intel Core 2 Quad Q6600 (4 cores) 3
>> Gb. RAM on WinXP SP3 and ITK 3.12 with VS2008.
>>
>> The filter was running quite fast in release mode but I thought I had a
>> problem in debug since the progress did not update and it seemed to be
>> stuck. Now waiting a bit the progress started to grow at a very low pace.
>> The thing is that I changed the number of threads to a single thread and the
>> filter was running much faster in debug mode. In Release mode, as expected,
>> the it was more than twice faster. Just wondering, is it normal that the
>> cost of running four threads in debug mode makes it so slow? Is this related
>> to the IDE or OS?
>>
> I have seen this myself and it forced me to debug in releasewithdeb
> mode instead because instead of taking 30 seconds to process the
> median filter on a 0.625 x 0.625 x 0.625  it ended up taking on the
> order of 30 minutes.
>
> John
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> 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
>


More information about the Insight-users mailing list