[Insight-users] Speeding up the evaluation of the itk::Gaussian?
Dan Mueller
dan.muel at gmail.com
Wed Sep 9 07:59:25 EDT 2009
Hi,
Please select "Build" > "Configuration Manager...". From the "Active
solution configuration" drop down select "Release".
You might be interested in the following MSDN page:
http://msdn.microsoft.com/en-us/library/cyz1h6zd(VS.80).aspx
Hope this helps.
Regards, Dan
2009/9/9 motes motes <mort.motes at gmail.com>:
> I don't think I have something called "Release" (nothing in the Debug,
> Build or Tools menu). Maybe its only available in the Team Suite
> version of VS?
>
>
>
> On Wed, Sep 9, 2009 at 10:53 AM, Dan Mueller<dan.muel at gmail.com> wrote:
>> 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