[Insight-users] Speeding up the evaluation of the itk::Gaussian?
Dan Mueller
dan.muel at gmail.com
Wed Sep 9 04:53:41 EDT 2009
Hi,
In Visual Studio you must select "Release" from the drop down box on
the toolbar to perform an optimized compilation. Using a "Release"
build can improve performance 10-200%.
Hope this helps.
Regards, Dan
2009/9/9 motes motes <mort.motes at gmail.com>:
> I am running Vista 64, Visual Studio 2008. I am not sure what you mean
> with BUILD_TYPE. I have just used the cmake installer when installing
> ITK but without the examples and testing modules.
>
>
>
> On Wed, Sep 9, 2009 at 2:46 AM, Bill Lorensen<bill.lorensen at gmail.com> wrote:
>> What platform are you running on? What compiler? What BUILD_TYPE?
>>
>> On Tue, Sep 8, 2009 at 7:53 PM, motes motes<mort.motes at gmail.com> wrote:
>>> In a loop that iterates a 128*128 image I am currently using a 2D itk::Gaussian:
>>>
>>>
>>> #include "itkGaussianSpatialObject.h"
>>> ....
>>>
>>> ti.GoToBegin();
>>>
>>> while(!ti.IsAtEnd()) {
>>>
>>> .....
>>> InputPointType translated = tmp + (location-point);
>>> double value;
>>> m_Gaussian->ValueAt(translated, value);
>>> ....
>>>
>>> }
>>>
>>> but it totally kills the performance (without the gaussian call it
>>> takes seconds and with the gaussian call it takes minutes!). Is there
>>> someway to speed up the evaluation of the 2D itk::Gaussian ?
More information about the Insight-users
mailing list