17 #ifndef __itkBinaryCrossStructuringElement_txx
18 #define __itkBinaryCrossStructuringElement_txx
21 #include "itkNumericTraits.h"
27 template <
class TPixel,
unsigned int VDimension,
class TAllocator>
35 this->SetRadius(radius);
41 for (kernel_it=this->Begin(); kernel_it != this->End(); ++kernel_it)
43 *kernel_it = NumericTraits<TPixel>::Zero;
53 (*this)[offset] = NumericTraits<TPixel>::One;
54 for (d=0; d < VDimension; ++d)
56 for (i=-1; i<=1; i+=2)
60 (*this)[offset] = NumericTraits<TPixel>::One;