 |
ITK
5.3.0
Insight Toolkit
|
Go to the documentation of this file.
28 #ifndef itkConnectedRegionsMeshFilter_h
29 #define itkConnectedRegionsMeshFilter_h
49 template <
typename TInputMesh,
typename TOutputMesh>
88 static constexpr
unsigned int PointDimension = TInputMesh::PointDimension;
114 PointSeededRegions = 0,
115 CellSeededRegions = 1,
116 SpecifiedRegions = 2,
119 ClosestPointRegion = 5
128 itkSetMacro(ExtractionMode,
int);
129 itkGetConstMacro(ExtractionMode,
int);
135 this->SetExtractionMode(Self::PointSeededRegions);
141 this->SetExtractionMode(Self::CellSeededRegions);
147 this->SetExtractionMode(Self::SpecifiedRegions);
153 this->SetExtractionMode(Self::LargestRegion);
159 this->SetExtractionMode(Self::AllRegions);
165 this->SetExtractionMode(Self::ClosestPointRegion);
186 m_SeedList.push_back(
id);
203 m_RegionList.clear();
214 m_RegionList.push_back(
id);
231 if (m_ClosestPoint != p)
242 return m_ClosestPoint;
251 return m_RegionNumber;
259 PrintSelf(std::ostream & os,
Indent indent)
const override;
262 GenerateData()
override;
265 PropagateConnectedWave();
277 std::vector<IdentifierType> * m_Wave{
nullptr };
278 std::vector<IdentifierType> * m_Wave2{
nullptr };
282 #ifndef ITK_MANUAL_INSTANTIATION
283 # include "itkConnectedRegionsMeshFilter.hxx"
typename TInputMesh::PointIdentifier InputMeshPointIdentifier
SmartPointer< Self > Pointer
typename TInputMesh::PointType InputMeshPointType
typename InputMeshType::CellDataContainer::ConstIterator CellDataContainerConstIterator
SmartPointer< const Self > ConstPointer
typename TInputMesh::PointsContainerConstPointer InputMeshPointsContainerConstPointer
std::vector< IdentifierType > m_SeedList
void SetExtractionModeToLargestRegion()
typename TInputMesh::CellTraits::PointIdConstIterator InputMeshPointIdConstIterator
typename TInputMesh::CellsContainer InputMeshCellsContainer
void SetExtractionModeToPointSeededRegions()
SizeValueType GetNumberOfExtractedRegions()
ImageBaseType::PointType PointType
Control indentation during Print() invocation.
InputMeshPointType & GetClosestPoint(InputMeshPointType &)
typename InputMeshType::PointsContainer::ConstIterator PointsContainerConstIterator
IdentifierType m_RegionNumber
typename TInputMesh::CellLinksContainerConstPointer InputMeshCellLinksContainerConstPointer
typename TInputMesh::CellsContainerPointer InputMeshCellsContainerPointer
std::vector< IdentifierType > m_RegionList
void SetClosestPoint(InputMeshPointType &p)
std::vector< SizeValueType > m_RegionSizes
TOutputMesh OutputMeshType
typename TInputMesh::CellDataContainerConstPointer InputMeshCellDataContainerConstPointer
Light weight base class for most itk classes.
InputMeshPointType m_ClosestPoint
void SetExtractionModeToCellSeededRegions()
typename TInputMesh::PointCellLinksContainer InputMeshCellLinksContainer
MeshToMeshFilter is the base class for all process objects that output mesh data, and require mesh da...
typename TInputMesh::CellAutoPointer InputMeshCellPointer
void AddSeed(IdentifierType id)
typename InputMeshType::CellsContainer::ConstIterator CellsContainerConstIterator
std::vector< OffsetValueType > m_Visited
void InitializeSpecifiedRegionList()
SizeValueType m_NumberOfCellsInRegion
Extract portions of a mesh that are connected at vertices.
typename TInputMesh::CellDataContainerPointer InputMeshCellDataContainerPointer
void SetExtractionModeToAllRegions()
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
typename TInputMesh::CellsContainerConstPointer InputMeshCellsContainerConstPointer
void AddSpecifiedRegion(IdentifierType id)
void InitializeSeedList()
void SetExtractionModeToClosestPointRegion()
void SetExtractionModeToSpecifiedRegions()
typename TInputMesh::CellIdentifier InputMeshCellIdentifier
SizeValueType IdentifierType
typename TInputMesh::CellDataContainer InputMeshCellDataContainer
unsigned long SizeValueType
typename TInputMesh::ConstPointer InputMeshConstPointer
typename TOutputMesh::Pointer OutputMeshPointer