ITK
5.2.0
Insight Toolkit
|
#include <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::ImageToImageFilter< TDisplacementField, TOutputImage > | |
static void | SetGlobalDefaultDirectionTolerance (double) |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static double | GetGlobalDefaultCoordinateTolerance () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
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 { 5 } |
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 59 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 68 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::DisplacementFieldConstPointer = typename DisplacementFieldType::ConstPointer |
Definition at line 93 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::DisplacementFieldType = TDisplacementField |
Deformation field type alias support
Definition at line 92 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::DisplacementType = typename DisplacementFieldType::PixelType |
Definition at line 94 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::IndexType = typename OutputImageType::IndexType |
Definition at line 82 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::OutputImagePointer = typename Superclass::OutputImagePointer |
Definition at line 81 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::OutputImageRegionType = typename TOutputImage::RegionType |
Typedef to describe the output image region type.
Definition at line 77 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::OutputImageType = typename Superclass::OutputImageType |
Inherit some types from the superclass.
Definition at line 80 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::PixelType = typename OutputImageType::PixelType |
Definition at line 84 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 67 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::Self = GridForwardWarpImageFilter |
Standard class type aliases.
Definition at line 65 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::SizeType = typename OutputImageType::SizeType |
Definition at line 83 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::SpacingType = typename OutputImageType::SpacingType |
Definition at line 85 of file itkGridForwardWarpImageFilter.h.
using itk::GridForwardWarpImageFilter< TDisplacementField, TOutputImage >::Superclass = ImageToImageFilter<TDisplacementField, TOutputImage> |
Definition at line 66 of file itkGridForwardWarpImageFilter.h.
|
protected |
|
overrideprotecteddefault |
|
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 |
Get the output data of this process object. The output of this function is not valid until an appropriate Update() method has been called, either explicitly or implicitly. Both the filter itself and the data object have Update() methods, and both methods update the data. Here are three ways to use GetOutput() and make sure the data is valid. In these examples, image is a pointer to some Image object, and the particular ProcessObjects involved are filters. The same examples apply to non-image (e.g. Mesh) data as well.
In this situation, someFilter and anotherFilter are said to constitute a pipeline.
(In the above example, the two lines of code can be in either order.)
Note that Update() is not called automatically except within a pipeline as in the first example. When streaming (using a StreamingImageFilter) is activated, it may be more efficient to use a pipeline than to call Update() once for each filter in turn.
For an image, the data generated is for the requested Region, which can be set using ImageBase::SetRequestedRegion(). By default, the largest possible region is requested.
For Filters which have multiple outputs of different types, the GetOutput() method assumes the output is of OutputImageType. For the GetOutput(unsigned int) method, a dynamic_cast is performed incase the filter has outputs of different types or image types. Derived classes should have names get methods for these outputs.
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Set the background value
|
virtual |
Set the foreground value
|
staticconstexpr |
Definition at line 89 of file itkGridForwardWarpImageFilter.h.
|
staticconstexpr |
Determine the image dimension.
Definition at line 88 of file itkGridForwardWarpImageFilter.h.
|
private |
Definition at line 127 of file itkGridForwardWarpImageFilter.h.
|
private |
Definition at line 128 of file itkGridForwardWarpImageFilter.h.
|
private |
Definition at line 129 of file itkGridForwardWarpImageFilter.h.