ITK  6.0.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate > Class Template Referenceabstract

#include <itkPointSetFunction.h>

Detailed Description

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
class itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >

Evaluates a function of an image at specified position.

FIXME: Documentation was copy-pasted from ImageFunction.

PointSetFunction 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 SetInputPointSet(). Methods Evaluate, EvaluateAtIndex and EvaluateAtContinuousIndex respectively evaluates the function at an geometric point, image index and continuous image index.

Warning
Image BufferedRegion information is cached during in SetInputPointSet( image ). If the image BufferedRegion has changed one must call SetInputPointSet( image ) again to update the cache to the current values.
See also
Point
Index
ContinuousIndex

Definition at line 56 of file itkPointSetFunction.h.

+ Inheritance diagram for itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >:
+ Collaboration diagram for itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >:

Public Types

using ConstPointer = SmartPointer< const Self >
 
using CoordinateType = TCoordinate
 
using InputPixelType = typename InputPointSetType::PixelType
 
using InputPointSetConstPointer = typename InputPointSetType::ConstPointer
 
using InputPointSetType = TInputPointSet
 
using InputPointType = typename InputPointSetType::PointType
 
using OutputType = TOutput
 
using Pointer = SmartPointer< Self >
 
using Self = PointSetFunction
 
using Superclass = FunctionBase< typename TInputPointSet::PointType, TOutput >
 
- Public Types inherited from itk::FunctionBase< TInputPointSet::PointType, TOutput >
using ConstPointer = SmartPointer< const Self >
 
using InputType = TInputPointSet::PointType
 
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

TOutput Evaluate (const InputPointType &point) const override=0
 
const InputPointSetTypeGetInputPointSet () const
 
const char * GetNameOfClass () const override
 
virtual void SetInputPointSet (const InputPointSetType *ptr)
 
- Public Member Functions inherited from itk::FunctionBase< TInputPointSet::PointType, TOutput >
virtual OutputType Evaluate (const InputType &input) const=0
 
const char * GetNameOfClass () const override
 
- Public Member Functions inherited from itk::Object
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
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () 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
 
- Public Member Functions inherited from itk::LightObject
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 Dimension = TInputPointSet::PointDimension
 

Protected Member Functions

 PointSetFunction ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~PointSetFunction () override=default
 
- Protected Member Functions inherited from itk::FunctionBase< TInputPointSet::PointType, 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 &timeStamp)
 
 ~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

InputPointSetConstPointer m_PointSet {}
 
- 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 val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Member Typedef Documentation

◆ ConstPointer

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
using itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::ConstPointer = SmartPointer<const Self>

Definition at line 68 of file itkPointSetFunction.h.

◆ CoordinateType

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
using itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::CoordinateType = TCoordinate

CoordinateType type alias support

Definition at line 87 of file itkPointSetFunction.h.

◆ InputPixelType

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
using itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::InputPixelType = typename InputPointSetType::PixelType

Definition at line 78 of file itkPointSetFunction.h.

◆ InputPointSetConstPointer

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
using itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::InputPointSetConstPointer = typename InputPointSetType::ConstPointer

InputPointSetPointer type alias support

Definition at line 81 of file itkPointSetFunction.h.

◆ InputPointSetType

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
using itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::InputPointSetType = TInputPointSet

InputPointSetType type alias support

Definition at line 74 of file itkPointSetFunction.h.

◆ InputPointType

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
using itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::InputPointType = typename InputPointSetType::PointType

InputPixel type alias support

Definition at line 77 of file itkPointSetFunction.h.

◆ OutputType

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
using itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::OutputType = TOutput

OutputType type alias support

Definition at line 84 of file itkPointSetFunction.h.

◆ Pointer

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
using itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::Pointer = SmartPointer<Self>

Definition at line 67 of file itkPointSetFunction.h.

◆ Self

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
using itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::Self = PointSetFunction

Standard class type aliases.

Definition at line 65 of file itkPointSetFunction.h.

◆ Superclass

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
using itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::Superclass = FunctionBase<typename TInputPointSet::PointType, TOutput>

Definition at line 66 of file itkPointSetFunction.h.

Constructor & Destructor Documentation

◆ PointSetFunction()

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::PointSetFunction ( )
protected

◆ ~PointSetFunction()

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::~PointSetFunction ( )
overrideprotecteddefault

Member Function Documentation

◆ Evaluate()

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
TOutput itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::Evaluate ( const InputPointType point) const
overridepure virtual

Evaluate the function at specified Point position. Subclasses must provide this method.

Implemented in itk::ManifoldParzenWindowsPointSetFunction< TPointSet, TOutput, TCoordinate >.

◆ GetInputPointSet()

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
const InputPointSetType* itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::GetInputPointSet ( ) const
inline

Get the input image.

Definition at line 102 of file itkPointSetFunction.h.

◆ GetNameOfClass()

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
const char* itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::GetNameOfClass ( ) const
overridevirtual
See also
LightObject::GetNameOfClass()

Reimplemented from itk::Object.

◆ PrintSelf()

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
void itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
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.

◆ SetInputPointSet()

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
virtual void itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::SetInputPointSet ( const InputPointSetType ptr)
virtual

Set the input point set.

Warning
this method caches BufferedRegion information. If the BufferedRegion has changed, user must call SetInputPointSet again to update cached values.

Reimplemented in itk::ManifoldParzenWindowsPointSetFunction< TPointSet, TOutput, TCoordinate >.

Member Data Documentation

◆ Dimension

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
constexpr unsigned int itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::Dimension = TInputPointSet::PointDimension
staticconstexpr

Dimension underlying input point set.

Definition at line 62 of file itkPointSetFunction.h.

◆ m_PointSet

template<typename TInputPointSet, typename TOutput, typename TCoordinate = float>
InputPointSetConstPointer itk::PointSetFunction< TInputPointSet, TOutput, TCoordinate >::m_PointSet {}
protected

Const pointer to the input image.

Definition at line 119 of file itkPointSetFunction.h.


The documentation for this class was generated from the following file: