ITK
6.0.0
Insight Toolkit
|
#include <itkInterpolateImagePointsFilter.h>
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 TCoordinate 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.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static double | GetGlobalDefaultCoordinateTolerance () |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static void | SetGlobalDefaultDirectionTolerance (double) |
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 {} |
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordinate, InterpolatorType >::ConstPointer = SmartPointer<const Self> |
Definition at line 89 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordinate, 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, TCoordinate, InterpolatorType >::CoordImageType = Image<TCoordinate, 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, TCoordinate, InterpolatorType >::InterpolatorPointer = typename InterpolatorType::Pointer |
Typedefs to describe and access Interpolator
Definition at line 114 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordinate, InterpolatorType >::OutputImageIterator = ImageRegionIterator<InputImageType> |
Definition at line 107 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordinate, 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, TCoordinate, InterpolatorType >::OutputImageRegionType = typename OutputImageType::RegionType |
Definition at line 108 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordinate, InterpolatorType >::PixelType = typename TOutputImage::PixelType |
Image pixel value type alias.
Definition at line 111 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordinate, InterpolatorType >::Pointer = SmartPointer<Self> |
Definition at line 88 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordinate, 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, TCoordinate, InterpolatorType >::Self = InterpolateImagePointsFilter |
Standard class type aliases.
Definition at line 86 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordinate, InterpolatorType >::Superclass = ImageToImageFilter<TInputImage, TOutputImage> |
Definition at line 87 of file itkInterpolateImagePointsFilter.h.
|
protected |
|
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.
|
overridevirtual |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
static |
New macro for creation of through a Smart Pointer
|
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::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set the pixel value when a transformed pixel is outside of the image
void itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordinate, 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, TCoordinate, 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.