ANIMA  4.0
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType > Class Template Reference

#include <animaResampleImageFilter.h>

+ Inheritance diagram for anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >:
+ Collaboration diagram for anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef TOutputImage::DirectionType DirectionType
 
typedef itk::ImageBase< itkGetStaticConstMacro(ImageDimension)> ImageBaseType
 
typedef TOutputImage::IndexType IndexType
 
typedef InputImageType::ConstPointer InputImageConstPointer
 
typedef InputImageType::Pointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef TInputImage InputImageType
 
typedef InputImageType::IndexType InputIndexType
 
typedef TInputImage::PixelType InputPixelType
 
typedef InterpolatorType::Pointer InterpolatorPointerType
 
typedef itk::InterpolateImageFunction< InputImageType, TInterpolatorPrecisionType > InterpolatorType
 
typedef itk::MatrixOffsetTransformBase< TInterpolatorPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension)> MatrixTransformType
 
typedef TOutputImage::PointType OriginPointType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef TOutputImage::RegionType OutputImageRegionType
 
typedef TOutputImage OutputImageType
 
typedef TOutputImage::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef InterpolatorType::PointType PointType
 
typedef ResampleImageFilter Self
 
typedef itk::Size< itkGetStaticConstMacro(ImageDimension)> SizeType
 
typedef TOutputImage::SpacingType SpacingType
 
typedef itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
 
typedef TransformType::ConstPointer TransformPointerType
 
typedef itk::Transform< TInterpolatorPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension)> TransformType
 

Public Member Functions

virtual void AfterThreadedGenerateData () ITK_OVERRIDE
 
virtual void BeforeThreadedGenerateData () ITK_OVERRIDE
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual void GenerateInputRequestedRegion () ITK_OVERRIDE
 
virtual void GenerateOutputInformation () ITK_OVERRIDE
 
virtual const PixelTypeGetDefaultPixelValue () const
 
virtual const InterpolatorTypeGetInterpolator () const
 
itk::ModifiedTimeType GetMTime () const ITK_OVERRIDE
 
virtual const char * GetNameOfClass () const
 
virtual const DirectionTypeGetOutputDirection () const
 
virtual const OriginPointTypeGetOutputOrigin () const
 
virtual const SpacingTypeGetOutputSpacing () const
 
virtual const IndexTypeGetOutputStartIndex () const
 
const TOutputImage * GetReferenceImage () const
 
virtual const SizeTypeGetSize () const
 
virtual const TransformTypeGetTransform () const
 
virtual bool GetUseReferenceImage () const
 
virtual void SetDefaultPixelValue (PixelType _arg)
 
virtual void SetInterpolator (InterpolatorType *_arg)
 
virtual void SetOutputDirection (DirectionType _arg)
 
virtual void SetOutputOrigin (OriginPointType _arg)
 
virtual void SetOutputOrigin (const double *values)
 
void SetOutputParametersFromImage (const ImageBaseType *image)
 
virtual void SetOutputSpacing (SpacingType _arg)
 
virtual void SetOutputSpacing (const double *values)
 
virtual void SetOutputStartIndex (IndexType _arg)
 
void SetReferenceImage (const TOutputImage *image)
 
void SetScaleIntensitiesWithJacobian (bool scale)
 
virtual void SetSize (SizeType _arg)
 
void SetTransform (TransformType *transform)
 
virtual void SetUseReferenceImage (bool _arg)
 
virtual void UseReferenceImageOff ()
 
virtual void UseReferenceImageOn ()
 

Static Public Member Functions

static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension = TOutputImage::ImageDimension
 
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 

Protected Member Functions

double ComputeLinearJacobianValue ()
 
double ComputeLocalJacobianValue (const InputIndexType &index)
 
void DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread) ITK_OVERRIDE
 
virtual itk::LightObject::Pointer InternalClone () const ITK_OVERRIDE
 
void PrintSelf (std::ostream &os, itk::Indent indent) const ITK_OVERRIDE
 
 ResampleImageFilter ()
 
virtual ~ResampleImageFilter ()
 

Detailed Description

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
class anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >

Definition at line 16 of file animaResampleImageFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef itk::SmartPointer<const Self> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ConstPointer

Definition at line 23 of file animaResampleImageFilter.h.

◆ DirectionType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef TOutputImage::DirectionType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::DirectionType

Definition at line 79 of file animaResampleImageFilter.h.

◆ ImageBaseType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef itk::ImageBase<itkGetStaticConstMacro(ImageDimension)> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ImageBaseType

base type for images of the current ImageDimension

Definition at line 82 of file animaResampleImageFilter.h.

◆ IndexType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef TOutputImage::IndexType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::IndexType

Image index typedef.

Definition at line 63 of file animaResampleImageFilter.h.

◆ InputImageConstPointer

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef InputImageType::ConstPointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageConstPointer

Definition at line 28 of file animaResampleImageFilter.h.

◆ InputImagePointer

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef InputImageType::Pointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImagePointer

Definition at line 27 of file animaResampleImageFilter.h.

◆ InputImageRegionType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef InputImageType::RegionType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageRegionType

Definition at line 30 of file animaResampleImageFilter.h.

◆ InputImageType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef TInputImage anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageType

Definition at line 25 of file animaResampleImageFilter.h.

◆ InputIndexType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef InputImageType::IndexType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputIndexType

Definition at line 31 of file animaResampleImageFilter.h.

◆ InputPixelType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef TInputImage::PixelType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputPixelType

Definition at line 71 of file animaResampleImageFilter.h.

◆ InterpolatorPointerType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef InterpolatorType::Pointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InterpolatorPointerType

Definition at line 57 of file animaResampleImageFilter.h.

◆ InterpolatorType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef itk::InterpolateImageFunction<InputImageType, TInterpolatorPrecisionType> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InterpolatorType

Interpolator typedef.

Definition at line 56 of file animaResampleImageFilter.h.

◆ MatrixTransformType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef itk::MatrixOffsetTransformBase<TInterpolatorPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension)> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::MatrixTransformType

Definition at line 53 of file animaResampleImageFilter.h.

◆ OriginPointType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef TOutputImage::PointType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OriginPointType

Definition at line 78 of file animaResampleImageFilter.h.

◆ OutputImagePointer

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef OutputImageType::Pointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImagePointer

Definition at line 29 of file animaResampleImageFilter.h.

◆ OutputImageRegionType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef TOutputImage::RegionType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageRegionType

Typedef to describe the output image region type.

Definition at line 74 of file animaResampleImageFilter.h.

◆ OutputImageType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef TOutputImage anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageType

Definition at line 26 of file animaResampleImageFilter.h.

◆ PixelType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef TOutputImage::PixelType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PixelType

Image pixel value typedef.

Definition at line 70 of file animaResampleImageFilter.h.

◆ Pointer

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef itk::SmartPointer<Self> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Pointer

Definition at line 22 of file animaResampleImageFilter.h.

◆ PointType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef InterpolatorType::PointType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PointType

Image point typedef.

Definition at line 66 of file animaResampleImageFilter.h.

◆ Self

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef ResampleImageFilter anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Self

Standard class typedefs.

Definition at line 20 of file animaResampleImageFilter.h.

◆ SizeType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef itk::Size<itkGetStaticConstMacro(ImageDimension)> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SizeType

Image size typedef.

Definition at line 60 of file animaResampleImageFilter.h.

◆ SpacingType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef TOutputImage::SpacingType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SpacingType

Image spacing,origin and direction typedef

Definition at line 77 of file animaResampleImageFilter.h.

◆ Superclass

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef itk::ImageToImageFilter<TInputImage,TOutputImage> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Superclass

Definition at line 21 of file animaResampleImageFilter.h.

◆ TransformPointerType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef TransformType::ConstPointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::TransformPointerType

Definition at line 49 of file animaResampleImageFilter.h.

◆ TransformType

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
typedef itk::Transform<TInterpolatorPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension)> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::TransformType

Transform typedef.

Definition at line 48 of file animaResampleImageFilter.h.

Constructor & Destructor Documentation

◆ ResampleImageFilter()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ResampleImageFilter ( )
protected

◆ ~ResampleImageFilter()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::~ResampleImageFilter ( )
inlineprotectedvirtual

Member Function Documentation

◆ AfterThreadedGenerateData()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::AfterThreadedGenerateData ( )
virtual

This method is used to set the state of the filter after multi-threading.

Set up state of filter after multi-threading.

Definition at line 153 of file animaResampleImageFilter.hxx.

References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::DynamicThreadedGenerateData().

Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::BeforeThreadedGenerateData().

◆ BeforeThreadedGenerateData()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::BeforeThreadedGenerateData ( )
virtual

This method is used to set the state of the filter before multi-threading.

Set up state of filter before multi-threading. InterpolatorType::SetInputImage is not thread-safe and hence has to be set up before ThreadedGenerateData

Definition at line 133 of file animaResampleImageFilter.hxx.

References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::AfterThreadedGenerateData().

Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetTransform().

◆ ComputeLinearJacobianValue()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
double anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ComputeLinearJacobianValue ( )
protected

◆ ComputeLocalJacobianValue()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
double anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ComputeLocalJacobianValue ( const InputIndexType index)
protected

◆ CreateAnother()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual::itk::LightObject::Pointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::CreateAnother ( void  ) const

◆ DynamicThreadedGenerateData()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::DynamicThreadedGenerateData ( const OutputImageRegionType outputRegionForThread)
protected

◆ GenerateInputRequestedRegion()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GenerateInputRequestedRegion ( )
virtual

ResampleImageFilter needs a different input requested region than the output requested region. As such, ResampleImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.

See also
ProcessObject::GenerateInputRequestedRegion()

Inform pipeline of necessary input image region

Determining the actual input region is non-trivial, especially when we cannot assume anything about the transform being used. So we do the easy thing and request the entire input image.

Definition at line 258 of file animaResampleImageFilter.hxx.

References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetReferenceImage().

Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::DynamicThreadedGenerateData().

◆ GenerateOutputInformation()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GenerateOutputInformation ( void  )
virtual

ResampleImageFilter 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.

See also
ProcessObject::GenerateOutputInformaton()

Inform pipeline of required output region

Definition at line 332 of file animaResampleImageFilter.hxx.

References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetMTime().

Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputParametersFromImage().

◆ GetDefaultPixelValue()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual const PixelType& anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetDefaultPixelValue ( ) const
virtual

Get the pixel value when a transformed pixel is outside of the image

◆ GetInterpolator()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual const InterpolatorType* anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetInterpolator ( ) const
virtual

Get a pointer to the interpolator function.

◆ GetMTime()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
itk::ModifiedTimeType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetMTime ( ) const

Method Compute the Modified Time based on changed to the components.

Verify if any of the components has been modified.

Definition at line 381 of file animaResampleImageFilter.hxx.

References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ComputeLinearJacobianValue().

Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GenerateOutputInformation().

◆ GetNameOfClass()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual const char* anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

◆ GetOutputDirection()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual const DirectionType& anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetOutputDirection ( ) const
virtual

◆ GetOutputOrigin()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual const OriginPointType& anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetOutputOrigin ( ) const
virtual

Get the output image origin.

◆ GetOutputSpacing()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual const SpacingType& anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetOutputSpacing ( ) const
virtual

Get the output image spacing.

◆ GetOutputStartIndex()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual const IndexType& anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetOutputStartIndex ( ) const
virtual

Get the start index of the output largest possible region.

◆ GetReferenceImage()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
const ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageType * anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetReferenceImage ( ) const

◆ GetSize()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual const SizeType& anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetSize ( ) const
virtual

Get the size of the output image.

◆ GetTransform()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual const TransformType* anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetTransform ( ) const
virtual

Get a pointer to the coordinate transform.

◆ GetUseReferenceImage()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual bool anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetUseReferenceImage ( ) const
virtual

◆ InternalClone()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
itk::LightObject::Pointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InternalClone ( ) const
protectedvirtual

◆ New()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
static Pointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
protected

◆ SetDefaultPixelValue()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetDefaultPixelValue ( PixelType  _arg)
virtual

Set the pixel value when a transformed pixel is outside of the image. The default default pixel value is 0.

◆ SetInterpolator()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetInterpolator ( InterpolatorType _arg)
virtual

Set the interpolator function. The default is itk::LinearInterpolateImageFunction<InputImageType, TInterpolatorPrecisionType>. Some other options are itk::NearestNeighborInterpolateImageFunction (useful for binary masks and other images with a small number of possible pixel values), and itk::BSplineInterpolateImageFunction (which provides a higher order of interpolation).

◆ SetOutputDirection()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputDirection ( DirectionType  _arg)
virtual

Set the output direciton cosine matrix.

◆ SetOutputOrigin() [1/2]

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputOrigin ( OriginPointType  _arg)
virtual

◆ SetOutputOrigin() [2/2]

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputOrigin ( const double *  origin)
virtual

◆ SetOutputParametersFromImage()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputParametersFromImage ( const ImageBaseType image)

◆ SetOutputSpacing() [1/2]

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputSpacing ( SpacingType  _arg)
virtual

◆ SetOutputSpacing() [2/2]

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputSpacing ( const double *  spacing)
virtual

◆ SetOutputStartIndex()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputStartIndex ( IndexType  _arg)
virtual

Set the start index of the output largest possible region. The default is an index of all zeros.

◆ SetReferenceImage()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetReferenceImage ( const TOutputImage *  image)

Copy the output information from another Image. By default, the information is specified with the SetOutputSpacing, Origin, and Direction methods. UseReferenceImage must be On and a Reference image must be present to override the defaul behavior. NOTE: This function seems redundant with the SetOutputParametersFromImage( image ) function

Set the smart pointer to the reference image that will provide the grid parameters for the output image.

Definition at line 303 of file animaResampleImageFilter.hxx.

References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputParametersFromImage().

Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetReferenceImage().

◆ SetScaleIntensitiesWithJacobian()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetScaleIntensitiesWithJacobian ( bool  scale)
inline

◆ SetSize()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetSize ( SizeType  _arg)
virtual

Set the size of the output image.

◆ SetTransform()

template<class TInputImage , class TOutputImage , class TInterpolatorPrecisionType >
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetTransform ( TransformType transform)

Set the coordinate transformation. Set the coordinate transform to use for resampling. Note that this must be in physical coordinates and it is the output-to-input transform, NOT the input-to-output transform that you might naively expect. By default the filter uses an Identity transform. You must provide a different transform here, before attempting to run the filter, if you do not want to use the default Identity transform.

Definition at line 112 of file animaResampleImageFilter.hxx.

References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::BeforeThreadedGenerateData().

Referenced by anima::PyramidImageFilter< TInputImage, TOutputImage >::CreateLevelImage(), anima::DistortionCorrectionBMRegistrationMethod< TInputImageType >::ResampleImages(), and anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputOrigin().

◆ SetUseReferenceImage()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetUseReferenceImage ( bool  _arg)
virtual

◆ UseReferenceImageOff()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::UseReferenceImageOff ( )
virtual

◆ UseReferenceImageOn()

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
virtual void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::UseReferenceImageOn ( )
virtual

Member Data Documentation

◆ ImageDimension

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
const unsigned int anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ImageDimension = TOutputImage::ImageDimension
static

Number of dimensions.

Definition at line 41 of file animaResampleImageFilter.h.

◆ InputImageDimension

template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
const unsigned int anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageDimension = TInputImage::ImageDimension
static

Definition at line 43 of file animaResampleImageFilter.h.


The documentation for this class was generated from the following files: