ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkTransformToDisplacementFieldSource.h>
Generate a displacement field from a coordinate transform.
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.
This class was taken from the Insight Journal paper: http://hdl.handle.net/1926/1387
Definition at line 56 of file itkTransformToDisplacementFieldSource.h.
typedef SmartPointer< const Self > itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::ConstPointer |
Reimplemented from itk::ImageSource< TOutputImage >.
Definition at line 64 of file itkTransformToDisplacementFieldSource.h.
typedef OutputImageType::DirectionType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::DirectionType |
Definition at line 97 of file itkTransformToDisplacementFieldSource.h.
typedef ImageBase< itkGetStaticConstMacro(ImageDimension) > itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::ImageBaseType |
Typedefs for base image.
Definition at line 100 of file itkTransformToDisplacementFieldSource.h.
typedef OutputImageType::IndexType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::IndexType |
Definition at line 93 of file itkTransformToDisplacementFieldSource.h.
typedef OutputImageType::PointType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::OriginType |
Definition at line 96 of file itkTransformToDisplacementFieldSource.h.
typedef OutputImageType::ConstPointer itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::OutputImageConstPointer |
Definition at line 68 of file itkTransformToDisplacementFieldSource.h.
typedef OutputImageType::Pointer itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::OutputImagePointer |
Reimplemented from itk::ImageSource< TOutputImage >.
Definition at line 67 of file itkTransformToDisplacementFieldSource.h.
typedef OutputImageType::RegionType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::OutputImageRegionType |
Reimplemented from itk::ImageSource< TOutputImage >.
Definition at line 69 of file itkTransformToDisplacementFieldSource.h.
typedef TOutputImage itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::OutputImageType |
Some convenient typedefs.
Reimplemented from itk::ImageSource< TOutputImage >.
Definition at line 66 of file itkTransformToDisplacementFieldSource.h.
typedef OutputImageType::PixelType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::PixelType |
Typedefs for output image.
Definition at line 89 of file itkTransformToDisplacementFieldSource.h.
typedef PixelType::ValueType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::PixelValueType |
Definition at line 90 of file itkTransformToDisplacementFieldSource.h.
typedef SmartPointer< Self > itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::Pointer |
Reimplemented from itk::ImageSource< TOutputImage >.
Definition at line 63 of file itkTransformToDisplacementFieldSource.h.
typedef OutputImageType::PointType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::PointType |
Definition at line 94 of file itkTransformToDisplacementFieldSource.h.
typedef OutputImageType::RegionType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::RegionType |
Definition at line 91 of file itkTransformToDisplacementFieldSource.h.
typedef TransformToDisplacementFieldSource itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::Self |
Standard class typedefs.
Reimplemented from itk::ImageSource< TOutputImage >.
Definition at line 61 of file itkTransformToDisplacementFieldSource.h.
typedef RegionType::SizeType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::SizeType |
Definition at line 92 of file itkTransformToDisplacementFieldSource.h.
typedef OutputImageType::SpacingType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::SpacingType |
Definition at line 95 of file itkTransformToDisplacementFieldSource.h.
typedef ImageSource< TOutputImage > itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::Superclass |
Reimplemented from itk::ImageSource< TOutputImage >.
Definition at line 62 of file itkTransformToDisplacementFieldSource.h.
typedef TransformType::ConstPointer itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::TransformPointerType |
Typedefs for transform.
Definition at line 85 of file itkTransformToDisplacementFieldSource.h.
typedef Transform< TTransformPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension) > itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::TransformType |
Typedefs for transform.
Definition at line 84 of file itkTransformToDisplacementFieldSource.h.
itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::TransformToDisplacementFieldSource | ( | void | ) | [protected] |
End concept checking
itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::~TransformToDisplacementFieldSource | ( | void | ) | [inline, protected] |
Definition at line 177 of file itkTransformToDisplacementFieldSource.h.
itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::TransformToDisplacementFieldSource | ( | const Self & | ) | [private] |
virtual void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::BeforeThreadedGenerateData | ( | void | ) | [virtual] |
Just checking if transform is set.
Reimplemented from itk::ImageSource< TOutputImage >.
virtual::itk::LightObject::Pointer itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::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::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::GenerateOutputInformation | ( | void | ) | [virtual] |
DisplacementFieldImageFilter produces a vector image.
Reimplemented from itk::ProcessObject.
unsigned long itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::GetMTime | ( | void | ) | const [virtual] |
Compute the Modified Time based on changes to the components.
Reimplemented from itk::Object.
virtual const char* itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ImageSource< TOutputImage >.
virtual const DirectionType& itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::GetOutputDirection | ( | ) | [virtual] |
Set the output direction cosine matrix.
virtual const IndexType& itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::GetOutputIndex | ( | ) | [virtual] |
Get the start index of the output largest possible region.
virtual const OriginType& itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::GetOutputOrigin | ( | ) | [virtual] |
Get the output image origin.
virtual const OutputImageRegionType& itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::GetOutputRegion | ( | ) | [virtual] |
Get the region of the output image.
virtual const SizeType& itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::GetOutputSize | ( | ) | [virtual] |
Get the size of the output image.
virtual const SpacingType& itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::GetOutputSpacing | ( | ) | [virtual] |
Get the output image spacing.
virtual const TransformType* itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::GetTransform | ( | ) | [virtual] |
Get a pointer to the coordinate transform.
void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::LinearThreadedGenerateData | ( | const OutputImageRegionType & | outputRegionForThread, |
ThreadIdType | threadId | ||
) | [protected] |
Faster implementation for resampling that works for with linear transformation types.
static Pointer itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::NonlinearThreadedGenerateData | ( | const OutputImageRegionType & | outputRegionForThread, |
ThreadIdType | threadId | ||
) | [protected] |
Default implementation for resampling that works for any transformation type.
void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::operator= | ( | const Self & | ) | [private] |
Reimplemented from itk::ImageSource< TOutputImage >.
void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
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::ProcessObject.
virtual void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::SetOutputDirection | ( | DirectionType | _arg | ) | [virtual] |
Set the output direction cosine matrix.
virtual void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::SetOutputIndex | ( | const IndexType & | index | ) | [virtual] |
Set the start index of the output largest possible region. The default is an index of all zeros.
virtual void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::SetOutputOrigin | ( | OriginType | _arg | ) | [virtual] |
Set the output image origin.
virtual void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::SetOutputOrigin | ( | const double * | values | ) | [virtual] |
Set the output image origin.
void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::SetOutputParametersFromImage | ( | const ImageBaseType * | image | ) |
Helper method to set the output parameters based on this image
virtual void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::SetOutputRegion | ( | OutputImageRegionType | _arg | ) | [virtual] |
Set the region of the output image.
virtual void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::SetOutputSize | ( | const SizeType & | size | ) | [virtual] |
Set the size of the output image.
virtual void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::SetOutputSpacing | ( | SpacingType | _arg | ) | [virtual] |
Set the output image spacing.
virtual void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::SetOutputSpacing | ( | const double * | values | ) | [virtual] |
Set the output image spacing.
virtual void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::SetTransform | ( | const TransformType * | _arg | ) | [virtual] |
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.
void itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::ThreadedGenerateData | ( | const OutputImageRegionType & | outputRegionForThread, |
ThreadIdType | threadId | ||
) | [protected, virtual] |
TransformToDisplacementFieldSource can be implemented as a multithreaded filter.
Reimplemented from itk::ImageSource< TOutputImage >.
itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::typedef | ( | Concept::SameDimension< ImageDimension, PixelDimension > | ) |
This class requires SameDimensionCheck in the form of ( Concept::SameDimension< ImageDimension, PixelDimension > )
const unsigned int itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::ImageDimension = TOutputImage::ImageDimension [static] |
Number of dimensions.
Definition at line 79 of file itkTransformToDisplacementFieldSource.h.
DirectionType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::m_OutputDirection [private] |
Definition at line 212 of file itkTransformToDisplacementFieldSource.h.
OriginType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::m_OutputOrigin [private] |
Definition at line 211 of file itkTransformToDisplacementFieldSource.h.
RegionType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::m_OutputRegion [private] |
Member variables.
Definition at line 208 of file itkTransformToDisplacementFieldSource.h.
SpacingType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::m_OutputSpacing [private] |
Definition at line 210 of file itkTransformToDisplacementFieldSource.h.
TransformPointerType itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::m_Transform [private] |
Definition at line 209 of file itkTransformToDisplacementFieldSource.h.
const unsigned int itk::TransformToDisplacementFieldSource< TOutputImage, TTransformPrecisionType >::PixelDimension = PixelType::Dimension [static] |
Begin concept checking
Definition at line 169 of file itkTransformToDisplacementFieldSource.h.