ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkAutoCropLabelMapFilter.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::IndexType | IndexType |
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 AutoCropLabelMapFilter | Self |
typedef InputImageType::SizeType | SizeType |
typedef ChangeRegionLabelMapFilter < TInputImage > | Superclass |
typedef TInputImage | TOutputImage |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
virtual void | SetCropBorder (SizeType _arg) |
virtual const SizeType & | GetCropBorder () |
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 | |
AutoCropLabelMapFilter () | |
virtual void | GenerateOutputInformation () |
void | PrintSelf (std::ostream &os, Indent indent) const |
~AutoCropLabelMapFilter () | |
Private Member Functions | |
AutoCropLabelMapFilter (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
SizeType | m_CropBorder |
Crop a LabelMap image to fit exactly the objects in the LabelMap.
The CropBorder can be used to add a border which will never be larger than the input image. To add a border of size independent of the input image, PadLabelMapFilter can be used.
This implementation was taken from the Insight Journal paper: http://hdl.handle.net/1926/584 or http://www.insight-journal.org/browse/publication/176
Definition at line 53 of file itkAutoCropLabelMapFilter.h.
typedef SmartPointer< const Self > itk::AutoCropLabelMapFilter< TInputImage >::ConstPointer |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 61 of file itkAutoCropLabelMapFilter.h.
typedef InputImageType::IndexType itk::AutoCropLabelMapFilter< TInputImage >::IndexType |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 84 of file itkAutoCropLabelMapFilter.h.
typedef InputImageType::ConstPointer itk::AutoCropLabelMapFilter< TInputImage >::InputImageConstPointer |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 78 of file itkAutoCropLabelMapFilter.h.
typedef InputImageType::PixelType itk::AutoCropLabelMapFilter< TInputImage >::InputImagePixelType |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 80 of file itkAutoCropLabelMapFilter.h.
typedef InputImageType::Pointer itk::AutoCropLabelMapFilter< TInputImage >::InputImagePointer |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 77 of file itkAutoCropLabelMapFilter.h.
typedef InputImageType::RegionType itk::AutoCropLabelMapFilter< TInputImage >::InputImageRegionType |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 79 of file itkAutoCropLabelMapFilter.h.
typedef TInputImage itk::AutoCropLabelMapFilter< TInputImage >::InputImageType |
Some convenient typedefs.
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 76 of file itkAutoCropLabelMapFilter.h.
typedef InputImageType::LabelObjectType itk::AutoCropLabelMapFilter< TInputImage >::LabelObjectType |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 81 of file itkAutoCropLabelMapFilter.h.
typedef Superclass::OutputImagePixelType itk::AutoCropLabelMapFilter< TInputImage >::OutputImagePixelType |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 73 of file itkAutoCropLabelMapFilter.h.
typedef Superclass::OutputImagePointer itk::AutoCropLabelMapFilter< TInputImage >::OutputImagePointer |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 71 of file itkAutoCropLabelMapFilter.h.
typedef Superclass::OutputImageRegionType itk::AutoCropLabelMapFilter< TInputImage >::OutputImageRegionType |
Superclass typedefs.
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 72 of file itkAutoCropLabelMapFilter.h.
typedef Superclass::OutputImageType itk::AutoCropLabelMapFilter< TInputImage >::OutputImageType |
Superclass typedefs.
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 67 of file itkAutoCropLabelMapFilter.h.
typedef InputImageType::PixelType itk::AutoCropLabelMapFilter< TInputImage >::PixelType |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 83 of file itkAutoCropLabelMapFilter.h.
typedef SmartPointer< Self > itk::AutoCropLabelMapFilter< TInputImage >::Pointer |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 60 of file itkAutoCropLabelMapFilter.h.
typedef InputImageType::RegionType itk::AutoCropLabelMapFilter< TInputImage >::RegionType |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 86 of file itkAutoCropLabelMapFilter.h.
typedef AutoCropLabelMapFilter itk::AutoCropLabelMapFilter< TInputImage >::Self |
Standard class typedefs.
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 58 of file itkAutoCropLabelMapFilter.h.
typedef InputImageType::SizeType itk::AutoCropLabelMapFilter< TInputImage >::SizeType |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 85 of file itkAutoCropLabelMapFilter.h.
typedef ChangeRegionLabelMapFilter< TInputImage > itk::AutoCropLabelMapFilter< TInputImage >::Superclass |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 59 of file itkAutoCropLabelMapFilter.h.
typedef TInputImage itk::AutoCropLabelMapFilter< TInputImage >::TOutputImage |
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 88 of file itkAutoCropLabelMapFilter.h.
itk::AutoCropLabelMapFilter< TInputImage >::AutoCropLabelMapFilter | ( | ) | [protected] |
itk::AutoCropLabelMapFilter< TInputImage >::~AutoCropLabelMapFilter | ( | ) | [inline, protected] |
Definition at line 105 of file itkAutoCropLabelMapFilter.h.
itk::AutoCropLabelMapFilter< TInputImage >::AutoCropLabelMapFilter | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::AutoCropLabelMapFilter< 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::ChangeRegionLabelMapFilter< TInputImage >.
virtual void itk::AutoCropLabelMapFilter< 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::ChangeRegionLabelMapFilter< TInputImage >.
virtual const SizeType& itk::AutoCropLabelMapFilter< TInputImage >::GetCropBorder | ( | ) | [virtual] |
Set/Get the border added to the mask before the crop. The default is 0 on * all the axis.
virtual const char* itk::AutoCropLabelMapFilter< TInputImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
static Pointer itk::AutoCropLabelMapFilter< TInputImage >::New | ( | ) | [static] |
Standard New method.
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
void itk::AutoCropLabelMapFilter< 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::ChangeRegionLabelMapFilter< TInputImage >.
void itk::AutoCropLabelMapFilter< 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::ChangeRegionLabelMapFilter< TInputImage >.
virtual void itk::AutoCropLabelMapFilter< TInputImage >::SetCropBorder | ( | SizeType | _arg | ) | [virtual] |
Set/Get the border added to the mask before the crop. The default is 0 on * all the axis.
const unsigned int itk::AutoCropLabelMapFilter< TInputImage >::ImageDimension = TOutputImage::ImageDimension [static] |
ImageDimension constants
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 93 of file itkAutoCropLabelMapFilter.h.
const unsigned int itk::AutoCropLabelMapFilter< TInputImage >::InputImageDimension = TInputImage::ImageDimension [static] |
ImageDimension constants
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 91 of file itkAutoCropLabelMapFilter.h.
SizeType itk::AutoCropLabelMapFilter< TInputImage >::m_CropBorder [private] |
Definition at line 115 of file itkAutoCropLabelMapFilter.h.
const unsigned int itk::AutoCropLabelMapFilter< TInputImage >::OutputImageDimension = TOutputImage::ImageDimension [static] |
ImageDimension constants
Reimplemented from itk::ChangeRegionLabelMapFilter< TInputImage >.
Definition at line 92 of file itkAutoCropLabelMapFilter.h.