ITK
4.6.0
Insight Segmentation and Registration Toolkit
|
#include <itkVectorResampleImageFilter.h>
Resample an image via a coordinate transform.
VectorResampleImageFilter resamples an existing image through some coordinate transform, interpolating via some image function. The class is templated over the types of the input and output images.
Note that the choice of interpolator function can be important. This function is set via SetInterpolator(). The default is itk::VectorLinearInterpolateImageFunction<InputImageType, TInterpolatorPrecisionType>, which is reasonable for ordinary medical images.
Since this filter produces an image which is a different size than its input, it needs to override several of the methods defined in ProcessObject in order to properly manage the pipeline execution model. In particular, this filter overrides ProcessObject::GenerateInputRequestedRegion() and ProcessObject::GenerateOutputInformation().
This filter is implemented as a multithreaded filter. It provides a ThreadedGenerateData() method for its implementation.
Definition at line 59 of file itkVectorResampleImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Member Functions | |
void | operator= (const Self &) |
VectorResampleImageFilter (const Self &) | |
typedef SmartPointer< const Self > itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ConstPointer |
Definition at line 67 of file itkVectorResampleImageFilter.h.
typedef TOutputImage::DirectionType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::DirectionType |
Definition at line 120 of file itkVectorResampleImageFilter.h.
typedef TOutputImage::IndexType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::IndexType |
Image index typedef.
Definition at line 105 of file itkVectorResampleImageFilter.h.
typedef InputImageType::ConstPointer itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageConstPointer |
Definition at line 72 of file itkVectorResampleImageFilter.h.
typedef InputImageType::Pointer itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImagePointer |
Definition at line 71 of file itkVectorResampleImageFilter.h.
typedef InputImageType::RegionType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageRegionType |
Definition at line 74 of file itkVectorResampleImageFilter.h.
typedef TInputImage itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageType |
Definition at line 69 of file itkVectorResampleImageFilter.h.
typedef InterpolatorType::Pointer itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InterpolatorPointerType |
Definition at line 99 of file itkVectorResampleImageFilter.h.
typedef VectorInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType > itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InterpolatorType |
Interpolator typedef.
Definition at line 98 of file itkVectorResampleImageFilter.h.
typedef TOutputImage::PointType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OriginPointType |
Definition at line 119 of file itkVectorResampleImageFilter.h.
typedef OutputImageType::Pointer itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImagePointer |
Definition at line 73 of file itkVectorResampleImageFilter.h.
typedef TOutputImage::RegionType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageRegionType |
Typedef to describe the output image region type.
Definition at line 115 of file itkVectorResampleImageFilter.h.
typedef TOutputImage itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageType |
Definition at line 70 of file itkVectorResampleImageFilter.h.
typedef PixelType::ValueType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PixelComponentType |
Definition at line 112 of file itkVectorResampleImageFilter.h.
typedef TOutputImage::PixelType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PixelType |
Image pixel value typedef.
Definition at line 111 of file itkVectorResampleImageFilter.h.
typedef SmartPointer< Self > itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Pointer |
Definition at line 66 of file itkVectorResampleImageFilter.h.
typedef InterpolatorType::PointType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PointType |
Image point typedef.
Definition at line 108 of file itkVectorResampleImageFilter.h.
typedef VectorResampleImageFilter itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Self |
Standard class typedefs.
Definition at line 64 of file itkVectorResampleImageFilter.h.
typedef Size< itkGetStaticConstMacro(ImageDimension) > itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SizeType |
Image size typedef.
Definition at line 102 of file itkVectorResampleImageFilter.h.
typedef TOutputImage::SpacingType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SpacingType |
Image spacing,origin and direction typedef
Definition at line 118 of file itkVectorResampleImageFilter.h.
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Superclass |
Definition at line 65 of file itkVectorResampleImageFilter.h.
typedef TransformType::ConstPointer itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::TransformPointerType |
Transform typedef.
Definition at line 94 of file itkVectorResampleImageFilter.h.
typedef Transform< TInterpolatorPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension) > itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::TransformType |
Transform typedef.
Definition at line 92 of file itkVectorResampleImageFilter.h.
|
protected |
|
inlineprotected |
Definition at line 213 of file itkVectorResampleImageFilter.h.
|
private |
|
virtual |
This method is used to set the state of the filter after multi-threading.
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
This method is used to set the state of the filter before multi-threading.
Reimplemented from itk::ImageSource< TOutputImage >.
|
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::Object.
|
virtual |
VectorResampleImageFilter needs a different input requested region than the output requested region. As such, VectorResampleImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
VectorResampleImageFilter produces an image which is a different size than its input. As such, it needs to provide an implementation for GenerateOutputInformation() in order to inform the pipeline execution model. The original documentation of this method is below.
Reimplemented from itk::ProcessObject.
|
virtual |
Get the pixel value when a transformed pixel is outside of the image
|
virtual |
|
virtual |
Get a pointer to the interpolator function.
|
virtual |
Method Compute the Modified Time based on changed to the components.
Reimplemented from itk::Object.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set the output direciton cosine matrix.
|
virtual |
Get the output image origin.
|
virtual |
Get the output image spacing.
|
virtual |
Get the start index of the output largest possible region.
|
virtual |
Get the size of the output image.
|
static |
Method for creation through the object factory.
|
private |
|
protectedvirtual |
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 >.
|
virtual |
Set the pixel value when a transformed pixel is outside of the image. The default default pixel value is 0.
|
virtual |
Set the interpolator function. The default is itk::VectorLinearInterpolateImageFunction<InputImageType, TInterpolatorPrecisionType>.
|
virtual |
Set the output direciton cosine matrix.
|
virtual |
Set the output image origin.
|
virtual |
Set the output image origin.
|
virtual |
Set the output image spacing.
|
virtual |
Set the output image spacing.
|
virtual |
Set the start index of the output largest possible region. The default is an index of all zeros.
|
virtual |
Set the size of the output image.
|
virtual |
Get/Set the coordinate transformation. Set the coordinate transform to use for resampling. Note that this must be in index coordinates and is the output-to-input transform, NOT the input-to-output transform that you might naively expect. The default is itk::AffineTransform<TInterpolatorPrecisionType, ImageDimension>.
|
protectedvirtual |
VectorResampleImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"
Reimplemented from itk::ImageSource< TOutputImage >.
itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::typedef | ( | Concept::HasNumericTraits< typename TInputImage::PixelType::ValueType > | ) |
This class requires InputHasNumericTraitsCheck in the form of ( Concept::HasNumericTraits< typename TInputImage::PixelType::ValueType > )
itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::typedef | ( | Concept::HasNumericTraits< PixelComponentType > | ) |
This class requires OutputHasNumericTraitsCheck in the form of ( Concept::HasNumericTraits< PixelComponentType > )
|
static |
Number of dimensions.
Definition at line 84 of file itkVectorResampleImageFilter.h.
|
private |
Definition at line 235 of file itkVectorResampleImageFilter.h.
|
private |
Definition at line 233 of file itkVectorResampleImageFilter.h.
|
private |
Definition at line 240 of file itkVectorResampleImageFilter.h.
|
private |
Definition at line 239 of file itkVectorResampleImageFilter.h.
|
private |
Definition at line 238 of file itkVectorResampleImageFilter.h.
|
private |
Definition at line 241 of file itkVectorResampleImageFilter.h.
|
private |
Definition at line 231 of file itkVectorResampleImageFilter.h.
|
private |
Definition at line 232 of file itkVectorResampleImageFilter.h.