- if (mMapOfImageTypeToFunction[dim][pixelname])
- mMapOfImageTypeToFunction[dim][pixelname]->DoIt();
+ if (mMapOfImageTypeToFunction[dim][ncomp][pixelname])
+ mMapOfImageTypeToFunction[dim][ncomp][pixelname]->Execute();
+ }
+ template<unsigned int Dim, unsigned int NComp, class PixelType>
+ void AddNewDimensionAndPixelType() {
+ typedef itk::Image<itk::Vector<PixelType,NComp>,Dim> InputImageType;
+ mMapOfImageTypeToFunction[Dim][NComp][ GetTypeAsString<PixelType>() ] =
+ new GenericFilterFunctorWithDimAndPixelType<FilterType, InputImageType>(mFilter);