ITK  6.0.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Types | Private Attributes | List of all members
itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension > Class Template Reference

#include <itkSphereSignedDistanceFunction.h>

Detailed Description

template<typename TCoordinate, unsigned int VSpaceDimension>
class itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >

Compute the signed distance from a N-dimensional sphere.

A instance of sphere is defined by a set parameters. The first parameter is the radius and the next SpaceDimension parameters represent the center. The first parameter forms the set of ShapeParameters and the remaining parameters the set of PoseParameters.

This class is templated over the coordinate representation type (e.g. float or double) and the space dimension.

See also
ShapeSignedDistanceFunction

Definition at line 45 of file itkSphereSignedDistanceFunction.h.

+ Inheritance diagram for itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >:
+ Collaboration diagram for itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >:

Public Types

using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = SphereSignedDistanceFunction
 
using Superclass = ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >
 
- Public Types inherited from itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >
using ConstPointer = SmartPointer< const Self >
 
using CoordinateType = TCoordinate
 
using ParametersType = OptimizerParameters< double >
 
using Pointer = SmartPointer< Self >
 
using PointType = InputType
 
using Self = ShapeSignedDistanceFunction
 
using Superclass = SpatialFunction< double, VSpaceDimension, Point< TCoordinate, VSpaceDimension > >
 
- Public Types inherited from itk::SpatialFunction< double, VSpaceDimension, Point< TCoordinate, VSpaceDimension > >
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = SpatialFunction
 
using Superclass = FunctionBase< Point< TCoordinate, VSpaceDimension >, double >
 
- Public Types inherited from itk::FunctionBase< Point< TCoordinate, VSpaceDimension >, double >
using ConstPointer = SmartPointer< const Self >
 
using InputType = Point< TCoordinate, VSpaceDimension >
 
using OutputType = double
 
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

OutputType Evaluate (const PointType &point) const override
 
const char * GetNameOfClass () const override
 
unsigned int GetNumberOfPoseParameters () const override
 
unsigned int GetNumberOfShapeParameters () const override
 
void SetParameters (const ParametersType &) override
 
- Public Member Functions inherited from itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >
virtual unsigned int GetNumberOfParameters () const
 
virtual ParametersTypeGetParameters ()
 
virtual void Initialize ()
 
- Public Member Functions inherited from itk::SpatialFunction< double, VSpaceDimension, Point< TCoordinate, VSpaceDimension > >
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 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 val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Static Public Attributes

static constexpr unsigned int SpaceDimension = Superclass::SpaceDimension
 
- Static Public Attributes inherited from itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >
static constexpr unsigned int SpaceDimension = VSpaceDimension
 
- Static Public Attributes inherited from itk::SpatialFunction< double, VSpaceDimension, Point< TCoordinate, VSpaceDimension > >
static constexpr unsigned int ImageDimension
 

Protected Member Functions

void PrintSelf (std::ostream &os, Indent indent) const override
 
 SphereSignedDistanceFunction ()
 
 ~SphereSignedDistanceFunction () override=default
 
- Protected Member Functions inherited from itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >
 ShapeSignedDistanceFunction ()=default
 
 ~ShapeSignedDistanceFunction () override=default
 
- Protected Member Functions inherited from itk::SpatialFunction< double, VSpaceDimension, Point< TCoordinate, VSpaceDimension > >
void PrintSelf (std::ostream &os, Indent indent) const override
 
 SpatialFunction ()=default
 
 ~SpatialFunction () override=default
 
- Protected Member Functions inherited from itk::FunctionBase< Point< TCoordinate, VSpaceDimension >, double >
 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 ()
 

Private Types

using VectorType = Vector< CoordinateType, Self::SpaceDimension >
 

Private Attributes

double m_Radius {}
 
VectorType m_Translation {}
 

Additional Inherited Members

- Protected Attributes inherited from itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >
ParametersType m_Parameters {}
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ ConstPointer

template<typename TCoordinate , unsigned int VSpaceDimension>
using itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::ConstPointer = SmartPointer<const Self>

Definition at line 55 of file itkSphereSignedDistanceFunction.h.

◆ Pointer

template<typename TCoordinate , unsigned int VSpaceDimension>
using itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::Pointer = SmartPointer<Self>

Definition at line 54 of file itkSphereSignedDistanceFunction.h.

◆ Self

template<typename TCoordinate , unsigned int VSpaceDimension>
using itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::Self = SphereSignedDistanceFunction

Standard class type aliases.

Definition at line 52 of file itkSphereSignedDistanceFunction.h.

◆ Superclass

template<typename TCoordinate , unsigned int VSpaceDimension>
using itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::Superclass = ShapeSignedDistanceFunction<TCoordinate, VSpaceDimension>

Definition at line 53 of file itkSphereSignedDistanceFunction.h.

◆ VectorType

template<typename TCoordinate , unsigned int VSpaceDimension>
using itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::VectorType = Vector<CoordinateType, Self::SpaceDimension>
private

Definition at line 109 of file itkSphereSignedDistanceFunction.h.

Constructor & Destructor Documentation

◆ SphereSignedDistanceFunction()

template<typename TCoordinate , unsigned int VSpaceDimension>
itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::SphereSignedDistanceFunction ( )
protected

◆ ~SphereSignedDistanceFunction()

template<typename TCoordinate , unsigned int VSpaceDimension>
itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::~SphereSignedDistanceFunction ( )
overrideprotecteddefault

Member Function Documentation

◆ Evaluate()

template<typename TCoordinate , unsigned int VSpaceDimension>
OutputType itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::Evaluate ( const PointType point) const
overridevirtual

Evaluate the signed distance from a shape at a given position.

Implements itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >.

◆ GetNameOfClass()

template<typename TCoordinate , unsigned int VSpaceDimension>
const char* itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::GetNameOfClass ( ) const
overridevirtual

◆ GetNumberOfPoseParameters()

template<typename TCoordinate , unsigned int VSpaceDimension>
unsigned int itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::GetNumberOfPoseParameters ( ) const
inlineoverridevirtual

◆ GetNumberOfShapeParameters()

template<typename TCoordinate , unsigned int VSpaceDimension>
unsigned int itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::GetNumberOfShapeParameters ( ) const
inlineoverridevirtual

◆ New()

template<typename TCoordinate , unsigned int VSpaceDimension>
static Pointer itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::New ( )
static

New macro for creation of through the object factory.

◆ PrintSelf()

template<typename TCoordinate , unsigned int VSpaceDimension>
void itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::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::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >.

◆ SetParameters()

template<typename TCoordinate , unsigned int VSpaceDimension>
void itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::SetParameters ( const ParametersType )
overridevirtual

A sphere is defined by a set of shape parameters. The first parameter is the radius and the next SpaceDimension parameters represent the center.

Implements itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >.

Member Data Documentation

◆ m_Radius

template<typename TCoordinate , unsigned int VSpaceDimension>
double itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::m_Radius {}
private

Definition at line 112 of file itkSphereSignedDistanceFunction.h.

◆ m_Translation

template<typename TCoordinate , unsigned int VSpaceDimension>
VectorType itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::m_Translation {}
private

Definition at line 111 of file itkSphereSignedDistanceFunction.h.

◆ SpaceDimension

template<typename TCoordinate , unsigned int VSpaceDimension>
constexpr unsigned int itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::SpaceDimension = Superclass::SpaceDimension
staticconstexpr

Dimension underlying input image.

Definition at line 70 of file itkSphereSignedDistanceFunction.h.


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