ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkImageFunction.h>
Evaluates a function of an image at specified position.
ImageFunction is a baseclass for all objects that evaluates a function of an image at index, continuous index or point. This class is templated over the input image type, the type of the function output and the coordinate representation type (e.g. float or double).
The input image is set via method SetInputImage(). Methods Evaluate, EvaluateAtIndex and EvaluateAtContinuousIndex respectively evaluates the function at an geometric point, image index and continuous image index.
Definition at line 58 of file itkImageFunction.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | ContinuousIndexType = ContinuousIndex< TCoordRep, Self::ImageDimension > |
using | CoordRepType = TCoordRep |
using | IndexType = typename InputImageType::IndexType |
using | IndexValueType = typename InputImageType::IndexValueType |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImageType = TInputImage |
using | InputPixelType = typename InputImageType::PixelType |
using | OutputType = TOutput |
using | Pointer = SmartPointer< Self > |
using | PointType = Point< TCoordRep, Self::ImageDimension > |
using | Self = ImageFunction |
using | Superclass = FunctionBase< Point< TCoordRep, Self::ImageDimension >, TOutput > |
Public Types inherited from itk::FunctionBase< Point< TCoordRep, TInputImage::ImageDimension >, TOutput > | |
using | ConstPointer = SmartPointer< const Self > |
using | InputType = Point< TCoordRep, TInputImage::ImageDimension > |
using | OutputType = TOutput |
using | Pointer = SmartPointer< Self > |
using | Self = FunctionBase |
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 |
Public Member Functions | |
void | ConvertContinuousIndexToNearestIndex (const ContinuousIndexType &cindex, IndexType &index) const |
void | ConvertPointToContinuousIndex (const PointType &point, ContinuousIndexType &cindex) const |
void | ConvertPointToNearestIndex (const PointType &point, IndexType &index) const |
TOutput | Evaluate (const PointType &point) const override=0 |
virtual TOutput | EvaluateAtContinuousIndex (const ContinuousIndexType &index) const =0 |
virtual TOutput | EvaluateAtIndex (const IndexType &index) const =0 |
virtual const ContinuousIndexType & | GetEndContinuousIndex () const |
virtual const IndexType & | GetEndIndex () const |
const InputImageType * | GetInputImage () const |
virtual const char * | GetNameOfClass () 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 |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) 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 |
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) |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexceptoverride |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = TInputImage::ImageDimension |
Protected Member Functions | |
ImageFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~ImageFunction () override=default | |
Protected Member Functions inherited from itk::FunctionBase< Point< TCoordRep, TInputImage::ImageDimension >, TOutput > | |
FunctionBase ()=default | |
~FunctionBase () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
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 () |
Protected Attributes | |
ContinuousIndexType | m_EndContinuousIndex |
IndexType | m_EndIndex |
InputImageConstPointer | m_Image |
ContinuousIndexType | m_StartContinuousIndex |
IndexType | m_StartIndex |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
Additional Inherited Members | |
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 () |
using itk::ImageFunction< TInputImage, TOutput, TCoordRep >::ConstPointer = SmartPointer< const Self > |
Definition at line 76 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordRep >::ContinuousIndexType = ContinuousIndex< TCoordRep, Self::ImageDimension > |
ContinuousIndex Type.
Definition at line 102 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordRep >::CoordRepType = TCoordRep |
CoordRepType type alias support
Definition at line 94 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordRep >::IndexType = typename InputImageType::IndexType |
Index Type.
Definition at line 97 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordRep >::IndexValueType = typename InputImageType::IndexValueType |
Definition at line 98 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordRep >::InputImageConstPointer = typename InputImageType::ConstPointer |
InputImagePointer type alias support
Definition at line 88 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordRep >::InputImageType = TInputImage |
InputImageType type alias support
Definition at line 82 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordRep >::InputPixelType = typename InputImageType::PixelType |
InputPixel type alias support
Definition at line 85 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordRep >::OutputType = TOutput |
OutputType type alias support
Definition at line 91 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordRep >::Pointer = SmartPointer< Self > |
Definition at line 75 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordRep >::PointType = Point< TCoordRep, Self::ImageDimension > |
Point Type.
Definition at line 105 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordRep >::Self = ImageFunction |
Standard class type aliases.
Definition at line 68 of file itkImageFunction.h.
using itk::ImageFunction< TInputImage, TOutput, TCoordRep >::Superclass = FunctionBase< Point< TCoordRep, Self::ImageDimension >, TOutput > |
Definition at line 73 of file itkImageFunction.h.
|
protected |
|
overrideprotecteddefault |
|
inline |
Convert continuous index to nearest index.
Definition at line 204 of file itkImageFunction.h.
|
inline |
Convert point to continuous index
Definition at line 197 of file itkImageFunction.h.
|
inline |
Convert point to nearest index.
Definition at line 187 of file itkImageFunction.h.
|
overridepure virtual |
Evaluate the function at specified Point position. Subclasses must provide this method.
Implements itk::FunctionBase< Point< TCoordRep, TInputImage::ImageDimension >, TOutput >.
Implemented in itk::InterpolateImageFunction< TImageType, TCoordRep >.
|
pure virtual |
Evaluate the function at specified ContinuousIndex position. Subclasses must provide this method.
Implemented in itk::InterpolateImageFunction< TImageType, TCoordRep >.
|
pure virtual |
Evaluate the function at specified Index position. Subclasses must provide this method.
Implemented in itk::BSplineControlPointImageFunction< TInputImage, TCoordRep >, itk::InterpolateImageFunction< TImageType, TCoordRep >, and itk::GaussianDerivativeImageFunction< TInputImage, TOutput >.
|
virtual |
|
virtual |
|
inline |
Get the input image.
Definition at line 114 of file itkImageFunction.h.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::FunctionBase< Point< TCoordRep, TInputImage::ImageDimension >, TOutput >.
Reimplemented in itk::WindowedSincInterpolateImageFunction< TInputImage, VRadius, TWindowFunction, TBoundaryCondition, TCoordRep >, itk::CentralDifferenceImageFunction< TInputImage, TCoordRep, TOutputType >, itk::BSplineInterpolateImageFunction< TImageType, TCoordRep, TCoefficientType >, itk::BSplineInterpolateImageFunction< TImageType, TCoordRep, TImageType::PixelType >, itk::SiddonJacobsRayCastInterpolateImageFunction< TInputImage, TCoordRep >, itk::LabelImageGaussianInterpolateImageFunction< TInputImage, TCoordRep, TPixelCompare >, itk::RayCastInterpolateImageFunction< TInputImage, TCoordRep >, itk::VectorCentralDifferenceImageFunction< TInputImage, TCoordRep >, itk::BSplineControlPointImageFunction< TInputImage, TCoordRep >, itk::BSplineResampleImageFunction< TImageType, TCoordRep >, itk::VectorInterpolateImageFunction< TInputImage, TCoordRep >, itk::GaussianDerivativeImageFunction< TInputImage, TOutput >, itk::VectorLinearInterpolateNearestNeighborExtrapolateImageFunction< TInputImage, TCoordRep >, itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >, itk::GaussianInterpolateImageFunction< TInputImage, TCoordRep >, itk::NeighborhoodOperatorImageFunction< TInputImage, TOutput >, itk::DiscreteGaussianDerivativeImageFunction< TInputImage, TOutput >, itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >, itk::CovarianceImageFunction< TInputImage, TCoordRep >, itk::ScatterMatrixImageFunction< TInputImage, TCoordRep >, itk::PhysicalCentralDifferenceImageFunction< TInputImage, TCoordRep >, itk::GaussianBlurImageFunction< TInputImage, TOutput >, itk::MeanImageFunction< TInputImage, TCoordRep >, itk::MedianImageFunction< TInputImage, TCoordRep >, itk::VectorMeanImageFunction< TInputImage, TCoordRep >, itk::ComplexBSplineInterpolateImageFunction< TImageType, TCoordRep, TCoefficientType >, itk::LinearInterpolateImageFunction< TInputImage, TCoordRep >, itk::MahalanobisDistanceThresholdImageFunction< TInputImage, TCoordRep >, itk::InterpolateImageFunction< TInputImage, TCoordRep >, itk::InterpolateImageFunction< TImageType, TCoordRep >, itk::SumOfSquaresImageFunction< TInputImage, TCoordRep >, itk::VectorLinearInterpolateImageFunction< TInputImage, TCoordRep >, itk::VectorNearestNeighborInterpolateImageFunction< TInputImage, TCoordRep >, itk::ExtrapolateImageFunction< TInputImage, TCoordRep >, itk::VarianceImageFunction< TInputImage, TCoordRep >, itk::BinaryThresholdImageFunction< TInputImage, TCoordRep >, itk::NeighborhoodBinaryThresholdImageFunction< TInputImage, TCoordRep >, itk::LabelImageGenericInterpolateImageFunction< TInputImage, TInterpolator, TCoordRep >, itk::NearestNeighborExtrapolateImageFunction< TInputImage, TCoordRep >, and itk::NearestNeighborInterpolateImageFunction< TInputImage, TCoordRep >.
|
virtual |
|
virtual |
|
inlinevirtual |
Check if an index is inside the image buffer. We take into account the fact that each voxel has its center at the integer coordinate and extends half way to the next integer coordinate.
Definition at line 136 of file itkImageFunction.h.
|
inlinevirtual |
Check if a continuous index is inside the image buffer.
Definition at line 156 of file itkImageFunction.h.
|
inlinevirtual |
Check if a point is inside the image buffer.
Definition at line 174 of file itkImageFunction.h.
|
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::Object.
Reimplemented in itk::InterpolateImageFunction< TImageType, TCoordRep >.
Referenced by itk::ExtrapolateImageFunction< TInputImage, TCoordRep >::PrintSelf().
|
virtual |
Set the input image.
Reimplemented in itk::WindowedSincInterpolateImageFunction< TInputImage, VRadius, TWindowFunction, TBoundaryCondition, TCoordRep >, itk::BSplineInterpolateImageFunction< TImageType, TCoordRep, TCoefficientType >, itk::BSplineInterpolateImageFunction< TImageType, TCoordRep, TImageType::PixelType >, itk::GaussianDerivativeImageFunction< TInputImage, TOutput >, itk::CentralDifferenceImageFunction< TInputImage, TCoordRep, TOutputType >, itk::GaussianBlurImageFunction< TInputImage, TOutput >, itk::ComplexBSplineInterpolateImageFunction< TImageType, TCoordRep, TCoefficientType >, itk::BSplineControlPointImageFunction< TInputImage, TCoordRep >, itk::GaussianInterpolateImageFunction< TInputImage, TCoordRep >, itk::LabelImageGenericInterpolateImageFunction< TInputImage, TInterpolator, TCoordRep >, itk::PhysicalCentralDifferenceImageFunction< TInputImage, TCoordRep >, and itk::BSplineResampleImageFunction< TImageType, TCoordRep >.
|
static |
Dimension underlying input image.
Definition at line 65 of file itkImageFunction.h.
|
protected |
Definition at line 230 of file itkImageFunction.h.
|
protected |
Definition at line 227 of file itkImageFunction.h.
|
protected |
Const pointer to the input image.
Definition at line 223 of file itkImageFunction.h.
|
protected |
Definition at line 229 of file itkImageFunction.h.
|
protected |
Cache some values for testing if indices are inside buffered region.
Definition at line 226 of file itkImageFunction.h.