ITK
4.1.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.
typedef SmartPointer< const Self > itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ConstPointer |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
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 |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 72 of file itkVectorResampleImageFilter.h.
typedef InputImageType::Pointer itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImagePointer |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 71 of file itkVectorResampleImageFilter.h.
typedef InputImageType::RegionType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageRegionType |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 74 of file itkVectorResampleImageFilter.h.
typedef TInputImage itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageType |
Some convenient typedefs.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
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 |
Reimplemented from itk::ImageSource< TOutputImage >.
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.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 115 of file itkVectorResampleImageFilter.h.
typedef TOutputImage itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageType |
Some convenient typedefs.
Reimplemented from itk::ImageSource< TOutputImage >.
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 |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
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.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
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 |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
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.
itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::VectorResampleImageFilter | ( | ) | [protected] |
End concept checking
itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::~VectorResampleImageFilter | ( | ) | [inline, protected] |
End concept checking
Definition at line 216 of file itkVectorResampleImageFilter.h.
itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::VectorResampleImageFilter | ( | const Self & | ) | [private] |
virtual void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::AfterThreadedGenerateData | ( | ) | [virtual] |
This method is used to set the state of the filter after multi-threading.
Reimplemented from itk::ImageSource< TOutputImage >.
virtual void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::BeforeThreadedGenerateData | ( | ) | [virtual] |
This method is used to set the state of the filter before multi-threading.
Reimplemented from itk::ImageSource< TOutputImage >.
virtual::itk::LightObject::Pointer itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::CreateAnother | ( | void | ) | const [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 void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GenerateInputRequestedRegion | ( | ) | [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 void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GenerateOutputInformation | ( | ) | [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 PixelType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetDefaultPixelValue | ( | ) | const [virtual] |
Get the pixel value when a transformed pixel is outside of the image
virtual const InterpolatorType* itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetInterpolator | ( | ) | [virtual] |
Get a pointer to the interpolator function.
unsigned long itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetMTime | ( | void | ) | const [virtual] |
Method Compute the Modified Time based on changed to the components.
Reimplemented from itk::Object.
virtual const char* itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
virtual const DirectionType& itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetOutputDirection | ( | ) | [virtual] |
Set the output direciton cosine matrix.
virtual const PointType& itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetOutputOrigin | ( | ) | [virtual] |
Get the output image origin.
virtual const SpacingType& itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetOutputSpacing | ( | ) | [virtual] |
Get the output image spacing.
virtual const IndexType& itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetOutputStartIndex | ( | ) | [virtual] |
Get the start index of the output largest possible region.
virtual const SizeType& itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetSize | ( | ) | [virtual] |
Get the size of the output image.
virtual const TransformType* itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetTransform | ( | ) | [virtual] |
Get a pointer to the coordinate transform.
static Pointer itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::operator= | ( | const Self & | ) | [private] |
PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
End concept checking
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
virtual void itk::VectorResampleImageFilter< 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.
virtual void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetInterpolator | ( | InterpolatorType * | _arg | ) | [virtual] |
Set the interpolator function. The default is itk::VectorLinearInterpolateImageFunction<InputImageType, TInterpolatorPrecisionType>.
virtual void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputDirection | ( | DirectionType | _arg | ) | [virtual] |
Set the output direciton cosine matrix.
virtual void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputOrigin | ( | PointType | _arg | ) | [virtual] |
Set the output image origin.
virtual void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputOrigin | ( | const double * | values | ) | [virtual] |
Set the output image origin.
virtual void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputSpacing | ( | SpacingType | _arg | ) | [virtual] |
Set the output image spacing.
virtual void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputSpacing | ( | const double * | values | ) | [virtual] |
Set the output image spacing.
virtual void itk::VectorResampleImageFilter< 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.
virtual void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetSize | ( | SizeType | _arg | ) | [virtual] |
Set the size of the output image.
virtual void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetTransform | ( | const TransformType * | _arg | ) | [virtual] |
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>.
void itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ThreadedGenerateData | ( | const OutputImageRegionType & | outputRegionForThread, |
ThreadIdType | threadId | ||
) | [protected, virtual] |
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 > | ) |
Begin concept checking 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 > )
const unsigned int itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ImageDimension = TOutputImage::ImageDimension [static] |
Number of dimensions.
Definition at line 84 of file itkVectorResampleImageFilter.h.
PixelType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::m_DefaultPixelValue [private] |
Definition at line 239 of file itkVectorResampleImageFilter.h.
InterpolatorPointerType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::m_Interpolator [private] |
Definition at line 237 of file itkVectorResampleImageFilter.h.
DirectionType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::m_OutputDirection [private] |
Definition at line 244 of file itkVectorResampleImageFilter.h.
PointType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::m_OutputOrigin [private] |
Definition at line 243 of file itkVectorResampleImageFilter.h.
SpacingType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::m_OutputSpacing [private] |
Definition at line 242 of file itkVectorResampleImageFilter.h.
IndexType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::m_OutputStartIndex [private] |
Definition at line 245 of file itkVectorResampleImageFilter.h.
SizeType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::m_Size [private] |
Definition at line 235 of file itkVectorResampleImageFilter.h.
TransformPointerType itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::m_Transform [private] |
Definition at line 236 of file itkVectorResampleImageFilter.h.