ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkTransformToDeformationFieldSource.h>
Generate a deformation field from a coordinate transform.
This class was inspired on an the itkDeformationFieldImageFilter class.
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: https://hdl.handle.net/1926/1387
Definition at line 64 of file itkTransformToDeformationFieldSource.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef OutputImageType::DirectionType | DirectionType |
typedef ImageBase < itkGetStaticConstMacro(ImageDimension) > | ImageBaseType |
typedef OutputImageType::IndexType | IndexType |
typedef OutputImageType::PointType | OriginType |
typedef OutputImageType::ConstPointer | OutputImageConstPointer |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef OutputImageType::PixelType | PixelType |
typedef PixelType::ValueType | PixelValueType |
typedef SmartPointer< Self > | Pointer |
typedef OutputImageType::PointType | PointType |
typedef OutputImageType::RegionType | RegionType |
typedef TransformToDeformationFieldSource | Self |
typedef RegionType::SizeType | SizeType |
typedef OutputImageType::SpacingType | SpacingType |
typedef ImageSource< TOutputImage > | Superclass |
typedef Transform < TTransformPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension) > | TransformType |
typedef TransformType::ConstPointer | TransformPointerType |
Public Types inherited from itk::ImageSource< TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef Superclass::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef ImageSource | Self |
typedef ProcessObject | Superclass |
Public Types inherited from itk::ProcessObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef std::vector < DataObjectPointer > | DataObjectPointerArray |
typedef DataObjectPointerArray::size_type | DataObjectPointerArraySizeType |
typedef MultiThreader | MultiThreaderType |
typedef std::vector < DataObjectIdentifierType > | NameArray |
typedef SmartPointer< Self > | Pointer |
typedef ProcessObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
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 const unsigned int | PixelDimension = PixelType::Dimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Attributes | |
DirectionType | m_OutputDirection |
OriginType | m_OutputOrigin |
RegionType | m_OutputRegion |
SpacingType | m_OutputSpacing |
TransformPointerType | m_Transform |
Additional Inherited Members | |
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::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::ConstPointer |
Definition at line 72 of file itkTransformToDeformationFieldSource.h.
typedef OutputImageType::DirectionType itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::DirectionType |
Definition at line 105 of file itkTransformToDeformationFieldSource.h.
typedef ImageBase< itkGetStaticConstMacro(ImageDimension) > itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::ImageBaseType |
Typedefs for base image.
Definition at line 108 of file itkTransformToDeformationFieldSource.h.
typedef OutputImageType::IndexType itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::IndexType |
Definition at line 101 of file itkTransformToDeformationFieldSource.h.
typedef OutputImageType::PointType itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::OriginType |
Definition at line 104 of file itkTransformToDeformationFieldSource.h.
typedef OutputImageType::ConstPointer itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::OutputImageConstPointer |
Definition at line 76 of file itkTransformToDeformationFieldSource.h.
typedef OutputImageType::Pointer itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::OutputImagePointer |
Definition at line 75 of file itkTransformToDeformationFieldSource.h.
typedef OutputImageType::RegionType itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::OutputImageRegionType |
Definition at line 77 of file itkTransformToDeformationFieldSource.h.
typedef TOutputImage itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::OutputImageType |
Definition at line 74 of file itkTransformToDeformationFieldSource.h.
typedef OutputImageType::PixelType itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::PixelType |
Typedefs for output image.
Definition at line 97 of file itkTransformToDeformationFieldSource.h.
typedef PixelType::ValueType itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::PixelValueType |
Definition at line 98 of file itkTransformToDeformationFieldSource.h.
typedef SmartPointer< Self > itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::Pointer |
Definition at line 71 of file itkTransformToDeformationFieldSource.h.
typedef OutputImageType::PointType itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::PointType |
Definition at line 102 of file itkTransformToDeformationFieldSource.h.
typedef OutputImageType::RegionType itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::RegionType |
Definition at line 99 of file itkTransformToDeformationFieldSource.h.
typedef TransformToDeformationFieldSource itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::Self |
Standard class typedefs.
Definition at line 69 of file itkTransformToDeformationFieldSource.h.
typedef RegionType::SizeType itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::SizeType |
Definition at line 100 of file itkTransformToDeformationFieldSource.h.
typedef OutputImageType::SpacingType itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::SpacingType |
Definition at line 103 of file itkTransformToDeformationFieldSource.h.
typedef ImageSource< TOutputImage > itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::Superclass |
Definition at line 70 of file itkTransformToDeformationFieldSource.h.
typedef TransformType::ConstPointer itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::TransformPointerType |
Typedefs for transform.
Definition at line 93 of file itkTransformToDeformationFieldSource.h.
typedef Transform< TTransformPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension) > itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::TransformType |
Typedefs for transform.
Definition at line 92 of file itkTransformToDeformationFieldSource.h.
|
protected |
|
inlineprotected |
Definition at line 185 of file itkTransformToDeformationFieldSource.h.
|
overridevirtual |
Just checking if transform is set.
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 |
DeformationFieldImageFilter produces a vector image.
Reimplemented from itk::ProcessObject.
|
overridevirtual |
Compute the Modified Time based on changes to the components.
Reimplemented from itk::Object.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Set the output direction cosine matrix.
|
virtual |
Get the start index of the output largest possible region.
|
virtual |
Get the output image origin.
|
virtual |
Get the region of the output image.
|
virtual |
Get the size of the output image.
|
virtual |
Get the output image spacing.
|
virtual |
Get a pointer to the coordinate transform.
|
protected |
Faster implementation for resampling that works for with linear transformation types.
|
static |
Method for creation through the object factory.
|
protected |
Default implementation for resampling that works for any transformation type.
|
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::ProcessObject.
|
virtual |
Set the output direction cosine matrix.
|
virtual |
Set the start index of the output largest possible region. The default is an index of all zeros.
|
virtual |
Set the output image origin.
|
virtual |
Set the output image origin.
void itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::SetOutputParametersFromImage | ( | const ImageBaseType * | image | ) |
Helper method to set the output parameters based on this image
|
virtual |
Set the region of the output image.
|
virtual |
Set the size of the output image.
|
virtual |
Set the output image spacing.
|
virtual |
Set the output image spacing.
|
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.
|
overrideprotectedvirtual |
TransformToDeformationFieldSource can be implemented as a multithreaded filter.
Reimplemented from itk::ImageSource< TOutputImage >.
|
static |
Number of dimensions.
Definition at line 87 of file itkTransformToDeformationFieldSource.h.
|
private |
Definition at line 219 of file itkTransformToDeformationFieldSource.h.
|
private |
Definition at line 218 of file itkTransformToDeformationFieldSource.h.
|
private |
Member variables.
Definition at line 212 of file itkTransformToDeformationFieldSource.h.
|
private |
Definition at line 217 of file itkTransformToDeformationFieldSource.h.
|
private |
Definition at line 216 of file itkTransformToDeformationFieldSource.h.
|
static |
Definition at line 177 of file itkTransformToDeformationFieldSource.h.