Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

HardConnectedComponentImageFilter Namespace Reference


Detailed Description

The purpose of this program is to produce the connected components for any input binary image of dimensionality n.

The program does a forward pass line by line through the entire image. Each cell in the foreground is assigned the same label value as cells in its neighborhood. If there is no label among the cells in its neighborhood, a new label value is assigned to the cell. This means that this cell belongs to a different connected component. We set up an equivalence table for each label to indicate the equivalence of the labels stored in the table. After the forward pass goes through the entire image, we merge the different connected components corresponding to the equivalence labels in the table. We implement this strategy in function GenerateData().

There are two options in the program. 1. Take an nD binary image as input, and produce an nD gray image, where intensity indicates label assigned to a connected component. 2. Take an nD binary image and a set of seed points as input, and output an nD binary image containing the cells connected to the seeds. For option 2, users need to assign the member variable std::list<IndexType> m_Seeds before calling function GenerateData().

See also:
ImageToImageFilter


Typedefs

typedef SmartPointer< const
Self
ConstPointer
typedef TInputImage::IndexType IndexType
typedef TInputImage InputImageType
typedef TInputImage::InternalPixelType InputInternalPixelType
typedef TInputImage::PixelType InputPixelType
typedef std::list< IndexTypeListType
typedef TOutputImage OutputImageType
typedef TOutputImage::InternalPixelType OutputInternalPixelType
typedef SmartPointer< SelfPointer
typedef TOutputImage::RegionType RegionType
typedef HardConnectedComponentImageFilter Self
typedef TInputImage::SizeType SizeType
typedef ImageToImageFilter<
TInputImage, TOutputImage
Superclass

Functions

*Standard pipeline method
*void 
GenerateData ()
virtual const char * GetNameOfClass () const
 HardConnectedComponentImageFilter (const Self &)
 HardConnectedComponentImageFilter ()
 itkStaticConstMacro (ImageDimension, unsigned int, TOutputImage::ImageDimension)
 itkStaticConstMacro (InputImageDimension, unsigned int, TInputImage::ImageDimension)
static Pointer New ()
void PrintSelf (std::ostream &os, Indent indent) const
void SetObjectSeed (const IndexType &seed)
virtual ~HardConnectedComponentImageFilter ()

Variables

ListType m_Seeds
*Extract some information
from the image types Dimensionality
*of the two images is assumed
to be the same *typedef TOutputImage::PixelType 
OutputPixelType


Typedef Documentation

typedef SmartPointer<const Self> HardConnectedComponentImageFilter::ConstPointer
 

Definition at line 89 of file itkHardConnectedComponentImageFilter.h.

typedef TInputImage::IndexType HardConnectedComponentImageFilter::IndexType
 

Definition at line 80 of file itkHardConnectedComponentImageFilter.h.

typedef TInputImage HardConnectedComponentImageFilter::InputImageType
 

Image typedef support

Definition at line 78 of file itkHardConnectedComponentImageFilter.h.

typedef TInputImage::InternalPixelType HardConnectedComponentImageFilter::InputInternalPixelType
 

Definition at line 68 of file itkHardConnectedComponentImageFilter.h.

typedef TInputImage::PixelType HardConnectedComponentImageFilter::InputPixelType
 

Definition at line 67 of file itkHardConnectedComponentImageFilter.h.

typedef std::list<IndexType> HardConnectedComponentImageFilter::ListType
 

Definition at line 83 of file itkHardConnectedComponentImageFilter.h.

typedef TOutputImage HardConnectedComponentImageFilter::OutputImageType
 

Definition at line 79 of file itkHardConnectedComponentImageFilter.h.

typedef TOutputImage::InternalPixelType HardConnectedComponentImageFilter::OutputInternalPixelType
 

Definition at line 66 of file itkHardConnectedComponentImageFilter.h.

typedef SmartPointer<Self> HardConnectedComponentImageFilter::Pointer
 

Smart pointer typedef support

Definition at line 88 of file itkHardConnectedComponentImageFilter.h.

typedef TOutputImage::RegionType HardConnectedComponentImageFilter::RegionType
 

Definition at line 82 of file itkHardConnectedComponentImageFilter.h.

typedef HardConnectedComponentImageFilter HardConnectedComponentImageFilter::Self
 

Standard "Self" & Superclass typedef.

Definition at line 58 of file itkHardConnectedComponentImageFilter.h.

typedef TInputImage::SizeType HardConnectedComponentImageFilter::SizeType
 

Definition at line 81 of file itkHardConnectedComponentImageFilter.h.

typedef ImageToImageFilter< TInputImage, TOutputImage > HardConnectedComponentImageFilter::Superclass
 

Definition at line 59 of file itkHardConnectedComponentImageFilter.h.


Function Documentation

* Standard pipeline method* void HardConnectedComponentImageFilter::GenerateData  )  [protected]
 

Referenced by itk::SymmetricEigenSystem< TMatrixElement, VNumberOfRows >::Update(), itk::Statistics::SampleAlgorithmBase< TInputHistogram >::Update(), itk::Statistics::ListSampleToHistogramGenerator< TListSample, THistogramMeasurement, TFrequencyContainer, TMeasurementVectorLength >::Update(), and itk::Statistics::KdTreeGenerator< TSample >::Update().

virtual const char* HardConnectedComponentImageFilter::GetNameOfClass  )  const [virtual]
 

Run-time type information (and related methods)

HardConnectedComponentImageFilter::HardConnectedComponentImageFilter const Self  )  [protected]
 

Definition at line 126 of file itkHardConnectedComponentImageFilter.h.

HardConnectedComponentImageFilter::HardConnectedComponentImageFilter  )  [protected]
 

Definition at line 124 of file itkHardConnectedComponentImageFilter.h.

HardConnectedComponentImageFilter::itkStaticConstMacro ImageDimension  ,
unsigned  int,
TOutputImage::ImageDimension 
 

HardConnectedComponentImageFilter::itkStaticConstMacro InputImageDimension  ,
unsigned  int,
TInputImage::ImageDimension 
 

static Pointer HardConnectedComponentImageFilter::New  )  [static]
 

Method for creation through the object factory.

Referenced by itk::BSplineDerivativeKernelFunction< VSplineOrder >::BSplineDerivativeKernelFunction(), itk::CannySegmentationLevelSetFunction< TImageType, TFeatureImageType >::CannySegmentationLevelSetFunction(), itk::CreateObjectFunction::CreateObject(), itk::CurvatureAnisotropicDiffusionImageFilter< TInputImage, TOutputImage >::CurvatureAnisotropicDiffusionImageFilter(), itk::DenseFiniteDifferenceImageFilter< TDeformationField, TDeformationField >::DenseFiniteDifferenceImageFilter(), itk::EncapsulateMetaData(), itk::QuaternionOrientationAdapter< Dimension >::FromDirectionCosines(), itk::TransformFactoryBase::GetFactory(), itk::SpatialObjectFactoryBase::GetFactory(), itk::GradientAnisotropicDiffusionImageFilter< TInputImage, TOutputImage >::GradientAnisotropicDiffusionImageFilter(), itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::LabelStatistics::LabelStatistics(), itk::NarrowBandImageFilterBase< TInputImage, Image< TOutputPixelType,::itk::GetImageDimension< TInputImage >::ImageDimension > >::NarrowBandImageFilterBase(), itk::randomPermutation::randomPermutation(), itk::VTKImageIOFactory::RegisterOneFactory(), itk::TIFFImageIOFactory::RegisterOneFactory(), itk::StimulateImageIOFactory::RegisterOneFactory(), itk::SiemensVisionImageIOFactory::RegisterOneFactory(), itk::RawImageIOFactory< TPixel, VImageDimension >::RegisterOneFactory(), itk::PNGImageIOFactory::RegisterOneFactory(), itk::NrrdImageIOFactory::RegisterOneFactory(), itk::NiftiImageIOFactory::RegisterOneFactory(), itk::MetaImageIOFactory::RegisterOneFactory(), itk::LSMImageIOFactory::RegisterOneFactory(), itk::JPEGImageIOFactory::RegisterOneFactory(), itk::GiplImageIOFactory::RegisterOneFactory(), itk::GEAdwImageIOFactory::RegisterOneFactory(), itk::GE5ImageIOFactory::RegisterOneFactory(), itk::GE4ImageIOFactory::RegisterOneFactory(), itk::GDCMImageIOFactory::RegisterOneFactory(), itk::DicomImageIOFactory::RegisterOneFactory(), itk::DICOMImageIO2Factory::RegisterOneFactory(), itk::Brains2MaskImageIOFactory::RegisterOneFactory(), itk::BMPImageIOFactory::RegisterOneFactory(), itk::BioRadImageIOFactory::RegisterOneFactory(), itk::AnalyzeImageIOFactory::RegisterOneFactory(), itk::SpatialObjectFactory< T >::RegisterSpatialObject(), itk::TransformFactory< T >::RegisterTransform(), RegressionTestImage(), itk::SegmentationLevelSetFunction< OutputImageType, FeatureImageType >::SegmentationLevelSetFunction(), itk::Statistics::ScalarImageToGreyLevelCooccurrenceMatrixGenerator< TImageType, THistogramFrequencyContainer >::SetOffset(), itk::SimplexMeshVolumeCalculator< TInputMesh >::SimplexCellVisitor::SimplexCellVisitor(), itk::SimplexMeshToTriangleMeshFilter< TInputMesh, TOutputMesh >::SimplexCellVisitor::SimplexCellVisitor(), itk::SimplexMeshAdaptTopologyFilter< TInputMesh, TOutputMesh >::SimplexCellVisitor::SimplexCellVisitor(), itk::SpatialObjectTreeNode< TDimension >::SpatialObjectTreeNode(), itk::VectorCurvatureAnisotropicDiffusionImageFilter< TInputImage, TOutputImage >::VectorCurvatureAnisotropicDiffusionImageFilter(), itk::VectorGradientAnisotropicDiffusionImageFilter< TInputImage, TOutputImage >::VectorGradientAnisotropicDiffusionImageFilter(), and itk::VectorThresholdSegmentationLevelSetFunction< TImageType, TFeatureImageType >::VectorThresholdSegmentationLevelSetFunction().

void HardConnectedComponentImageFilter::PrintSelf std::ostream &  os,
Indent  indent
const [protected]
 

Definition at line 132 of file itkHardConnectedComponentImageFilter.h.

Referenced by itk::Neighborhood< TImage::InternalPixelType *,::itk::GetImageDimension< TImage >::ImageDimension >::Print(), itk::VectorThresholdSegmentationLevelSetFunction< TImageType, TFeatureImageType >::PrintSelf(), itk::VectorNeighborhoodOperatorImageFilter< TInputImage, TOutputImage >::PrintSelf(), itk::VectorNearestNeighborInterpolateImageFunction< TInputImage, TCoordRep >::PrintSelf(), itk::VectorInterpolateImageFunction::PrintSelf(), itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >::PrintSelf(), itk::VectorCurvatureAnisotropicDiffusionImageFilter< TInputImage, TOutputImage >::PrintSelf(), itk::VectorAnisotropicDiffusionFunction< TImage >::PrintSelf(), itk::Statistics::TransferFunctionBase< ScalarType >::PrintSelf(), itk::ThresholdSegmentationLevelSetFunction< TImageType, TFeatureImageType >::PrintSelf(), itk::TensorRelativeAnisotropyImageFilter::PrintSelf(), itk::TensorFractionalAnisotropyImageFilter::PrintSelf(), itk::SymmetricEigenAnalysisImageFilter::PrintSelf(), itk::SobelEdgeDetectionImageFilter< TInputImage, TOutputImage >::PrintSelf(), itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >::PrintSelf(), itk::ShapeDetectionLevelSetFunction< TImageType, TFeatureImageType >::PrintSelf(), itk::ScalarAnisotropicDiffusionFunction< TImage >::PrintSelf(), itk::Statistics::Sample< ImageJointDomainTraits< TImage >::MeasurementVectorType >::PrintSelf(), itk::Statistics::RadialBasisFunctionBase< ScalarType >::PrintSelf(), itk::Statistics::ProbabilityDistribution::PrintSelf(), itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::PrintSelf(), itk::NormalizedCorrelationImageFilter< TInputImage, TMaskImage, TOutputImage, TOperatorValueType >::PrintSelf(), itk::Statistics::NNetDistanceMetricBase< TVector >::PrintSelf(), itk::NeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType >::PrintSelf(), itk::NeighborhoodOperator< TPixel, TDimension, TAllocator >::PrintSelf(), itk::NearestNeighborInterpolateImageFunction< TInputImage, TCoordRep >::PrintSelf(), itk::NearestNeighborExtrapolateImageFunction< TInputImage, TCoordRep >::PrintSelf(), itk::Statistics::MersenneTwisterRandomVariateGenerator::PrintSelf(), itk::Statistics::MembershipFunctionBase< ParameterType >::PrintSelf(), itk::Statistics::ListSampleBase< ImageJointDomainTraits< TImage >::MeasurementVectorType >::PrintSelf(), itk::Statistics::LearningFunctionBase< LayerType, TOutput >::PrintSelf(), itk::LaplacianOperator< TPixel, VDimension, TAllocator >::PrintSelf(), itk::KernelFunction::PrintSelf(), itk::InterpolateImageFunction< TImageType, TCoordRep >::PrintSelf(), itk::Statistics::InputFunctionBase< TVector, ScalarType >::PrintSelf(), itk::GradientNDAnisotropicDiffusionFunction< TImage >::PrintSelf(), itk::GeodesicActiveContourShapePriorLevelSetFunction< TImageType, TFeatureImageType >::PrintSelf(), itk::GeodesicActiveContourLevelSetFunction< TImageType, TFeatureImageType >::PrintSelf(), itk::GaussianOperator< TPixel, VDimension, TAllocator >::PrintSelf(), itk::GaussianKernelFunction::PrintSelf(), itk::ExtrapolateImageFunction< TInputImage, TCoordRep >::PrintSelf(), itk::DerivativeOperator< TPixel, VDimension, TAllocator >::PrintSelf(), itk::Statistics::DensityFunction< TMeasurementVector >::PrintSelf(), itk::CurvesLevelSetFunction< TImageType, TFeatureImageType >::PrintSelf(), itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::PrintSelf(), itk::BSplineResampleImageFunction< TImageType, TCoordRep >::PrintSelf(), itk::BSplineKernelFunction< VSplineOrder >::PrintSelf(), itk::BSplineDerivativeKernelFunction< VSplineOrder >::PrintSelf(), itk::AnisotropicDiffusionFunction< TImage >::PrintSelf(), and itk::ActiveShapeModelCalculator< TImage >::PrintSelf().

void HardConnectedComponentImageFilter::SetObjectSeed const IndexType seed  ) 
 

Setting the seed points for specified object.

Definition at line 102 of file itkHardConnectedComponentImageFilter.h.

References m_Seeds.

virtual HardConnectedComponentImageFilter::~HardConnectedComponentImageFilter  )  [protected, virtual]
 

Definition at line 125 of file itkHardConnectedComponentImageFilter.h.


Variable Documentation

ListType HardConnectedComponentImageFilter::m_Seeds
 

Definition at line 138 of file itkHardConnectedComponentImageFilter.h.

Referenced by itk::VectorConfidenceConnectedImageFilter< TInputImage, TOutputImage >::AddSeed(), itk::NeighborhoodConnectedImageFilter< TInputImage, TOutputImage >::AddSeed(), itk::ConfidenceConnectedImageFilter< TInputImage, TOutputImage >::AddSeed(), itk::NeighborhoodConnectedImageFilter< TInputImage, TOutputImage >::ClearSeeds(), itk::ConfidenceConnectedImageFilter< TInputImage, TOutputImage >::ClearSeeds(), and SetObjectSeed().

* Extract some information from the image types Dimensionality* of the two images is assumed to be the same* typedef TOutputImage::PixelType HardConnectedComponentImageFilter::OutputPixelType
 

Definition at line 65 of file itkHardConnectedComponentImageFilter.h.


Generated at Sun Jul 9 18:46:42 2006 for ITK by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2000