[Insight-users] Histogram calculation performance between ScalarImageToHistogramGenerator, ImageToHistogramFilter and vtkImageAccumulate
Arikan Mustafa
Mustafa.Arikan at fh-wels.at
Wed May 15 12:50:14 EDT 2013
Thanks for the quick response.
This is done in release mode. Like this:
int nTimeStart = GetMilliCount();
imageAccumulate->Update();
int nTimeElapsed = GetMilliSpan( nTimeStart );
…
int nTimeStart2 = GetMilliCount();
imageToHistogramFilter->Update();
int nTimeElapsed2 = GetMilliSpan( nTimeStart2 );
…
int nTimeStart3 = GetMilliCount();
scalarImageToHistogramGenerator->Compute();
int nTimeElapsed3 = GetMilliSpan( nTimeStart3 );
Von: David Cole [mailto:dlrdave at aol.com]
Gesendet: Mittwoch, 15. Mai 2013 17:31
An: insight-users at itk.org; Arikan Mustafa
Betreff: Re: [Insight-users] Histogram calculation performance between ScalarImageToHistogramGenerator, ImageToHistogramFilter and vtkImageAccumulate
Is this on Windows, with a Debug build using the Microsoft compiler?
If so, re-do the timings with a Release build.
The Debug memory allocator has serious performance issues because of the tracking of allocations that they do in the runtime. Release builds are frequently 100x faster in scenarios with lots of small allocations.
If this is not MS Debug build on Windows, then just delete this message... 😊
D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130515/bd99aa44/attachment.htm>
More information about the Insight-users
mailing list