ITK
5.0.0
Insight Segmentation and Registration 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 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.
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 | 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 |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, 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::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::ConstPointer = SmartPointer< const Self > |
Definition at line 90 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::ContinuousIndexType = typename InterpolatorType::ContinuousIndexType |
Definition at line 116 of file itkInterpolateImagePointsFilter.h.
|
private |
Definition at line 181 of file itkInterpolateImagePointsFilter.h.
|
private |
Definition at line 182 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 119 of file itkInterpolateImagePointsFilter.h.
|
private |
Typedefs to describe and access coordinate images
Definition at line 180 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::InputImagePointer = typename Superclass::InputImagePointer |
Definition at line 104 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::InputImageType = typename Superclass::InputImageType |
Typedefs from the Superclass
Definition at line 102 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::InterpolatorPointer = typename InterpolatorType::Pointer |
Typedefs to describe and access Interpolator
Definition at line 115 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::OutputImageIterator = ImageRegionIterator< InputImageType > |
Definition at line 108 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 107 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::OutputImageRegionType = typename OutputImageType::RegionType |
Definition at line 109 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::OutputImageType = typename Superclass::OutputImageType |
Definition at line 103 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::PixelType = typename TOutputImage::PixelType |
Image pixel value type alias.
Definition at line 112 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::Pointer = SmartPointer< Self > |
Definition at line 89 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 123 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::Self = InterpolateImagePointsFilter |
Standard class type aliases.
Definition at line 87 of file itkInterpolateImagePointsFilter.h.
using itk::InterpolateImagePointsFilter< TInputImage, TOutputImage, TCoordType, InterpolatorType >::Superclass = ImageToImageFilter< TInputImage, TOutputImage > |
Definition at line 88 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 142 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 |
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, 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 VeriyInputInformation() since this filter's inputs do not need to occoupy the same physical space.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 175 of file itkInterpolateImagePointsFilter.h.
|
static |
ImageDimension enumeration.
Definition at line 99 of file itkInterpolateImagePointsFilter.h.
|
private |
Definition at line 185 of file itkInterpolateImagePointsFilter.h.
|
private |
Definition at line 184 of file itkInterpolateImagePointsFilter.h.