ITK
4.13.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 62 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 |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(OutputImageDimension), itkGetStaticConstMacro(InputImageDimension) > | InputToOutputRegionCopierType |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > | OutputToInputRegionCopierType |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
typedef SmartPointer< const Self > itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ConstPointer |
Definition at line 70 of file itkVectorResampleImageFilter.h.
typedef TOutputImage::DirectionType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::DirectionType |
Definition at line 123 of file itkVectorResampleImageFilter.h.
typedef TOutputImage::IndexType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::IndexType |
Image index typedef.
Definition at line 108 of file itkVectorResampleImageFilter.h.
typedef InputImageType::ConstPointer itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageConstPointer |
Definition at line 75 of file itkVectorResampleImageFilter.h.
typedef InputImageType::Pointer itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImagePointer |
Definition at line 74 of file itkVectorResampleImageFilter.h.
typedef InputImageType::RegionType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageRegionType |
Definition at line 77 of file itkVectorResampleImageFilter.h.
typedef TInputImage itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageType |
Definition at line 72 of file itkVectorResampleImageFilter.h.
typedef InterpolatorType::Pointer itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InterpolatorPointerType |
Definition at line 102 of file itkVectorResampleImageFilter.h.
typedef VectorInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType > itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InterpolatorType |
Interpolator typedef.
Definition at line 101 of file itkVectorResampleImageFilter.h.
typedef TOutputImage::PointType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OriginPointType |
Definition at line 122 of file itkVectorResampleImageFilter.h.
typedef OutputImageType::Pointer itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImagePointer |
Definition at line 76 of file itkVectorResampleImageFilter.h.
typedef TOutputImage::RegionType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageRegionType |
Typedef to describe the output image region type.
Definition at line 118 of file itkVectorResampleImageFilter.h.
typedef TOutputImage itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageType |
Definition at line 73 of file itkVectorResampleImageFilter.h.
typedef PixelType::ValueType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PixelComponentType |
Definition at line 115 of file itkVectorResampleImageFilter.h.
typedef TOutputImage::PixelType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PixelType |
Image pixel value typedef.
Definition at line 114 of file itkVectorResampleImageFilter.h.
typedef SmartPointer< Self > itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Pointer |
Definition at line 69 of file itkVectorResampleImageFilter.h.
typedef InterpolatorType::PointType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PointType |
Image point typedef.
Definition at line 111 of file itkVectorResampleImageFilter.h.
typedef VectorResampleImageFilter itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Self |
Standard class typedefs.
Definition at line 67 of file itkVectorResampleImageFilter.h.
typedef Size< itkGetStaticConstMacro(ImageDimension) > itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SizeType |
Image size typedef.
Definition at line 105 of file itkVectorResampleImageFilter.h.
typedef TOutputImage::SpacingType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SpacingType |
Image spacing, origin and direction typedefs.
Definition at line 121 of file itkVectorResampleImageFilter.h.
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Superclass |
Definition at line 68 of file itkVectorResampleImageFilter.h.
typedef TransformType::ConstPointer itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::TransformPointerType |
Transform typedef.
Definition at line 97 of file itkVectorResampleImageFilter.h.
typedef Transform< TInterpolatorPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension) > itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::TransformType |
Transform typedef.
Definition at line 95 of file itkVectorResampleImageFilter.h.
|
protected |
|
inlineoverrideprotected |
Definition at line 218 of file itkVectorResampleImageFilter.h.
|
overridevirtual |
Set the state of the filter after multi-threading.
Reimplemented from itk::ImageSource< TOutputImage >.
|
overridevirtual |
Set the state of the filter before multi-threading. Note that InterpolatorType::SetInputImage is not thread-safe and hence has to be set up before ThreadedGenerateData.
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.
|
overridevirtual |
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 >.
|
overridevirtual |
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.
|
overridevirtual |
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/Get the output direction 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.
|
virtual |
Set/Get 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>.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
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/Get the output direction 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 |
Set/Get 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>.
|
overrideprotectedvirtual |
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 >.
|
static |
Number of dimensions.
Definition at line 87 of file itkVectorResampleImageFilter.h.
|
private |
Definition at line 238 of file itkVectorResampleImageFilter.h.
|
private |
Definition at line 237 of file itkVectorResampleImageFilter.h.
|
private |
Definition at line 241 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 242 of file itkVectorResampleImageFilter.h.
|
private |
Definition at line 233 of file itkVectorResampleImageFilter.h.
|
private |
Definition at line 236 of file itkVectorResampleImageFilter.h.