Main Page
Groups
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File
List
Namespace Members
Compound Members
File Members
Concepts
itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType > Class Template Reference
[Geometric Transformation Filters]
Resample an image via a coordinate transform.
More...
#include <itkResampleImageFilter.h>
Inheritance diagram for itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >:
[legend]Collaboration diagram for itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >:
[legend]List of all members.
Detailed Description
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double>
class itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >
Resample an image via a coordinate transform.
ResampleImageFilter 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::LinearInterpolateImageFunction<InputImageType, TInterpolatorPrecisionType>, which is reasonable for ordinary medical images. However, some synthetic images have pixels drawn from a finite prescribed set. An example would be a mask indicating the segmentation of a brain into a small number of tissue types. For such an image, one does not want to interpolate between different pixel values, and so itk::NearestNeighborInterpolateImageFunction< InputImageType, TCoordRep > would be a better choice.
Output information (spacing, size and direction) for the output image should be set. This information has the normal defaults of unit spacing, zero origin and identity direction. Optionally, the output information can be obtained from a reference image. If the reference image is provided and UseReferenceImage is On, then the spacing, origin and direction of the reference image will be used.
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 69 of file itkResampleImageFilter.h.
Member Typedef Documentation
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| typedef TInputImage::DirectionType itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::DirectionType |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| typedef TInputImage itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageType |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| typedef TOutputImage::PointType itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OriginPointType |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| typedef TOutputImage itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageType |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| typedef TOutputImage::PixelType itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PixelType |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| typedef Size<itkGetStaticConstMacro(ImageDimension)> itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SizeType |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| typedef TOutputImage::SpacingType itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SpacingType |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| typedef Transform<TInterpolatorPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension)> itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::TransformType |
|
Constructor & Destructor Documentation
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::~ResampleImageFilter |
( |
|
) |
[inline, protected] |
|
Member Function Documentation
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::AfterThreadedGenerateData |
( |
|
) |
[virtual] |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::BeforeThreadedGenerateData |
( |
|
) |
[virtual] |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GenerateInputRequestedRegion |
( |
|
) |
[virtual] |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GenerateOutputInformation |
( |
|
) |
[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()
Reimplemented from itk::ProcessObject. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual PixelType itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetDefaultPixelValue |
( |
|
) |
[virtual] |
|
|
|
Get the pixel value when a transformed pixel is outside of the image |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual const InterpolatorType* itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetInterpolator |
( |
|
) |
[virtual] |
|
|
|
Get a pointer to the interpolator function. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| unsigned long itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetMTime |
( |
void |
|
) |
const [virtual] |
|
|
|
Method Compute the Modified Time based on changed to the components.
Reimplemented from itk::Object. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual const char* itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetNameOfClass |
( |
|
) |
const [virtual] |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual const DirectionType& itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetOutputDirection |
( |
|
) |
[virtual] |
|
|
|
Set the output direciton cosine matrix. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual const PointType& itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetOutputOrigin |
( |
|
) |
[virtual] |
|
|
|
Get the output image origin. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual const SpacingType& itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetOutputSpacing |
( |
|
) |
[virtual] |
|
|
|
Get the output image spacing. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual const IndexType& itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetOutputStartIndex |
( |
|
) |
[virtual] |
|
|
|
Get the start index of the output largest possible region. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual TOutputImage* itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetReferenceImage |
( |
|
) |
[virtual] |
|
|
|
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. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual const SizeType& itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetSize |
( |
|
) |
[virtual] |
|
|
|
Get the size of the output image. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual const TransformType* itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetTransform |
( |
|
) |
[virtual] |
|
|
|
Get a pointer to the coordinate transform. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual bool itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetUseReferenceImage |
( |
|
) |
[virtual] |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::itkStaticConstMacro |
( |
ImageDimension |
, |
|
|
unsigned |
int, |
|
|
TOutputImage::ImageDimension |
|
|
) |
|
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| static Pointer itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::New |
( |
|
) |
[static] |
|
|
|
Method for creation through the object factory.
Reimplemented from itk::Object. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PrintSelf |
( |
std::ostream & |
os, |
|
|
Indent |
indent |
|
) |
const [protected, virtual] |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::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. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetInterpolator |
( |
InterpolatorType * |
_arg |
) |
[virtual] |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputDirection |
( |
DirectionType |
_arg |
) |
[virtual] |
|
|
|
Set the output direciton cosine matrix. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputOrigin |
( |
const double * |
values |
) |
[virtual] |
|
|
|
Set the output image origin. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputOrigin |
( |
PointType |
_arg |
) |
[virtual] |
|
|
|
Set the output image origin. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputParametersFromImage |
( |
typename OutputImageType::Pointer |
Image |
) |
[inline] |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputSpacing |
( |
const double * |
values |
) |
[virtual] |
|
|
|
Set the output image spacing. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputSpacing |
( |
SpacingType |
_arg |
) |
[virtual] |
|
|
|
Set the output image spacing. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::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. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetReferenceImage |
( |
TOutputImage * |
image |
) |
[inline] |
|
|
|
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.
Definition at line 201 of file itkResampleImageFilter.h. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetSize |
( |
SizeType |
_arg |
) |
[virtual] |
|
|
|
Set the size of the output image. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< 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>. |
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetUseReferenceImage |
( |
bool |
_arg |
) |
[virtual] |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ThreadedGenerateData |
( |
const OutputImageRegionType & |
outputRegionForThread, |
|
|
int |
threadId |
|
) |
[protected, virtual] |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::UseReferenceImageOff |
( |
|
) |
[virtual] |
|
|
template<class TInputImage, class TOutputImage, class TInterpolatorPrecisionType = double> |
| virtual void itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::UseReferenceImageOn |
( |
|
) |
[virtual] |
|
The documentation for this class was generated from the following file:
Generated at Tue Aug 30 16:57:27 2005 for ITK by
1.4.1 written by Dimitri van Heesch,
© 1997-2000