#include <itkWarpImageFilter.h>
Inheritance diagram for itk::WarpImageFilter:
Public Types | |
typedef WarpImageFilter | Self |
typedef ImageToImageFilter< TInputImage, TOutputImage > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TOutputImage::RegionType | OutputImageRegionType |
typedef Superclass::InputImageType | InputImageType |
typedef Superclass::InputImagePointer | InputImagePointer |
typedef Superclass::OutputImageType | OutputImageType |
typedef Superclass::OutputImagePointer | OutputImagePointer |
typedef Superclass::InputImageConstPointer | InputImageConstPointer |
typedef OutputImageType::IndexType | IndexType |
typedef OutputImageType::SizeType | SizeType |
typedef OutputImageType::PixelType | PixelType |
typedef TDeformationField | DeformationFieldType |
typedef DeformationFieldType::Pointer | DeformationFieldPointer |
typedef DeformationFieldType::PixelType | DisplacementType |
typedef double | CoordRepType |
typedef InterpolateImageFunction< InputImageType, CoordRepType > | InterpolatorType |
typedef InterpolatorType::Pointer | InterpolatorPointer |
typedef LinearInterpolateImageFunction< InputImageType, CoordRepType > | DefaultInterpolatorType |
typedef Point< CoordRepType, itkGetStaticConstMacro(ImageDimension) | PointType ) |
Public Methods | |
virtual const char * | GetClassName () const |
itkStaticConstMacro (ImageDimension, unsigned int, TOutputImage::ImageDimension) | |
void | SetDeformationField (DeformationFieldType *field) |
DeformationFieldType * | GetDeformationField (void) |
virtual void | SetInterpolator (InterpolatorType *_arg) |
virtual InterpolatorType * | GetInterpolator () |
virtual void | SetOutputSpacing (const double values[ImageDimension]) |
const double * | GetOutputSpacing () |
virtual void | SetOutputOrigin (const double values[ImageDimension]) |
const double * | GetOutputOrigin () |
virtual void | SetEdgePaddingValue (PixelType _arg) |
virtual PixelType | GetEdgePaddingValue () |
virtual void | GenerateOutputInformation () |
virtual void | GenerateInputRequestedRegion () |
virtual void | BeforeThreadedGenerateData () |
Static Public Methods | |
Pointer | New () |
Protected Methods | |
WarpImageFilter () | |
~WarpImageFilter () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, int threadId) |
WarpImageFilter warps an existing image with respect to a given deformation field.
A deformation field is represented as a image whose pixel type is some vector type with at least N elements, where N is the dimension of the input image. The vector type must support element access via operator [].
The output image is produced by inverse mapping: the output pixels are mapped back onto the input image. This scheme avoids the creation of any holes and overlaps in the output image.
Each vector in the deformation field represent the distance between a geometric point in the input space and a point in the output space such that:
Typically the mapped position does not correspond to an integer pixel position in the input image. Interpolation via an image function is used to compute values at non-integer positions. The default interpolation typed used is the LinearInterpolateImageFunction. The user can specify a particular interpolation function via SetInterpolator(). Note that the input interpolator must derive from base class InterpolateImageFunction.
Position mapped to outside of the input image buffer are assigned a edge padding value.
The LargetPossibleRegion for the output is inherited from the input deformation field. The output image spacing and origin may be set via SetOutputSpacing, SetOutputOrigin. The default are respectively a vector of 1's and a vector of 0's.
This class is templated over the type of the input image, the type of the output image and the type of the deformation field.
The input image is set via SetInput. The input deformation field is set via SetDeformationField.
This filter is implemented as a multithreaded filter.
Definition at line 83 of file itkWarpImageFilter.h.
|
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 91 of file itkWarpImageFilter.h. |
|
Interpolator typedef support. Definition at line 122 of file itkWarpImageFilter.h. |
|
Definition at line 126 of file itkWarpImageFilter.h. |
|
Definition at line 118 of file itkWarpImageFilter.h. |
|
Deformation field typedef support. Definition at line 117 of file itkWarpImageFilter.h. |
|
Definition at line 119 of file itkWarpImageFilter.h. |
|
Definition at line 108 of file itkWarpImageFilter.h. |
|
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 107 of file itkWarpImageFilter.h. |
|
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 104 of file itkWarpImageFilter.h. |
|
Inherit some types from the superclass. Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 103 of file itkWarpImageFilter.h. |
|
Definition at line 124 of file itkWarpImageFilter.h. |
|
Definition at line 123 of file itkWarpImageFilter.h. |
|
Reimplemented from itk::ImageSource< TOutputImage >. Definition at line 106 of file itkWarpImageFilter.h. |
|
Typedef to describe the output image region type. Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 100 of file itkWarpImageFilter.h. |
|
Some convenient typedefs. Reimplemented from itk::ImageSource< TOutputImage >. Definition at line 105 of file itkWarpImageFilter.h. |
|
Definition at line 110 of file itkWarpImageFilter.h. |
|
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 90 of file itkWarpImageFilter.h. |
|
Point type Definition at line 129 of file itkWarpImageFilter.h. |
|
Standard class typedefs. Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 88 of file itkWarpImageFilter.h. |
|
Definition at line 109 of file itkWarpImageFilter.h. |
|
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 89 of file itkWarpImageFilter.h. |
|
|
|
Definition at line 184 of file itkWarpImageFilter.h. |
|
This method is used to set the state of the filter before multi-threading. Reimplemented from itk::ImageSource< TOutputImage >. |
|
It is difficult to compute in advance the input image region required to compute the requested output region. Thus the safest thing to do is to request for the whole input image. For the deformation field, the input requested region set to be the same as that of the output requested region. Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. |
|
WarpImageFilter produces an image which is a different size than its input image. As such, it needs to provide an implemenation for GenerateOutputInformation() which set the output information according the OutputSpacing, OutputOrigin and the deformation field's LargestPossibleRegion. Reimplemented from itk::ProcessObject. |
|
Run-time type information (and related methods) Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. |
|
Get a pointer the deformation field. |
|
Get the edge padding value |
|
Get a pointer to the interpolator function. |
|
Get the output image origin. Definition at line 154 of file itkWarpImageFilter.h. |
|
Get the output image spacing. Definition at line 147 of file itkWarpImageFilter.h. |
|
Determine the image dimension. |
|
Method for creation through the object factory. Reimplemented from itk::Object. |
|
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 the deformation field. |
|
Set the edge padding value |
|
Set the interpolator function. |
|
Set the output image origin. |
|
Set the output image spacing. |
|
WarpImageFilter is implemented as a multi-threaded filter. As such, it needs to provide and implementation for ThreadedGenerateData(). Reimplemented from itk::ImageSource< TOutputImage >. |