18 #ifndef __itkNeighborhoodOperator_h
19 #define __itkNeighborhoodOperator_h
64 template<
class TPixel,
unsigned int VDimension,
65 class TAllocator = NeighborhoodAllocator< TPixel > >
75 typedef typename Superclass::SizeType
SizeType;
90 { m_Direction = orig.m_Direction; }
95 Superclass::operator=(orig);
96 m_Direction = orig.m_Direction;
102 void SetDirection(
const unsigned long & direction)
103 { m_Direction = direction; }
106 unsigned long GetDirection()
const
107 {
return m_Direction; }
113 virtual void CreateDirectional();
119 virtual void CreateToRadius(
const SizeType &);
129 virtual void FlipAxes();
132 virtual void PrintSelf(std::ostream & os,
Indent i)
const
134 os << i <<
"NeighborhoodOperator { this=" <<
this
135 <<
" Direction = " << m_Direction <<
" }" << std::endl;
167 void InitializeToZero()
169 for (
unsigned int i = 0; i < this->
Size(); ++i )
183 #define ITK_TEMPLATE_NeighborhoodOperator(_, EXPORT, TypeX, TypeY) \
186 _( 2 ( class EXPORT NeighborhoodOperator< ITK_TEMPLATE_2 TypeX > ) ) \
187 namespace Templates \
189 typedef NeighborhoodOperator< ITK_TEMPLATE_2 TypeX > \
190 NeighborhoodOperator##TypeY; \
194 #if ITK_TEMPLATE_EXPLICIT
195 #include "Templates/itkNeighborhoodOperator+-.h"
199 #include "itkNeighborhoodOperator.hxx"