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

typedef
TInputImage::InternalPixelType 
InputInternalPixelType
typedef TInputImage::PixelType InputPixelType
typedef
TOutputImage::InternalPixelType 
OutputInternalPixelType
typedef TOutputImage::PixelType OutputPixelType
 itkStaticConstMacro (ImageDimension, unsigned int, TOutputImage::ImageDimension)
 itkStaticConstMacro (InputImageDimension, unsigned int, TInputImage::ImageDimension)

Typedefs

typedef SmartPointer< const SelfConstPointer
typedef TInputImage::IndexType IndexType
typedef TInputImage InputImageType
typedef std::list< IndexTypeListType
typedef TOutputImage OutputImageType
typedef SmartPointer< SelfPointer
typedef TOutputImage::RegionType RegionType
typedef
HardConnectedComponentImageFilter 
Self
typedef TInputImage::SizeType SizeType
typedef ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass

Functions

virtual const char * GetNameOfClass () const
 HardConnectedComponentImageFilter (const Self &)
 HardConnectedComponentImageFilter ()
static Pointer New ()
void SetObjectSeed (const IndexType &seed)
virtual ~HardConnectedComponentImageFilter ()
void GenerateData ()
void PrintSelf (std::ostream &os, Indent indent) const

Variables

ListType m_Seeds


Typedef Documentation

Definition at line 89 of file itkHardConnectedComponentImageFilter.h.

typedef TInputImage::IndexType HardConnectedComponentImageFilter::IndexType

Image typedef support

Definition at line 78 of file itkHardConnectedComponentImageFilter.h.

typedef TInputImage::InternalPixelType HardConnectedComponentImageFilter::InputInternalPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 68 of file itkHardConnectedComponentImageFilter.h.

typedef TInputImage::PixelType HardConnectedComponentImageFilter::InputPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 67 of file itkHardConnectedComponentImageFilter.h.

Definition at line 83 of file itkHardConnectedComponentImageFilter.h.

Definition at line 79 of file itkHardConnectedComponentImageFilter.h.

typedef TOutputImage::InternalPixelType HardConnectedComponentImageFilter::OutputInternalPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 66 of file itkHardConnectedComponentImageFilter.h.

typedef TOutputImage::PixelType HardConnectedComponentImageFilter::OutputPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 65 of file itkHardConnectedComponentImageFilter.h.

Smart pointer typedef support

Definition at line 88 of file itkHardConnectedComponentImageFilter.h.

typedef TOutputImage::RegionType HardConnectedComponentImageFilter::RegionType

typedef HardConnectedComponentImageFilter HardConnectedComponentImageFilter::Self

Standard "Self" & Superclass typedef.

Definition at line 58 of file itkHardConnectedComponentImageFilter.h.

typedef TInputImage::SizeType HardConnectedComponentImageFilter::SizeType

typedef ImageToImageFilter< TInputImage, TOutputImage > HardConnectedComponentImageFilter::Superclass

Definition at line 59 of file itkHardConnectedComponentImageFilter.h.


Function Documentation

void HardConnectedComponentImageFilter::GenerateData (  )  [protected]

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   
)

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

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

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

static Pointer HardConnectedComponentImageFilter::New (  )  [static]

Method for creation through the object factory.

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

Standard pipeline method.

Definition at line 132 of file itkHardConnectedComponentImageFilter.h.

Referenced by itk::Neighborhood< OutputPixelType::ValueType, itkGetStaticConstMacro(ImageDimension)>::Print(), itk::Statistics::DensityFunction< TMeasurementVector >::PrintSelf(), itk::NeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType >::PrintSelf(), itk::SobelEdgeDetectionImageFilter< TInputImage, TOutputImage >::PrintSelf(), itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::PrintSelf(), itk::GaussianKernelFunction::PrintSelf(), itk::ImageKernelOperator< TPixel, VDimension, TAllocator >::PrintSelf(), itk::InterpolateImageFunction< TImageType, TCoordRep >::PrintSelf(), itk::MaskImageFilter< TInputImage, TMaskImage, TOutputImage >::PrintSelf(), itk::TensorRelativeAnisotropyImageFilter< TInputImage, TOutputImage >::PrintSelf(), itk::ThresholdSegmentationLevelSetFunction< TImageType, TFeatureImageType >::PrintSelf(), itk::DivideByConstantImageFilter< TInputImage, TConstant, TOutputImage >::PrintSelf(), itk::LaplacianOperator< TPixel, VDimension, TAllocator >::PrintSelf(), itk::Statistics::LearningFunctionBase< LayerType::LayerInterfaceType, TTargetVector >::PrintSelf(), itk::Statistics::MersenneTwisterRandomVariateGenerator::PrintSelf(), itk::NearestNeighborInterpolateImageFunction< TInputImage, TCoordRep >::PrintSelf(), itk::ValarrayImageContainer< TElementIdentifier, TElement >::PrintSelf(), itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::PrintSelf(), itk::AnnulusOperator< TPixel, TDimension, TAllocator >::PrintSelf(), itk::BSplineKernelFunction< VSplineOrder >::PrintSelf(), itk::VectorNearestNeighborInterpolateImageFunction< TInputImage, TCoordRep >::PrintSelf(), itk::BSplineDerivativeKernelFunction< VSplineOrder >::PrintSelf(), itk::FastApproximateRankImageFilter< TInputImage, TOutputImage >::PrintSelf(), itk::ShapeSignedDistanceFunction< TCoordRep, VSpaceDimension >::PrintSelf(), itk::VectorAnisotropicDiffusionFunction< TImage >::PrintSelf(), itk::VectorThresholdSegmentationLevelSetFunction< TImageType, TFeatureImageType >::PrintSelf(), itk::BinaryProjectionImageFilter< TInputImage, TOutputImage >::PrintSelf(), itk::BinaryThresholdProjectionImageFilter< TInputImage, TOutputImage >::PrintSelf(), itk::DerivativeOperator< OutputImagePixelType, itkGetStaticConstMacro(ImageDimension)>::PrintSelf(), itk::Statistics::MembershipFunctionBase< TMeasurementVector >::PrintSelf(), itk::MultiplyByConstantImageFilter< TInputImage, TConstant, TOutputImage >::PrintSelf(), itk::QuadEdgeMeshDecimationFilter< TInput, TOutput, TCriterion >::PrintSelf(), itk::VectorInterpolateImageFunction< TInputImage, TCoordRep >::PrintSelf(), itk::MaskNegatedImageFilter< TInputImage, TMaskImage, TOutputImage >::PrintSelf(), itk::Statistics::ProbabilityDistribution::PrintSelf(), itk::GaussianOperator< TPixel, VDimension, TAllocator >::PrintSelf(), itk::GeodesicActiveContourShapePriorLevelSetFunction< TImageType, TFeatureImageType >::PrintSelf(), itk::Statistics::ListSampleBase< TPointSet::PointType >::PrintSelf(), itk::NearestNeighborExtrapolateImageFunction< TInputImage, TCoordRep >::PrintSelf(), itk::SubtractConstantFromImageFilter< TInputImage, TConstant, TOutputImage >::PrintSelf(), itk::SymmetricEigenAnalysisImageFilter< TInputImage, TOutputImage >::PrintSelf(), itk::TensorFractionalAnisotropyImageFilter< TInputImage, TOutputImage >::PrintSelf(), itk::ActiveShapeModelCalculator< TImage >::PrintSelf(), itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::PrintSelf(), itk::ExtrapolateImageFunction< TInputImage, TCoordRep >::PrintSelf(), itk::Statistics::InputFunctionBase< TMeasurementVector, ScalarType >::PrintSelf(), itk::NormalizedCorrelationImageFilter< TInputImage, TMaskImage, TOutputImage, TOperatorValueType >::PrintSelf(), itk::Statistics::RadialBasisFunctionBase< ScalarType >::PrintSelf(), itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >::PrintSelf(), itk::NeighborhoodOperator< TPixel, TDimension, TAllocator >::PrintSelf(), itk::Statistics::NNetDistanceMetricBase< TMeasurementVector >::PrintSelf(), itk::AddConstantToImageFilter< TInputImage, TConstant, TOutputImage >::PrintSelf(), itk::AnisotropicDiffusionFunction< TImage >::PrintSelf(), itk::Statistics::Sample< TPointSet::PointType >::PrintSelf(), itk::CurvesLevelSetFunction< TImageType, TFeatureImageType >::PrintSelf(), itk::GaussianDerivativeOperator< TPixel, VDimension, TAllocator >::PrintSelf(), itk::GeodesicActiveContourLevelSetFunction< TImageType, TFeatureImageType >::PrintSelf(), itk::Statistics::TransferFunctionBase< ScalarType >::PrintSelf(), itk::KernelFunction::PrintSelf(), and itk::VectorNeighborhoodOperatorImageFilter< TInputImage, TOutputImage >::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


Generated at Sat Feb 28 13:56:24 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000