ITK
5.2.0
Insight Toolkit
|
#include <itkInterpolateImagePointsFilter.h>
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, 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 | ImageDimension = TInputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Types | |
using | CoordImageIterator = ImageRegionConstIterator< CoordImageType > |
using | CoordImageRegionType = typename CoordImageType::RegionType |
using | CoordImageTypePointer = typename CoordImageType::Pointer |
Private Attributes | |
PixelType | m_DefaultPixelValue |
InterpolatorPointer | m_Interpolator |
Resamples an image at the coordinates specified by the user.
This class may be templated over the Interpolate Function but defaults to the BSplineInterpolateImageFunction for cubic interpolation. The user must set the image using the SetInputImage function and they must set the coordinates (one coordinate "image" for each dimension) using SetInterpolationCoordinate(). The coordinates may be any number of points and can be randomly organized. The interpolated output will correspond to the ordering of the coordinate points. The coordinates must be of type ContinuousIndexType and not of PointType.
This function is different from the resampleImageFilter class in that the resampleImageFilter applies a transform to the original input image coordinates. This function takes an arbitrary set of point coordinates and applies the transform at these locations.
Limitations: The coordinates must be in an image of the same dimension as the input image. There is no reason why this should be the case and future revisions should look at eliminating this limitation. Currently TCoordType must be the same as the input pixel type (TInputImage). Again future revisions should look at eliminating this limitation. Though the output generation may be streamed the entire input image, must be supplied. The coordinates may be streamed in smaller blocks. The coordinates are specified as separate images for each dimension. The coordinates are treated as Continuous Indices. If coordinates are supplied as Points then they must be converted to an Index before passing to this class.
Definition at line 80 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::ConstPointer = SmartPointer<const Self> |
Definition at line 89 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::ContinuousIndexType = typename InterpolatorType::ContinuousIndexType |
Definition at line 115 of file itkInterpolateImagePointsFilter.h.
|
private |
Definition at line 188 of file itkInterpolateImagePointsFilter.h.
|
private |
Definition at line 189 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::CoordImageType = Image<TCoordType, Self::ImageDimension> |
Typedefs to describe and access coordinate images
Definition at line 118 of file itkInterpolateImagePointsFilter.h.
|
private |
Typedefs to describe and access coordinate images
Definition at line 187 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::InputImagePointer = typename Superclass::InputImagePointer |
Definition at line 103 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::InputImageType = typename Superclass::InputImageType |
Typedefs from the Superclass
Definition at line 101 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::InterpolatorPointer = typename InterpolatorType::Pointer |
Typedefs to describe and access Interpolator
Definition at line 114 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::OutputImageIterator = ImageRegionIterator<InputImageType> |
Definition at line 107 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::OutputImagePointer = typename TOutputImage::Pointer |
Typedefs to describe and access output image.
Definition at line 106 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::OutputImageRegionType = typename OutputImageType::RegionType |
Definition at line 108 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::OutputImageType = typename Superclass::OutputImageType |
Definition at line 102 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::PixelType = typename TOutputImage::PixelType |
Image pixel value type alias.
Definition at line 111 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::Pointer = SmartPointer<Self> |
Definition at line 88 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::RegionCopierType = ImageToImageFilterDetail::ImageRegionCopier<Self::ImageDimension, Self::ImageDimension> |
Typedef for region copier
Definition at line 121 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::Self = InterpolateImagePointsFilter |
Standard class type aliases.
Definition at line 86 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::Superclass = ImageToImageFilter<TInputImage, TOutputImage> |
Definition at line 87 of file itkInterpolateImagePointsFilter.h.
|
protected |
|
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 |
Main function for calculating interpolated values at each coordinate set. Access is through the Update() call.
Reimplemented from itk::ImageSource< TOutputImage >.
|
overridevirtual |
Overloaded to set the input image to the largest possible region
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
overridevirtual |
Overloaded to ensure that output is sized the same as the coordinate inputs and not the size of the input image.
Reimplemented from itk::ProcessObject.
|
virtual |
Get the pixel value when a transformed pixel is outside of the image
|
inline |
Returns a pointer to the interpolator.
Definition at line 143 of file itkInterpolateImagePointsFilter.h.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
static |
New macro for creation of through a Smart Pointer
|
overrideprotectedvirtual |
Typedef for the region copier function object that converts an input region to an output region.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set the pixel value when a transformed pixel is outside of the image
void itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::SetInputImage | ( | const TInputImage * | inputImage | ) |
SetInputImage is used to set the image to be interpolated. Note that this should be used instead of the direct setInput as multiple inputs are needed and this class keeps track of the ordering.
void itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::SetInterpolationCoordinate | ( | const CoordImageType * | coordinate, |
unsigned int | setDimension | ||
) |
SetInterpolationCoordinate must be called for each dimension. The variable setDimension is used to identify the dimension being set, i.e. 0,1,2...N
|
inlineoverrideprotectedvirtual |
Override VerifyInputInformation() since this filter's inputs do not need to occupy the same physical space.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 182 of file itkInterpolateImagePointsFilter.h.
|
staticconstexpr |
ImageDimension enumeration.
Definition at line 98 of file itkInterpolateImagePointsFilter.h.
|
private |
Definition at line 192 of file itkInterpolateImagePointsFilter.h.
|
private |
Definition at line 191 of file itkInterpolateImagePointsFilter.h.