#include <itkConnectedComponentImageFilter.h>
Inheritance diagram for itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >:
Public Types | |
typedef ConnectedComponentImageFilter | Self |
typedef ImageToImageFilter< TInputImage, TOutputImage > | Superclass |
typedef Superclass::InputImagePointer | InputImagePointer |
typedef TOutputImage::PixelType | OutputPixelType |
typedef TOutputImage::InternalPixelType | OutputInternalPixelType |
typedef TInputImage::PixelType | InputPixelType |
typedef TInputImage::InternalPixelType | InputInternalPixelType |
typedef TInputImage | InputImageType |
typedef TMaskImage | MaskImageType |
typedef TOutputImage | OutputImageType |
typedef TInputImage::IndexType | IndexType |
typedef TInputImage::SizeType | SizeType |
typedef TOutputImage::RegionType | RegionType |
typedef std::list< IndexType > | ListType |
typedef MaskImageType::Pointer | MaskImagePointer |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
itkStaticConstMacro (ImageDimension, unsigned int, TOutputImage::ImageDimension) | |
virtual const char * | GetNameOfClass () const |
void | SetMaskImage (TMaskImage *mask) |
const TMaskImage * | GetMaskImage () const |
virtual void | SetFullyConnected (bool _arg) |
virtual const bool & | GetFullyConnected () |
virtual void | FullyConnectedOn () |
virtual void | FullyConnectedOff () |
Static Public Member Functions | |
Pointer | New () |
Protected Member Functions | |
ConnectedComponentImageFilter () | |
virtual | ~ConnectedComponentImageFilter () |
ConnectedComponentImageFilter (const Self &) | |
void | PrintSelf (std::ostream &os, Indent indent) const |
void | GenerateData () |
void | GenerateInputRequestedRegion () |
void | EnlargeOutputRequestedRegion (DataObject *) |
Protected Attributes | |
bool | m_FullyConnected |
ConnectedComponentImageFilter labels the objects in a binary image. Each distinct object is assigned a unique label. The filter makes three passes through the image. The first pass initialized the output. The second pass labels each foreground pixel such that all the pixels associated with an object either have the same label or have had their labels entered into a equivalency table. The third pass through the image flattens the equivalency table such that all pixels for an object have the same label.
The final object labels are in no particular order (and some object labels may not be used on the final objects). You can reorder the labels such that object labels are consecutive and sorted based on object size by passing the output of this filter to a RelabelComponentImageFilter.
Definition at line 49 of file itkConnectedComponentImageFilter.h.
|
|
|
|
|
|
|
|
|
|
|
|
Extract some information from the image types. Dimensionality of the two images is assumed to be the same. Reimplemented in itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >, itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, Functor::SimilarPixelsFunctor< TInputImage::ValueType >, TMaskImage >, and itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, Functor::SimilarVectorsFunctor< TInputImage::ValueType >, TMaskImage >. Definition at line 68 of file itkConnectedComponentImageFilter.h. |
|
|
|
|
|
|
Definition at line 124 of file itkConnectedComponentImageFilter.h. |
|
Definition at line 128 of file itkConnectedComponentImageFilter.h. References itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::Self. |
|
Definition at line 129 of file itkConnectedComponentImageFilter.h. |
|
ConnectedComponentImageFilter will produce all of the output. Therefore it must provide an implementation of EnlargeOutputRequestedRegion(). Reimplemented from itk::ProcessObject. |
|
Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn. |
|
Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn. |
|
|
ConnectedComponentImageFilter needs the entire input. Therefore it must provide an implementation GenerateInputRequestedRegion(). Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. |
|
Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn. |
|
Definition at line 119 of file itkConnectedComponentImageFilter.h. |
|
|
|
|
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::ImageToImageFilter< TInputImage, TOutputImage >. |
|
Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn. |
|
Definition at line 115 of file itkConnectedComponentImageFilter.h. |
|
Definition at line 131 of file itkConnectedComponentImageFilter.h. |