17 #ifndef __itkNeighborhoodOperator_h
18 #define __itkNeighborhoodOperator_h
22 #include "itkNumericTraits.h"
62 template<
class TPixel,
unsigned int VDimension,
63 class TAllocator = NeighborhoodAllocator<TPixel> >
88 { m_Direction = orig.m_Direction; }
93 Superclass::operator=(orig);
94 m_Direction = orig.m_Direction;
99 void SetDirection(
const unsigned long &direction)
100 { m_Direction = direction; }
103 unsigned long GetDirection()
const
104 {
return m_Direction; }
110 virtual void CreateDirectional();
116 virtual void CreateToRadius(
const SizeType &);
122 virtual void CreateToRadius(
const unsigned long);
126 virtual void FlipAxes();
129 virtual void PrintSelf(std::ostream& os,
Indent i)
const
131 os << i <<
"NeighborhoodOperator { this=" <<
this
132 <<
" Direction = " << m_Direction <<
" }" << std::endl;
162 void InitializeToZero()
164 for (
unsigned int i = 0; i< this->
Size(); ++i)
166 this->operator[](i) = NumericTraits<PixelType>::Zero;
178 #define ITK_TEMPLATE_NeighborhoodOperator(_, EXPORT, x, y) namespace itk { \
179 _(2(class EXPORT NeighborhoodOperator< ITK_TEMPLATE_2 x >)) \
180 namespace Templates { typedef NeighborhoodOperator< ITK_TEMPLATE_2 x > \
181 NeighborhoodOperator##y; } \
184 #if ITK_TEMPLATE_EXPLICIT
185 # include "Templates/itkNeighborhoodOperator+-.h"