ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes
itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh > Class Template Reference

#include <itkConnectedRegionsMeshFilter.h>

+ Inheritance diagram for itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >:
+ Collaboration diagram for itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >:

List of all members.

Public Types

enum  {
  PointSeededRegions = 0,
  CellSeededRegions = 1,
  SpecifiedRegions = 2,
  LargestRegion = 3,
  AllRegions = 4,
  ClosestPointRegion = 5
}
typedef
InputMeshType::CellDataContainer::ConstIterator 
CellDataContainerConstIterator
typedef
InputMeshType::CellsContainer::ConstIterator 
CellsContainerConstIterator
typedef SmartPointer< const SelfConstPointer
typedef
TInputMesh::CellDataContainer 
InputMeshCellDataContainer
typedef
TInputMesh::CellDataContainerConstPointer 
InputMeshCellDataContainerConstPointer
typedef
TInputMesh::CellDataContainerPointer 
InputMeshCellDataContainerPointer
typedef TInputMesh::CellIdentifier InputMeshCellIdentifier
typedef
TInputMesh::PointCellLinksContainer 
InputMeshCellLinksContainer
typedef
TInputMesh::CellLinksContainerConstPointer 
InputMeshCellLinksContainerConstPointer
typedef TInputMesh::CellAutoPointer InputMeshCellPointer
typedef TInputMesh::CellsContainer InputMeshCellsContainer
typedef
TInputMesh::CellsContainerConstPointer 
InputMeshCellsContainerConstPointer
typedef
TInputMesh::CellsContainerPointer 
InputMeshCellsContainerPointer
typedef TInputMesh::ConstPointer InputMeshConstPointer
typedef
TInputMesh::CellTraits::PointIdConstIterator 
InputMeshPointIdConstIterator
typedef TInputMesh::PointIdentifier InputMeshPointIdentifier
typedef
TInputMesh::PointsContainerConstPointer 
InputMeshPointsContainerConstPointer
typedef TInputMesh::PointType InputMeshPointType
typedef TInputMesh InputMeshType
typedef TOutputMesh::Pointer OutputMeshPointer
typedef TOutputMesh OutputMeshType
typedef SmartPointer< SelfPointer
typedef
InputMeshType::PointsContainer::ConstIterator 
PointsContainerConstIterator
typedef ConnectedRegionsMeshFilter Self
typedef MeshToMeshFilter
< TInputMesh, TOutputMesh > 
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
void DeleteSeed (IdentifierType id)
void DeleteSpecifiedRegion (IdentifierType id)
InputMeshPointTypeGetClosestPoint (InputMeshPointType &)
SizeValueType GetNumberOfExtractedRegions ()
void SetExtractionModeToAllRegions (void)
void SetExtractionModeToCellSeededRegions (void)
void SetExtractionModeToClosestPointRegion (void)
void SetExtractionModeToLargestRegion (void)
void SetExtractionModeToPointSeededRegions (void)
void SetExtractionModeToSpecifiedRegions (void)
virtual void SetExtractionMode (int _arg)
virtual int GetExtractionMode () const
void InitializeSeedList (void)
void AddSeed (IdentifierType id)
void InitializeSpecifiedRegionList (void)
void AddSpecifiedRegion (IdentifierType id)
void SetClosestPoint (InputMeshPointType &p)

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int PointDimension = TInputMesh::PointDimension

Protected Member Functions

 ConnectedRegionsMeshFilter (void)
virtual void GenerateData (void)
void PrintSelf (std::ostream &os, Indent indent) const
void PropagateConnectedWave (void)
virtual ~ConnectedRegionsMeshFilter (void)

Private Member Functions

 ConnectedRegionsMeshFilter (const Self &)
void operator= (const Self &)

Private Attributes

InputMeshPointType m_ClosestPoint
int m_ExtractionMode
SizeValueType m_NumberOfCellsInRegion
std::vector< IdentifierTypem_RegionList
IdentifierType m_RegionNumber
std::vector< SizeValueTypem_RegionSizes
std::vector< IdentifierTypem_SeedList
std::vector< OffsetValueTypem_Visited
std::vector< IdentifierType > * m_Wave
std::vector< IdentifierType > * m_Wave2

Detailed Description

template<class TInputMesh, class TOutputMesh>
class itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >

Extract portions of a mesh that are connected at vertices.

ConnectedRegionsMeshFilter will extract portions of a mesh that are connected at vertices. (Such connected portions of the mesh are referred to as a region.) Options exist to extract the largest region, a particular region, a region containing a specified point, or a region containing a specified cell.

Definition at line 50 of file itkConnectedRegionsMeshFilter.h.


Member Typedef Documentation

template<class TInputMesh , class TOutputMesh >
typedef InputMeshType::CellDataContainer::ConstIterator itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::CellDataContainerConstIterator

Definition at line 97 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef InputMeshType::CellsContainer::ConstIterator itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::CellsContainerConstIterator

Definition at line 96 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef SmartPointer< const Self > itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::ConstPointer
template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::CellDataContainer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshCellDataContainer

Definition at line 92 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::CellDataContainerConstPointer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshCellDataContainerConstPointer

Definition at line 94 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::CellDataContainerPointer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshCellDataContainerPointer

Definition at line 93 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::CellIdentifier itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshCellIdentifier

Definition at line 102 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::PointCellLinksContainer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshCellLinksContainer

Definition at line 101 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::CellLinksContainerConstPointer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshCellLinksContainerConstPointer

Definition at line 100 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::CellAutoPointer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshCellPointer

Definition at line 98 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::CellsContainer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshCellsContainer

Definition at line 89 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::CellsContainerConstPointer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshCellsContainerConstPointer

Definition at line 91 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::CellsContainerPointer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshCellsContainerPointer

Definition at line 90 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::ConstPointer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshConstPointer

Definition at line 80 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::CellTraits::PointIdConstIterator itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshPointIdConstIterator

Definition at line 99 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::PointIdentifier itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshPointIdentifier

Definition at line 87 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::PointsContainerConstPointer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshPointsContainerConstPointer

Definition at line 88 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh::PointType itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshPointType

Definition at line 86 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TInputMesh itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InputMeshType

Convenient typedefs for this filter.

Reimplemented from itk::MeshToMeshFilter< TInputMesh, TOutputMesh >.

Definition at line 73 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef TOutputMesh::Pointer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::OutputMeshPointer
template<class TInputMesh , class TOutputMesh >
typedef TOutputMesh itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::OutputMeshType
template<class TInputMesh , class TOutputMesh >
typedef SmartPointer< Self > itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::Pointer

Smart pointer typedef support

Reimplemented from itk::MeshToMeshFilter< TInputMesh, TOutputMesh >.

Definition at line 67 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef InputMeshType::PointsContainer::ConstIterator itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::PointsContainerConstIterator

Definition at line 95 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef ConnectedRegionsMeshFilter itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::Self

Standard class typedefs.

Reimplemented from itk::MeshToMeshFilter< TInputMesh, TOutputMesh >.

Definition at line 57 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
typedef MeshToMeshFilter< TInputMesh, TOutputMesh > itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::Superclass

Standard "Superclass" typedef.

Reimplemented from itk::MeshToMeshFilter< TInputMesh, TOutputMesh >.

Definition at line 62 of file itkConnectedRegionsMeshFilter.h.


Member Enumeration Documentation

template<class TInputMesh , class TOutputMesh >
anonymous enum

Different modes of operation. Use these to specify how to extract the regions.

Enumerator:
PointSeededRegions 
CellSeededRegions 
SpecifiedRegions 
LargestRegion 
AllRegions 
ClosestPointRegion 

Definition at line 108 of file itkConnectedRegionsMeshFilter.h.


Constructor & Destructor Documentation

template<class TInputMesh , class TOutputMesh >
itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::ConnectedRegionsMeshFilter ( void  ) [protected]
template<class TInputMesh , class TOutputMesh >
virtual itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::~ConnectedRegionsMeshFilter ( void  ) [inline, protected, virtual]

Definition at line 235 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::ConnectedRegionsMeshFilter ( const Self ) [private]

Member Function Documentation

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::AddSeed ( IdentifierType  id) [inline]

Add a seed id (point or cell id). Note: ids are 0-offset.

Definition at line 168 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::AddSpecifiedRegion ( IdentifierType  id) [inline]

Add a region id to extract. Note: ids are 0-offset.

Definition at line 193 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
virtual::itk::LightObject::Pointer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::CreateAnother ( void  ) const [virtual]

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::MeshToMeshFilter< TInputMesh, TOutputMesh >.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::DeleteSeed ( IdentifierType  id)

Delete a seed id (point or cell id). Note: ids are 0-offset.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::DeleteSpecifiedRegion ( IdentifierType  id)

Delete a region id to extract. Note: ids are 0-offset.

template<class TInputMesh , class TOutputMesh >
virtual void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::GenerateData ( void  ) [protected, virtual]

This method causes the filter to generate its output.

Reimplemented from itk::ProcessObject.

template<class TInputMesh , class TOutputMesh >
InputMeshPointType& itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::GetClosestPoint ( InputMeshPointType ) [inline]

Definition at line 219 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
virtual int itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::GetExtractionMode ( ) const [virtual]

Methods specify mode of operation for the filter. Note that some modes require additional information. For example, SetExtractionModeToClosestPointRegion() also requires that a point be defined.

template<class TInputMesh , class TOutputMesh >
SizeValueType itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::GetNumberOfExtractedRegions ( ) [inline]

Obtain the number of connected regions.

Definition at line 227 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InitializeSeedList ( void  ) [inline]

Initialize list of point ids/cell ids used to seed regions.

Definition at line 158 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::InitializeSpecifiedRegionList ( void  ) [inline]

Initialize list of region ids to extract.

Definition at line 183 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
static Pointer itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::New ( ) [static]

Method for creation through the object factory.

Reimplemented from itk::MeshToMeshFilter< TInputMesh, TOutputMesh >.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::operator= ( const Self ) [private]

Time when GenerateOutputInformation was last called.

Reimplemented from itk::MeshToMeshFilter< TInputMesh, TOutputMesh >.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::MeshSource< TOutputMesh >.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::PropagateConnectedWave ( void  ) [protected]
template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::SetClosestPoint ( InputMeshPointType p) [inline]

Use to specify x-y-z point coordinates when extracting the region closest to a specified point.

Definition at line 209 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
virtual void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::SetExtractionMode ( int  _arg) [virtual]

Methods specify mode of operation for the filter. Note that some modes require additional information. For example, SetExtractionModeToClosestPointRegion() also requires that a point be defined.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::SetExtractionModeToAllRegions ( void  ) [inline]

Definition at line 145 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::SetExtractionModeToCellSeededRegions ( void  ) [inline]

Definition at line 130 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::SetExtractionModeToClosestPointRegion ( void  ) [inline]

Definition at line 150 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::SetExtractionModeToLargestRegion ( void  ) [inline]

Definition at line 140 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::SetExtractionModeToPointSeededRegions ( void  ) [inline]

Definition at line 125 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
void itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::SetExtractionModeToSpecifiedRegions ( void  ) [inline]

Definition at line 135 of file itkConnectedRegionsMeshFilter.h.


Member Data Documentation

template<class TInputMesh , class TOutputMesh >
InputMeshPointType itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::m_ClosestPoint [private]

Definition at line 249 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
int itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::m_ExtractionMode [private]

Definition at line 248 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
SizeValueType itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::m_NumberOfCellsInRegion [private]

Definition at line 255 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
std::vector< IdentifierType > itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::m_RegionList [private]

Definition at line 251 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
IdentifierType itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::m_RegionNumber [private]

Definition at line 256 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
std::vector< SizeValueType > itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::m_RegionSizes [private]

Definition at line 252 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
std::vector< IdentifierType > itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::m_SeedList [private]

Definition at line 250 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
std::vector< OffsetValueType > itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::m_Visited [private]

Definition at line 254 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
std::vector< IdentifierType >* itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::m_Wave [private]

Definition at line 257 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
std::vector< IdentifierType >* itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::m_Wave2 [private]

Definition at line 258 of file itkConnectedRegionsMeshFilter.h.

template<class TInputMesh , class TOutputMesh >
const unsigned int itk::ConnectedRegionsMeshFilter< TInputMesh, TOutputMesh >::PointDimension = TInputMesh::PointDimension [static]

Definition at line 84 of file itkConnectedRegionsMeshFilter.h.


The documentation for this class was generated from the following file: