#include <itkInterpolateImageFunction.h>
Base class for all image interpolators.
InterpolateImageFunction is the base for all ImageFunctions that interpolates image intensity at a non-integer pixel position. This class is templated over the input image type and the coordinate representation type (e.g. float or double ).
Definition at line 45 of file itkInterpolateImageFunction.h.
Public Member Functions | |
OutputType | EvaluateAtContinuousIndex (const ContinuousIndexType &index) const override=0 |
OutputType | EvaluateAtIndex (const IndexType &index) const override |
const char * | GetNameOfClass () const override |
virtual SizeType | GetRadius () const =0 |
OutputType | Evaluate (const PointType &point) const override |
![]() | |
void | ConvertContinuousIndexToNearestIndex (const ContinuousIndexType &cindex, IndexType &index) const |
void | ConvertPointToContinuousIndex (const PointType &point, ContinuousIndexType &cindex) const |
OutputType | Evaluate (const PointType &point) const override=0 |
virtual NumericTraits< TInputImage::PixelType >::RealType | EvaluateAtContinuousIndex (const ContinuousIndexType &index) const=0 |
virtual const ContinuousIndexType & | GetEndContinuousIndex () const |
virtual const IndexType & | GetEndIndex () const |
const InputImageType * | GetInputImage () const |
virtual const ContinuousIndexType & | GetStartContinuousIndex () const |
virtual const IndexType & | GetStartIndex () const |
virtual void | SetInputImage (const InputImageType *ptr) |
virtual bool | IsInsideBuffer (const IndexType &index) const |
virtual bool | IsInsideBuffer (const ContinuousIndexType &index) const |
virtual bool | IsInsideBuffer (const PointType &point) const |
void | ConvertPointToNearestIndex (const PointType &point, IndexType &index) const |
![]() | |
virtual OutputType | Evaluate (const InputType &input) const=0 |
![]() | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
const char * | GetNameOfClass () const override |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
![]() | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
![]() | |
static constexpr unsigned int | ImageDimension |
Protected Member Functions | |
InterpolateImageFunction ()=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~InterpolateImageFunction () override=default | |
![]() | |
ImageFunction () | |
~ImageFunction () override=default | |
![]() | |
FunctionBase ()=default | |
~FunctionBase () override=default | |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
![]() | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Additional Inherited Members | |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
![]() | |
ContinuousIndexType | m_EndContinuousIndex |
IndexType | m_EndIndex |
InputImageConstPointer | m_Image |
ContinuousIndexType | m_StartContinuousIndex |
IndexType | m_StartIndex |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using itk::InterpolateImageFunction< TInputImage, TCoordinate >::ConstPointer = SmartPointer<const Self> |
Definition at line 57 of file itkInterpolateImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordinate >::ContinuousIndexType |
ContinuousIndex Type.
Definition at line 98 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordinate >::IndexType |
Index Type.
Definition at line 94 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordinate >::IndexValueType |
Definition at line 95 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordinate >::InputImageType |
InputImageType type alias support
Definition at line 75 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordinate >::OutputType |
OutputType type alias support
Definition at line 84 of file itkImageFunction.h.
using itk::InterpolateImageFunction< TInputImage, TCoordinate >::Pointer = SmartPointer<Self> |
Definition at line 56 of file itkInterpolateImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordinate >::PointType |
Point Type.
Definition at line 101 of file itkImageFunction.h.
using itk::InterpolateImageFunction< TInputImage, TCoordinate >::RealType = typename NumericTraits<typename TInputImage::PixelType>::RealType |
RealType type alias support
Definition at line 85 of file itkInterpolateImageFunction.h.
using itk::InterpolateImageFunction< TInputImage, TCoordinate >::Self = InterpolateImageFunction |
Standard class type aliases.
Definition at line 52 of file itkInterpolateImageFunction.h.
using itk::InterpolateImageFunction< TInputImage, TCoordinate >::SizeType = typename InputImageType::SizeType |
Size type alias support
Definition at line 79 of file itkInterpolateImageFunction.h.
using itk::InterpolateImageFunction< TInputImage, TCoordinate >::Superclass |
Definition at line 53 of file itkInterpolateImageFunction.h.
|
protecteddefault |
|
overrideprotecteddefault |
|
inlineoverride |
Interpolate the image at a point position
Returns the interpolated image intensity at a specified point position. No bounds checking is done. The point is assume to lie within the image buffer. ImageFunction::IsInsideBuffer() can be used to check bounds before calling the method.
Definition at line 96 of file itkInterpolateImageFunction.h.
|
overridepure virtual |
Interpolate the image at a continuous index position
Returns the interpolated image intensity at a specified index position. No bounds checking is done. The point is assume to lie within the image buffer.
Subclasses must override this method.
ImageFunction::IsInsideBuffer() can be used to check bounds before calling the method.
Implemented in itk::BSplineInterpolateImageFunction< TImageType, TCoordinate, TCoefficientType >, itk::BSplineInterpolateImageFunction< InternalImageType, TCoordinate, TCoefficientType >, itk::BSplineInterpolateImageFunction< InternalImageType, TCoordinate, TCoefficientType >, itk::BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType >, itk::BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType >, itk::BSplineInterpolateImageFunction< TImageType, float, TImageType::PixelType >, itk::BSplineInterpolateImageFunction< TImageType, TCoordinate, typename TImageType::PixelType >, itk::BSplineInterpolateImageFunction< TImageType, TCoordinate, typename TImageType::PixelType >, itk::BSplineInterpolateImageFunction< TInputImage, typename TInputImage::PixelType >, itk::GaussianInterpolateImageFunction< TInputImage, TCoordinate >, itk::GaussianInterpolateImageFunction< TInputImage, double >, itk::GaussianInterpolateImageFunction< TInputImage, TCoordinate >, itk::GaussianInterpolateImageFunction< TInputImage, TCoordinate >, itk::LabelImageGaussianInterpolateImageFunction< TInputImage, TCoordinate, TPixelCompare >, itk::LinearInterpolateImageFunction< InputImageType, CoordinateType >, itk::LinearInterpolateImageFunction< InputImageType, CoordinateType >, itk::LinearInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType >, itk::LinearInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType >, itk::LinearInterpolateImageFunction< MovingImageType, CoordinateType >, and itk::LinearInterpolateImageFunction< MovingImageType, CoordinateType >.
|
inlineoverridevirtual |
Interpolate the image at an index position.
Simply returns the image value at the specified index position. No bounds checking is done. The point is assume to lie within the image buffer.
ImageFunction::IsInsideBuffer() can be used to check bounds before calling the method.
Implements itk::ImageFunction< TInputImage, NumericTraits< TInputImage::PixelType >::RealType, double >.
Definition at line 126 of file itkInterpolateImageFunction.h.
|
overridevirtual |
Reimplemented from itk::ImageFunction< TInputImage, NumericTraits< TInputImage::PixelType >::RealType, double >.
Reimplemented in itk::LabelImageGaussianInterpolateImageFunction< TInputImage, TCoordinate, TPixelCompare >, itk::LinearInterpolateImageFunction< TInputImage, TCoordinate >, itk::LinearInterpolateImageFunction< FixedImageGradientImageType, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< FixedImageGradientImageType, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< ImageType >, itk::LinearInterpolateImageFunction< ImageType >, itk::LinearInterpolateImageFunction< InputImageType, CoordinateType >, itk::LinearInterpolateImageFunction< InputImageType, CoordinateType >, itk::LinearInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType >, itk::LinearInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType >, itk::LinearInterpolateImageFunction< JointPDFType, double >, itk::LinearInterpolateImageFunction< JointPDFType, double >, itk::LinearInterpolateImageFunction< MarginalPDFType, double >, itk::LinearInterpolateImageFunction< MarginalPDFType, double >, itk::LinearInterpolateImageFunction< MovingImageGradientImageType, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< MovingImageGradientImageType, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< MovingImageType, CoordinateType >, itk::LinearInterpolateImageFunction< MovingImageType, CoordinateType >, itk::LinearInterpolateImageFunction< TFixedImage, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< TFixedImage, CoordinateRepresentationType >, itk::NearestNeighborInterpolateImageFunction< TInputImage, TCoordinate >, itk::NearestNeighborInterpolateImageFunction< ImageType >, itk::NearestNeighborInterpolateImageFunction< ImageType >, itk::RayCastInterpolateImageFunction< TInputImage, TCoordinate >, and itk::WindowedSincInterpolateImageFunction< TInputImage, VRadius, TWindowFunction, TBoundaryCondition, TCoordinate >.
|
pure virtual |
Get the radius required for interpolation.
This defines the number of surrounding pixels required to interpolate at a given point.
Implemented in itk::BSplineInterpolateImageFunction< TImageType, TCoordinate, TCoefficientType >, itk::BSplineInterpolateImageFunction< InternalImageType, TCoordinate, TCoefficientType >, itk::BSplineInterpolateImageFunction< InternalImageType, TCoordinate, TCoefficientType >, itk::BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType >, itk::BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType >, itk::BSplineInterpolateImageFunction< TImageType, float, TImageType::PixelType >, itk::BSplineInterpolateImageFunction< TImageType, TCoordinate, typename TImageType::PixelType >, itk::BSplineInterpolateImageFunction< TImageType, TCoordinate, typename TImageType::PixelType >, itk::BSplineInterpolateImageFunction< TInputImage, typename TInputImage::PixelType >, itk::ComplexBSplineInterpolateImageFunction< TImageType, TCoordinate, TCoefficientType >, itk::ComplexBSplineInterpolateImageFunction< FFTLineType, double, double >, itk::ComplexBSplineInterpolateImageFunction< FFTLineType, double, double >, itk::GaussianInterpolateImageFunction< TInputImage, TCoordinate >, itk::GaussianInterpolateImageFunction< TInputImage, double >, itk::GaussianInterpolateImageFunction< TInputImage, TCoordinate >, itk::GaussianInterpolateImageFunction< TInputImage, TCoordinate >, itk::LinearInterpolateImageFunction< TInputImage, TCoordinate >, itk::LinearInterpolateImageFunction< FixedImageGradientImageType, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< FixedImageGradientImageType, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< ImageType >, itk::LinearInterpolateImageFunction< ImageType >, itk::LinearInterpolateImageFunction< InputImageType, CoordinateType >, itk::LinearInterpolateImageFunction< InputImageType, CoordinateType >, itk::LinearInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType >, itk::LinearInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType >, itk::LinearInterpolateImageFunction< JointPDFType, double >, itk::LinearInterpolateImageFunction< JointPDFType, double >, itk::LinearInterpolateImageFunction< MarginalPDFType, double >, itk::LinearInterpolateImageFunction< MarginalPDFType, double >, itk::LinearInterpolateImageFunction< MovingImageGradientImageType, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< MovingImageGradientImageType, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< MovingImageType, CoordinateType >, itk::LinearInterpolateImageFunction< MovingImageType, CoordinateType >, itk::LinearInterpolateImageFunction< TFixedImage, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< TFixedImage, CoordinateRepresentationType >, itk::NearestNeighborInterpolateImageFunction< TInputImage, TCoordinate >, itk::NearestNeighborInterpolateImageFunction< ImageType >, itk::NearestNeighborInterpolateImageFunction< ImageType >, itk::RayCastInterpolateImageFunction< TInputImage, TCoordinate >, and itk::WindowedSincInterpolateImageFunction< TInputImage, VRadius, TWindowFunction, TBoundaryCondition, TCoordinate >.
|
inlineoverrideprotectedvirtual |
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::ImageFunction< TInputImage, NumericTraits< TInputImage::PixelType >::RealType, double >.
Reimplemented in itk::LinearInterpolateImageFunction< TInputImage, TCoordinate >, itk::LinearInterpolateImageFunction< FixedImageGradientImageType, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< FixedImageGradientImageType, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< ImageType >, itk::LinearInterpolateImageFunction< ImageType >, itk::LinearInterpolateImageFunction< InputImageType, CoordinateType >, itk::LinearInterpolateImageFunction< InputImageType, CoordinateType >, itk::LinearInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType >, itk::LinearInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType >, itk::LinearInterpolateImageFunction< JointPDFType, double >, itk::LinearInterpolateImageFunction< JointPDFType, double >, itk::LinearInterpolateImageFunction< MarginalPDFType, double >, itk::LinearInterpolateImageFunction< MarginalPDFType, double >, itk::LinearInterpolateImageFunction< MovingImageGradientImageType, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< MovingImageGradientImageType, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< MovingImageType, CoordinateType >, itk::LinearInterpolateImageFunction< MovingImageType, CoordinateType >, itk::LinearInterpolateImageFunction< TFixedImage, CoordinateRepresentationType >, itk::LinearInterpolateImageFunction< TFixedImage, CoordinateRepresentationType >, itk::NearestNeighborInterpolateImageFunction< TInputImage, TCoordinate >, itk::NearestNeighborInterpolateImageFunction< ImageType >, itk::NearestNeighborInterpolateImageFunction< ImageType >, itk::RayCastInterpolateImageFunction< TInputImage, TCoordinate >, and itk::WindowedSincInterpolateImageFunction< TInputImage, VRadius, TWindowFunction, TBoundaryCondition, TCoordinate >.
Definition at line 143 of file itkInterpolateImageFunction.h.
Referenced by itk::NearestNeighborInterpolateImageFunction< ImageType >::PrintSelf().
|
staticconstexpr |
Dimension underlying input image.
Definition at line 69 of file itkInterpolateImageFunction.h.