ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkChangeRegionLabelMapFilter.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::IndexType | IndexType |
typedef InputImageType::IndexValueType | IndexValueType |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | InputImageType |
typedef InputImageType::LabelObjectType | LabelObjectType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImagePointer | OutputImagePointer |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef Superclass::OutputImageType | OutputImageType |
typedef InputImageType::PixelType | PixelType |
typedef SmartPointer< Self > | Pointer |
typedef InputImageType::RegionType | RegionType |
typedef ChangeRegionLabelMapFilter | Self |
typedef InputImageType::SizeType | SizeType |
typedef InPlaceLabelMapFilter < TInputImage > | Superclass |
typedef TInputImage | TOutputImage |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
static const unsigned int | ImageDimension = TOutputImage::ImageDimension |
Protected Member Functions | |
void | EnlargeOutputRequestedRegion (DataObject *) |
void | GenerateData () |
void | GenerateInputRequestedRegion () |
virtual void | GenerateOutputInformation () |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | ThreadedProcessLabelObject (LabelObjectType *labelObject) |
Private Member Functions | |
ChangeRegionLabelMapFilter (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
OutputImageRegionType | m_Region |
virtual void | SetRegion (OutputImageRegionType _arg) |
virtual const OutputImageRegionType & | GetRegion () |
ChangeRegionLabelMapFilter () | |
~ChangeRegionLabelMapFilter () |
Change the region of a label map.
Change the region of a label map. If the output can't contain some of the objects' lines they are truncated or removed. All objects fully outside the output region are removed.
This code was contributed in the Insight Journal paper: "Label object representation and manipulation with ITK" by Lehmann G. http://hdl.handle.net/1926/584 http://www.insight-journal.org/browse/publication/176
Definition at line 56 of file itkChangeRegionLabelMapFilter.h.
typedef SmartPointer< const Self > itk::ChangeRegionLabelMapFilter< TInputImage >::ConstPointer |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 63 of file itkChangeRegionLabelMapFilter.h.
typedef InputImageType::IndexType itk::ChangeRegionLabelMapFilter< TInputImage >::IndexType |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 86 of file itkChangeRegionLabelMapFilter.h.
typedef InputImageType::IndexValueType itk::ChangeRegionLabelMapFilter< TInputImage >::IndexValueType |
Definition at line 87 of file itkChangeRegionLabelMapFilter.h.
typedef InputImageType::ConstPointer itk::ChangeRegionLabelMapFilter< TInputImage >::InputImageConstPointer |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 80 of file itkChangeRegionLabelMapFilter.h.
typedef InputImageType::PixelType itk::ChangeRegionLabelMapFilter< TInputImage >::InputImagePixelType |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 82 of file itkChangeRegionLabelMapFilter.h.
typedef InputImageType::Pointer itk::ChangeRegionLabelMapFilter< TInputImage >::InputImagePointer |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 79 of file itkChangeRegionLabelMapFilter.h.
typedef InputImageType::RegionType itk::ChangeRegionLabelMapFilter< TInputImage >::InputImageRegionType |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 81 of file itkChangeRegionLabelMapFilter.h.
typedef TInputImage itk::ChangeRegionLabelMapFilter< TInputImage >::InputImageType |
Some convenient typedefs.
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 78 of file itkChangeRegionLabelMapFilter.h.
typedef InputImageType::LabelObjectType itk::ChangeRegionLabelMapFilter< TInputImage >::LabelObjectType |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 83 of file itkChangeRegionLabelMapFilter.h.
typedef Superclass::OutputImagePixelType itk::ChangeRegionLabelMapFilter< TInputImage >::OutputImagePixelType |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 75 of file itkChangeRegionLabelMapFilter.h.
typedef Superclass::OutputImagePointer itk::ChangeRegionLabelMapFilter< TInputImage >::OutputImagePointer |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 73 of file itkChangeRegionLabelMapFilter.h.
typedef Superclass::OutputImageRegionType itk::ChangeRegionLabelMapFilter< TInputImage >::OutputImageRegionType |
Superclass typedefs.
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 74 of file itkChangeRegionLabelMapFilter.h.
typedef Superclass::OutputImageType itk::ChangeRegionLabelMapFilter< TInputImage >::OutputImageType |
Superclass typedefs.
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 69 of file itkChangeRegionLabelMapFilter.h.
typedef InputImageType::PixelType itk::ChangeRegionLabelMapFilter< TInputImage >::PixelType |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 85 of file itkChangeRegionLabelMapFilter.h.
typedef SmartPointer< Self > itk::ChangeRegionLabelMapFilter< TInputImage >::Pointer |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 62 of file itkChangeRegionLabelMapFilter.h.
typedef InputImageType::RegionType itk::ChangeRegionLabelMapFilter< TInputImage >::RegionType |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 89 of file itkChangeRegionLabelMapFilter.h.
typedef ChangeRegionLabelMapFilter itk::ChangeRegionLabelMapFilter< TInputImage >::Self |
Standard class typedefs.
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 60 of file itkChangeRegionLabelMapFilter.h.
typedef InputImageType::SizeType itk::ChangeRegionLabelMapFilter< TInputImage >::SizeType |
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 88 of file itkChangeRegionLabelMapFilter.h.
typedef InPlaceLabelMapFilter< TInputImage > itk::ChangeRegionLabelMapFilter< TInputImage >::Superclass |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 61 of file itkChangeRegionLabelMapFilter.h.
typedef TInputImage itk::ChangeRegionLabelMapFilter< TInputImage >::TOutputImage |
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 91 of file itkChangeRegionLabelMapFilter.h.
itk::ChangeRegionLabelMapFilter< TInputImage >::ChangeRegionLabelMapFilter | ( | ) | [inline, protected] |
The output region to use
Definition at line 103 of file itkChangeRegionLabelMapFilter.h.
itk::ChangeRegionLabelMapFilter< TInputImage >::~ChangeRegionLabelMapFilter | ( | ) | [inline, protected] |
The output region to use
Definition at line 104 of file itkChangeRegionLabelMapFilter.h.
itk::ChangeRegionLabelMapFilter< TInputImage >::ChangeRegionLabelMapFilter | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::ChangeRegionLabelMapFilter< TInputImage >::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::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::RegionFromReferenceLabelMapFilter< TInputImage >, and itk::AutoCropLabelMapFilter< TInputImage >.
void itk::ChangeRegionLabelMapFilter< TInputImage >::EnlargeOutputRequestedRegion | ( | DataObject * | ) | [protected, virtual] |
LabelMapFilter will produce the entire output.
Reimplemented from itk::LabelMapFilter< TInputImage, TInputImage >.
void itk::ChangeRegionLabelMapFilter< TInputImage >::GenerateData | ( | void | ) | [protected, virtual] |
A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling ThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter an be threaded, it should NOT provide a GenerateData() method but should provide a ThreadedGenerateData() instead.
Reimplemented from itk::ImageSource< TInputImage >.
void itk::ChangeRegionLabelMapFilter< TInputImage >::GenerateInputRequestedRegion | ( | void | ) | [protected, virtual] |
LabelMapFilter requires the entire input to be available. Thus, it needs to provide an implementation of GenerateInputRequestedRegion().
Reimplemented from itk::LabelMapFilter< TInputImage, TInputImage >.
virtual void itk::ChangeRegionLabelMapFilter< TInputImage >::GenerateOutputInformation | ( | ) | [protected, virtual] |
Generate the information decribing the output data. The default implementation of this method will copy information from the input to the output. A filter may override this method if its output will have different information than its input. For instance, a filter that shrinks an image will need to provide an implementation for this method that changes the spacing of the pixels. Such filters should call their superclass' implementation of this method prior to changing the information values they need (i.e. GenerateOutputInformation() should call Superclass::GenerateOutputInformation() prior to changing the information.
Reimplemented from itk::ProcessObject.
Reimplemented in itk::RegionFromReferenceLabelMapFilter< TInputImage >, itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, and itk::AutoCropLabelMapFilter< TInputImage >.
virtual const char* itk::ChangeRegionLabelMapFilter< TInputImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::AutoCropLabelMapFilter< TInputImage >, itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
virtual const OutputImageRegionType& itk::ChangeRegionLabelMapFilter< TInputImage >::GetRegion | ( | ) | [virtual] |
The output region to use
static Pointer itk::ChangeRegionLabelMapFilter< TInputImage >::New | ( | ) | [static] |
Standard New method.
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::RegionFromReferenceLabelMapFilter< TInputImage >, and itk::AutoCropLabelMapFilter< TInputImage >.
void itk::ChangeRegionLabelMapFilter< TInputImage >::operator= | ( | const Self & | ) | [private] |
PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::RegionFromReferenceLabelMapFilter< TInputImage >, itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, and itk::AutoCropLabelMapFilter< TInputImage >.
virtual void itk::ChangeRegionLabelMapFilter< TInputImage >::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::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::RegionFromReferenceLabelMapFilter< TInputImage >, itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, and itk::AutoCropLabelMapFilter< TInputImage >.
virtual void itk::ChangeRegionLabelMapFilter< TInputImage >::SetRegion | ( | OutputImageRegionType | _arg | ) | [virtual] |
The output region to use
virtual void itk::ChangeRegionLabelMapFilter< TInputImage >::ThreadedProcessLabelObject | ( | LabelObjectType * | labelObject | ) | [protected, virtual] |
Reimplemented from itk::LabelMapFilter< TInputImage, TInputImage >.
const unsigned int itk::ChangeRegionLabelMapFilter< TInputImage >::ImageDimension = TOutputImage::ImageDimension [static] |
ImageDimension constants
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 96 of file itkChangeRegionLabelMapFilter.h.
const unsigned int itk::ChangeRegionLabelMapFilter< TInputImage >::InputImageDimension = TInputImage::ImageDimension [static] |
ImageDimension constants
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 94 of file itkChangeRegionLabelMapFilter.h.
OutputImageRegionType itk::ChangeRegionLabelMapFilter< TInputImage >::m_Region [private] |
Definition at line 123 of file itkChangeRegionLabelMapFilter.h.
const unsigned int itk::ChangeRegionLabelMapFilter< TInputImage >::OutputImageDimension = TOutputImage::ImageDimension [static] |
ImageDimension constants
Reimplemented from itk::InPlaceLabelMapFilter< TInputImage >.
Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::AutoCropLabelMapFilter< TInputImage >, and itk::RegionFromReferenceLabelMapFilter< TInputImage >.
Definition at line 95 of file itkChangeRegionLabelMapFilter.h.