18 #ifndef __itkFlatStructuringElement_h
19 #define __itkFlatStructuringElement_h
44 template<
unsigned int VDimension >
62 typedef typename Superclass::SizeType
SizeType;
72 itkStaticConstMacro(NeighborhoodDimension,
unsigned int, VDimension);
89 static Self Box(RadiusType radius);
92 static Self Ball(RadiusType radius);
95 static Self
Cross(RadiusType radius);
98 static Self Annulus(RadiusType radius,
99 unsigned int thickness = 1,
100 bool includeCenter =
false);
107 static Self Polygon(RadiusType radius,
unsigned lines);
114 bool GetDecomposable()
const
116 return m_Decomposable;
118 void SetDecomposable(
bool v )
131 m_Lines.push_back(l);
135 bool CheckParallel(LType NewVec)
const;
141 void ComputeBufferFromLines();
145 void PrintSelf(std::ostream & os,
Indent indent)
const;
152 template<
unsigned int VDimension3 >
158 template<
class TStructuringElement,
class TRadius>
159 static void GeneratePolygon(TStructuringElement & res, TRadius radius,
unsigned lines);
171 #ifndef ITK_MANUAL_INSTANTIATION
172 #include "itkFlatStructuringElement.hxx"