ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkGridForwardWarpImageFilter.h>
Warps a grid using an input deformation field.
GridForwardWarpImageFilter warps a grid with respect to a given deformation field.
A displacement field is represented as a image whose pixel type is some vector type with at least N elements, where N is the dimension of the input image. The vector type must support element access via operator [].
The output image is produced by forward mapping.
Each vector in the displacement field represent the distance between a geometric point in the input space and a point in the output space such that:
Typically the mapped position does not correspond to an integer pixel position in the output image. We round it.
Warning: the functionality provided by this class is currently implemented with more options and multi-threaded in itk::GridImageSource by setting up an appropriate itk::ResampleImageFilter instance to such an object.
This implementation was taken from the Insight Journal paper: https://hdl.handle.net/1926/510
Definition at line 62 of file itkGridForwardWarpImageFilter.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | DisplacementFieldConstPointer = typename DisplacementFieldType::ConstPointer |
using | DisplacementFieldType = TDisplacementField |
using | DisplacementType = typename DisplacementFieldType::PixelType |
using | IndexType = typename OutputImageType::IndexType |
using | OutputImagePointer = typename Superclass::OutputImagePointer |
using | OutputImageRegionType = typename TOutputImage::RegionType |
using | OutputImageType = typename Superclass::OutputImageType |
using | PixelType = typename OutputImageType::PixelType |
using | Pointer = SmartPointer< Self > |
using | Self = GridForwardWarpImageFilter |
using | SizeType = typename OutputImageType::SizeType |
using | SpacingType = typename OutputImageType::SpacingType |
using | Superclass = ImageToImageFilter< TDisplacementField, TOutputImage > |
Public Types inherited from itk::ImageToImageFilter< TDisplacementField, TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TDisplacementField |
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
using | Pointer = SmartPointer< Self > |
using | Self = ImageToImageFilter |
using | Superclass = ImageSource< TOutputImage > |
Public Types inherited from itk::ImageSource< TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = Superclass::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArraySizeType = Superclass::DataObjectPointerArraySizeType |
using | OutputImagePixelType = typename OutputImageType::PixelType |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename OutputImageType::RegionType |
using | OutputImageType = TOutputImage |
using | Pointer = SmartPointer< Self > |
using | Self = ImageSource |
using | Superclass = ProcessObject |
Public Types inherited from itk::ProcessObject | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = DataObject::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArray = std::vector< DataObjectPointer > |
using | DataObjectPointerArraySizeType = DataObjectPointerArray::size_type |
using | MultiThreaderType = MultiThreaderBase |
using | NameArray = std::vector< DataObjectIdentifierType > |
using | Pointer = SmartPointer< Self > |
using | Self = ProcessObject |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
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 constexpr unsigned int | DisplacementFieldDimension = TDisplacementField::ImageDimension |
static constexpr unsigned int | ImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TDisplacementField, TOutputImage > | |
static constexpr unsigned int | InputImageDimension |
static constexpr unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Attributes | |
PixelType | m_BackgroundValue |
PixelType | m_ForegroundValue |
unsigned int | m_GridPixSpacing |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TDisplacementField, TOutputImage > | |
using | InputToOutputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::OutputImageDimension, Self::InputImageDimension > |
using | OutputToInputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::InputImageDimension, Self::OutputImageDimension > |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Protected Attributes inherited from itk::ImageSource< TOutputImage > | |
bool | m_DynamicMultiThreading |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::ConstPointer = SmartPointer< const Self > |
Definition at line 72 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::DisplacementFieldConstPointer = typename DisplacementFieldType::ConstPointer |
Definition at line 97 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::DisplacementFieldType = TDisplacementField |
Deformation field type alias support
Definition at line 96 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::DisplacementType = typename DisplacementFieldType::PixelType |
Definition at line 98 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::IndexType = typename OutputImageType::IndexType |
Definition at line 86 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::OutputImagePointer = typename Superclass::OutputImagePointer |
Definition at line 85 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::OutputImageRegionType = typename TOutputImage::RegionType |
Typedef to describe the output image region type.
Definition at line 81 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::OutputImageType = typename Superclass::OutputImageType |
Inherit some types from the superclass.
Definition at line 84 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::PixelType = typename OutputImageType::PixelType |
Definition at line 88 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::Pointer = SmartPointer< Self > |
Definition at line 71 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::Self = GridForwardWarpImageFilter |
Standard class type aliases.
Definition at line 69 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::SizeType = typename OutputImageType::SizeType |
Definition at line 87 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::SpacingType = typename OutputImageType::SpacingType |
Definition at line 89 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::Superclass = ImageToImageFilter< TDisplacementField, TOutputImage > |
Definition at line 70 of file itkGridForwardWarpImageFilter.h.
|
protected |
|
inlineoverrideprotected |
Definition at line 123 of file itkGridForwardWarpImageFilter.h.
|
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.
|
overrideprotectedvirtual |
A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling DynamicThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter can be threaded, it should NOT provide a GenerateData() method but should provide a DynamicThreadedGenerateData() instead.
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Get the background value
|
virtual |
Get the foreground value
|
virtual |
Run-time type information (and related methods)
Reimplemented from itk::ImageToImageFilter< TDisplacementField, TOutputImage >.
|
static |
Method for creation through the object factory.
|
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::ImageSource< TOutputImage >.
|
virtual |
Set the background value
|
virtual |
Set the foreground value
|
static |
Definition at line 93 of file itkGridForwardWarpImageFilter.h.
|
static |
Determine the image dimension.
Definition at line 92 of file itkGridForwardWarpImageFilter.h.
|
private |
Definition at line 130 of file itkGridForwardWarpImageFilter.h.
|
private |
Definition at line 131 of file itkGridForwardWarpImageFilter.h.
|
private |
Definition at line 132 of file itkGridForwardWarpImageFilter.h.