28#ifndef itkConnectedRegionsMeshFilter_h
29#define itkConnectedRegionsMeshFilter_h
49template <
typename TInputMesh,
typename TOutputMesh>
128 itkSetMacro(ExtractionMode,
int);
129 itkGetConstMacro(ExtractionMode,
int);
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::CellAutoPointer InputMeshCellPointer
typename TInputMesh::CellDataContainerPointer InputMeshCellDataContainerPointer
typename TInputMesh::PointIdentifier InputMeshPointIdentifier
void AddSpecifiedRegion(IdentifierType id)
typename TInputMesh::PointCellLinksContainer InputMeshCellLinksContainer
std::vector< IdentifierType > m_SeedList
std::vector< IdentifierType > * m_Wave
void SetExtractionModeToClosestPointRegion()
void AddSeed(IdentifierType id)
virtual void SetExtractionMode(int _arg)
typename InputMeshType::CellsContainer::ConstIterator CellsContainerConstIterator
std::vector< IdentifierType > * m_Wave2
void SetExtractionModeToCellSeededRegions()
typename TInputMesh::PointsContainerConstPointer InputMeshPointsContainerConstPointer
typename TInputMesh::CellDataContainer InputMeshCellDataContainer
typename TInputMesh::CellLinksContainerConstPointer InputMeshCellLinksContainerConstPointer
void InitializeSpecifiedRegionList()
typename InputMeshType::CellDataContainer::ConstIterator CellDataContainerConstIterator
~ConnectedRegionsMeshFilter() override=default
void SetClosestPoint(InputMeshPointType &p)
MeshToMeshFilter< TInputMesh, TOutputMesh > Superclass
IdentifierType m_RegionNumber
typename InputMeshType::PointsContainer::ConstIterator PointsContainerConstIterator
static constexpr unsigned int PointDimension
std::vector< SizeValueType > m_RegionSizes
SmartPointer< Self > Pointer
InputMeshPointType m_ClosestPoint
typename TOutputMesh::Pointer OutputMeshPointer
typename TInputMesh::PointType InputMeshPointType
typename TInputMesh::CellTraits::PointIdConstIterator InputMeshPointIdConstIterator
void SetExtractionModeToLargestRegion()
ConnectedRegionsMeshFilter Self
void GenerateData() override
SizeValueType m_NumberOfCellsInRegion
void DeleteSpecifiedRegion(IdentifierType id)
std::vector< OffsetValueType > m_Visited
InputMeshPointType & GetClosestPoint(InputMeshPointType &)
typename TInputMesh::CellsContainerPointer InputMeshCellsContainerPointer
SizeValueType GetNumberOfExtractedRegions()
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
TOutputMesh OutputMeshType
typename TInputMesh::ConstPointer InputMeshConstPointer
typename TInputMesh::CellIdentifier InputMeshCellIdentifier
void SetExtractionModeToSpecifiedRegions()
void InitializeSeedList()
void SetExtractionModeToAllRegions()
typename TInputMesh::CellsContainerConstPointer InputMeshCellsContainerConstPointer
void PropagateConnectedWave()
typename TInputMesh::CellDataContainerConstPointer InputMeshCellDataContainerConstPointer
void SetExtractionModeToPointSeededRegions()
std::vector< IdentifierType > m_RegionList
void DeleteSeed(IdentifierType id)
typename TInputMesh::CellsContainer InputMeshCellsContainer
ConnectedRegionsMeshFilter()
Control indentation during Print() invocation.
virtual void Modified() const
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
SizeValueType IdentifierType
unsigned long SizeValueType