[Insight-users] Speeding up the evaluation of the itk::Gaussian?
motes motes
mort.motes at gmail.com
Tue Sep 8 19:53:05 EDT 2009
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