//TODO: instantiating the filter in the constructor might be heavy for the use in component selector factory, since all components of the database are created during the selection process.
// we could choose to keep the component light weighted (for checking criteria such as names and connections) until the settings are passed to the filter, but this requires an additional initialization step.
}
...
...
@@ -162,13 +144,6 @@ int ItkImageRegistrationMethodv4Component< Dimensionality, TPixel>
// connect the itk pipeline
this->m_theItkFilter->SetFixedImage(fixedImage);
//this->m_resampler->SetSize(fixedImage->GetBufferedRegion().GetSize()); //should be virtual image...
this->m_resampler->SetSize(fixedImage->GetLargestPossibleRegion().GetSize());//should be virtual image...