28 #ifndef __itkConnectedRegionsMeshFilter_h
29 #define __itkConnectedRegionsMeshFilter_h
49 template<
class TInputMesh,
class TOutputMesh >
83 itkStaticConstMacro(PointDimension,
unsigned int,
84 TInputMesh::PointDimension);
108 enum { PointSeededRegions = 0,
109 CellSeededRegions = 1,
110 SpecifiedRegions = 2,
113 ClosestPointRegion = 5 };
121 itkSetMacro(ExtractionMode,
int);
122 itkGetConstMacro(ExtractionMode,
int);
125 void SetExtractionModeToPointSeededRegions(
void)
127 this->SetExtractionMode(Self::PointSeededRegions);
130 void SetExtractionModeToCellSeededRegions(
void)
132 this->SetExtractionMode(Self::CellSeededRegions);
135 void SetExtractionModeToSpecifiedRegions(
void)
137 this->SetExtractionMode(Self::SpecifiedRegions);
140 void SetExtractionModeToLargestRegion(
void)
142 this->SetExtractionMode(Self::LargestRegion);
145 void SetExtractionModeToAllRegions(
void)
147 this->SetExtractionMode(Self::AllRegions);
150 void SetExtractionModeToClosestPointRegion(
void)
152 this->SetExtractionMode(Self::ClosestPointRegion);
158 void InitializeSeedList(
void)
171 m_SeedList.push_back(
id);
183 void InitializeSpecifiedRegionList(
void)
186 m_RegionList.clear();
196 m_RegionList.push_back(
id);
211 if ( m_ClosestPoint != p )
221 return m_ClosestPoint;
229 return m_RegionList.size();
237 void PrintSelf(std::ostream & os,
Indent indent)
const;
239 virtual void GenerateData(
void);
241 void PropagateConnectedWave(
void);
246 void operator=(
const Self &);
262 #ifndef ITK_MANUAL_INSTANTIATION
263 #include "itkConnectedRegionsMeshFilter.hxx"