[Insight-developers] BinaryErodeImageFilter

Brad King brad . king at kitware . com
Thu, 22 Aug 2002 18:06:39 -0400 (EDT)


Jim,

The BinaryErodeImageFilter is declared as follows:

template<class TInputImage, class TOutputImage, class TKernel>
class ITK_EXPORT BinaryErodeImageFilter;

I quickly read through the code, and it looks like there is no reason for
TKernel to be a template argument.  The KernelType typedef could instead
be

Neighborhood<PixelType, Dimension, NeighborhoodAllocator<PixelType> >

Do you see any problem with removing the TKernel template argument on this
filter and others using the same design?

Thanks,
-Brad