NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Apply a filter or a pipeline slice by slice on an image. More...
Public Types | |
typedef SliceBySliceImageFilter | Self |
typedef ImageToImageFilter < TInputImage, TOutputImage > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::InputImagePointer | InputImagePointer |
typedef TInputImage | InputImageType |
typedef TInputImage::RegionType | RegionType |
typedef TInputImage::SizeType | SizeType |
typedef TInputImage::IndexType | IndexType |
typedef TInputImage::PixelType | PixelType |
typedef TInputImage::OffsetType | OffsetType |
typedef TOutputImage | OutputImageType |
typedef TOutputImage::PixelType | OutputPixelType |
typedef TInputFilter | InputFilterType |
typedef TOutputFilter | OutputFilterType |
typedef TInternalInputImage | InternalInputImageType |
typedef InternalInputImageType::RegionType | InternalRegionType |
typedef InternalInputImageType::SizeType | InternalSizeType |
typedef InternalInputImageType::IndexType | InternalIndexType |
typedef InternalInputImageType::OffsetType | InternalOffsetType |
typedef InternalInputImageType::PixelType | InternalInputPixelType |
typedef TInternalOutputImage | InternalOutputImageType |
typedef InternalOutputImageType::PixelType | InternalOutputPixelType |
Public Member Functions | |
virtual const char * | GetClassName () const |
itkStaticConstMacro (ImageDimension, unsigned int, TInputImage::ImageDimension) | |
itkStaticConstMacro (InternalImageDimension, unsigned int, InternalInputImageType::ImageDimension) | |
virtual void | SetDimension (unsigned int _arg) |
virtual unsigned int | GetDimension () const |
void | SetFilter (InputFilterType *filter) |
InputFilterType * | GetFilter () |
const InputFilterType * | GetFilter () const |
void | SetInputFilter (InputFilterType *filter) |
virtual InputFilterType * | GetInputFilter () |
void | SetOutputFilter (OutputFilterType *filter) |
virtual OutputFilterType * | GetOutputFilter () |
virtual long | GetSliceIndex () const |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
SliceBySliceImageFilter () | |
~SliceBySliceImageFilter () | |
void | GenerateData () |
void | PrintSelf (std::ostream &os, Indent indent) const |
void | GenerateInputRequestedRegion () |
void | EnlargeOutputRequestedRegion (DataObject *) |
Apply a filter or a pipeline slice by slice on an image.
SliceBySliceImageFilter let the user apply a filter or a pipeline of filters on the slices of an image. The filters must work on images smaller of one dimension than the input and output images of the SliceBySliceImageFilter - if the SliceBySliceImageFilter work on 3D images, the filters used internally must work on 2D images.
The dimension along which the slices are extracted can be selected with SetDimension() and defaults to the last one.
SliceBySliceImageFilter takes the input and the output filters of a pipeline as parameter. They can be set with SetInputFilter() and SetOutputFilter(). The pipeline will be run once per slice.
If there is only one filter to apply to the slices of the input image, the SetFilter() method can be used to set the filter passed as parameter both as the input and as the output filter.
SliceBySliceImageFilter can take several images as input. In that case, the same number of slices will be passed to the input filter. If the output filter produce several output slices, SliceBySliceImageFilter produce the same number of output images. The input images are passed with the same input number to the input filter - if SetInput( 3, img ) is used on the SliceBySliceImageFilter the corresponding slice will be passed to the input filter with SetInput( 3, img ). See http://www.itk.org/pipermail/insight-users/2008-May/026112.html for an example of usage of that feature with MaskImageFilter.
The requested region is always enlarged by the filter to cover entirely the whole slice - however, only the slice in the requested region are processed (the requested region is not enlarged to the whole image if not needed).
The ouput images of SliceBySliceImageFilter must be of the same size than the input images. All the input images must be of the same pixel type. All the output images must be of the same pixel type.
This class was taken from the Insight Journal paper: http://insight-journal.org/midas/handle.php?handle=1926/368
typedef SmartPointer<const Self> itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::ConstPointer |
typedef TInputImage::IndexType itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::IndexType |
typedef TInputFilter itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InputFilterType |
typedef Superclass::InputImagePointer itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InputImagePointer |
Superclass typedefs.
typedef TInputImage itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InputImageType |
Image related typedefs.
typedef InternalInputImageType::IndexType itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalIndexType |
typedef TInternalInputImage itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalInputImageType |
typedef InternalInputImageType::PixelType itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalInputPixelType |
typedef InternalInputImageType::OffsetType itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalOffsetType |
typedef TInternalOutputImage itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalOutputImageType |
typedef InternalOutputImageType::PixelType itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalOutputPixelType |
typedef InternalInputImageType::RegionType itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalRegionType |
typedef InternalInputImageType::SizeType itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalSizeType |
typedef TInputImage::OffsetType itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::OffsetType |
typedef TOutputFilter itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::OutputFilterType |
typedef TOutputImage itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::OutputImageType |
typedef TOutputImage::PixelType itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::OutputPixelType |
typedef TInputImage::PixelType itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::PixelType |
typedef SmartPointer<Self> itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::Pointer |
typedef TInputImage::RegionType itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::RegionType |
typedef SliceBySliceImageFilter itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::Self |
Standard class typedefs.
typedef TInputImage::SizeType itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SizeType |
typedef ImageToImageFilter<TInputImage,TOutputImage> itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::Superclass |
|
protected |
|
inlineprotected |
|
protected |
|
protected |
|
protected |
|
virtual |
Runtime information support.
|
virtual |
|
inline |
|
inline |
|
virtual |
|
virtual |
|
virtual |
The index of the slice currently processed by the filter. This is intended to be used with the IterationEvent sent before the processing of each object. It contains a relevant value only during the filter update.
itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::itkStaticConstMacro | ( | ImageDimension | , |
unsigned | int, | ||
TInputImage::ImageDimension | |||
) |
Image related typedefs.
itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::itkStaticConstMacro | ( | InternalImageDimension | , |
unsigned | int, | ||
InternalInputImageType::ImageDimension | |||
) |
|
static |
Standard New method.
|
protected |
|
virtual |
void itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SetFilter | ( | InputFilterType * | filter | ) |
void itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SetInputFilter | ( | InputFilterType * | filter | ) |
void itk::SliceBySliceImageFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SetOutputFilter | ( | OutputFilterType * | filter | ) |