#include <itkRelabelComponentImageFilter.h>
Inheritance diagram for itk::RelabelComponentImageFilter< TInputImage, TOutputImage >:
Public Types | |
typedef RelabelComponentImageFilter | Self |
typedef InPlaceImageFilter< 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 TOutputImage | OutputImageType |
typedef TInputImage::IndexType | IndexType |
typedef TInputImage::SizeType | SizeType |
typedef TOutputImage::RegionType | RegionType |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
itkStaticConstMacro (ImageDimension, unsigned int, TOutputImage::ImageDimension) | |
virtual const char * | GetClassName () const |
virtual unsigned long | GetNumberOfObjects () |
const std::vector< unsigned long > & | GetSizeOfObjectsInPixels () const |
const std::vector< float > & | GetSizeOfObjectsInPhysicalUnits () const |
virtual void | SetNumberOfObjectsToPrint (unsigned long _arg) |
virtual const unsigned long & | GetNumberOfObjectsToPrint () |
unsigned long | GetSizeOfObjectInPixels (unsigned long obj) const |
float | GetSizeOfObjectInPhysicalUnits (unsigned long obj) const |
Static Public Member Functions | |
Pointer | New () |
Protected Member Functions | |
RelabelComponentImageFilter () | |
virtual | ~RelabelComponentImageFilter () |
RelabelComponentImageFilter (const Self &) | |
void | GenerateData () |
void | GenerateInputRequestedRegion () |
void | PrintSelf (std::ostream &os, Indent indent) const |
RelabelComponentImageFilter remaps the labels associated with the objects in an image (as from the output of ConnectedComponentImageFilter) such that the label numbers are consecutive with no gaps between the label numbers used. By default, the relabling will also sort the labels based on the size of the object: the largest object will have label #1, the second largest will have label #2, etc.
Label #0 is assumed to be background is left unaltered by the relabeling.
RelabelComponentImageFilter is typically used on the output of the ConnectedComponentImageFilter for those applications that want to extract the largest object or the "k" largest objects. Any particular object can be extracted from the relabeled output using a BinaryThresholdImageFilter. A group of objects can be extracted from the relabled output using a ThresholdImageFilter.
Once all the objects are relabeled, the application can query the number of objects and the size of each object. Object sizes are returned in a vector. The size of the background is not calculated. So the size of object #1 is GetSizeOfObjectsInPixels()[0], the size of object #2 is GetSizeOfObjectsInPixels()[1], etc.
RelabelComponentImageFilter can be run as an "in place" filter, where it will overwrite its output. The default is run out of place (or generate a separate output). "In place" operation can be controlled via methods in the superclass, InPlaceImageFilter::InPlaceOn() and InPlaceImageFilter::InPlaceOff().
Definition at line 66 of file itkRelabelComponentImageFilter.h.
|
Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >. Definition at line 105 of file itkRelabelComponentImageFilter.h. |
|
Definition at line 97 of file itkRelabelComponentImageFilter.h. |
|
Types from the Superclass Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >. Definition at line 79 of file itkRelabelComponentImageFilter.h. |
|
Image typedef support Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >. Definition at line 95 of file itkRelabelComponentImageFilter.h. |
|
Definition at line 88 of file itkRelabelComponentImageFilter.h. |
|
Definition at line 87 of file itkRelabelComponentImageFilter.h. |
|
Superclass typedefs. Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >. Definition at line 96 of file itkRelabelComponentImageFilter.h. |
|
Definition at line 86 of file itkRelabelComponentImageFilter.h. |
|
Extract some information from the image types. Dimensionality of the two images is assumed to be the same. Definition at line 85 of file itkRelabelComponentImageFilter.h. |
|
Smart pointer typedef support Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >. Definition at line 104 of file itkRelabelComponentImageFilter.h. |
|
Definition at line 99 of file itkRelabelComponentImageFilter.h. |
|
Standard "Self" & Superclass typedef. Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >. Definition at line 73 of file itkRelabelComponentImageFilter.h. |
|
Definition at line 98 of file itkRelabelComponentImageFilter.h. |
|
Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >. Definition at line 74 of file itkRelabelComponentImageFilter.h. |
|
Definition at line 177 of file itkRelabelComponentImageFilter.h. |
|
Definition at line 180 of file itkRelabelComponentImageFilter.h. |
|
Definition at line 181 of file itkRelabelComponentImageFilter.h. |
|
Standard pipeline method. Reimplemented from itk::ImageSource< TOutputImage >. |
|
RelabelComponentImageFilter needs the entire input. Therefore it must provide an implementation GenerateInputRequestedRegion(). Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. |
|
Run-time type information (and related methods) Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >. |
|
Get the number of objects in the image. This information is only valid after the filter has executed. |
|
Get/Set the number of objects enumerated and described when the filter is printed. |
|
Get the size of a particular object in physical space (in units of pixel size). This information is only valid after the filter has executed. Size of the background (object #0) is not calculated. Definition at line 162 of file itkRelabelComponentImageFilter.h. |
|
Get the size of a particular object in pixels. This information is only valid after the filter has executed. Size of the background (object #0) is not calculated. Definition at line 146 of file itkRelabelComponentImageFilter.h. |
|
Get the size of each object in physical space (in units of pixel size). This information is only valid after the filter has executed. Size of the background is not calculated. Size of object #1 is GetSizeOfObjectsInPhysicalUnits()[0]. Size of object #2 is GetSizeOfObjectsInPhysicalUnits()[1]. Etc. Definition at line 140 of file itkRelabelComponentImageFilter.h. |
|
Get the size of each object in pixels. This information is only valid after the filter has executed. Size of the background is not calculated. Size of object #1 is GetSizeOfObjectsInPixels()[0]. Size of object #2 is GetSizeOfObjectsInPixels()[1]. Etc. Definition at line 132 of file itkRelabelComponentImageFilter.h. |
|
|
|
Method for creation through the object factory. Reimplemented from itk::Object. |
|
Standard printself method Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >. |
|
Get/Set the number of objects enumerated and described when the filter is printed. |