#include <itkShapeSignedDistanceFunction.h>
Base class for functions which evaluates the signed distance from a shape.
ShapeSignedDistanceFunction is the base class for functions which returns the signed distance from a shape at an arbitrary point. A shape assumed to be defined by a set of shape and pose parameters.
Note that Initialize() must be called before use. This allows the class an opportunity to validate any inputs.
This class is templated over the coordinate representation type (e.g. float or double) and the space dimension.
ShapeSignedDistanceFunction is used to encapsulate the shape prior in ShapePriorSegmentationLevelSetFunctions.
Definition at line 53 of file itkShapeSignedDistanceFunction.h.
Public Member Functions | |
OutputType | Evaluate (const PointType &point) const override=0 |
const char * | GetNameOfClass () const override |
virtual unsigned int | GetNumberOfParameters () const |
virtual unsigned int | GetNumberOfPoseParameters () const =0 |
virtual unsigned int | GetNumberOfShapeParameters () const =0 |
virtual ParametersType & | GetParameters () |
virtual void | Initialize () |
virtual void | SetParameters (const ParametersType &)=0 |
![]() | |
const char * | GetNameOfClass () const override |
const char * | GetNameOfClass () const override |
![]() | |
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 |
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 | SpaceDimension = VSpaceDimension |
![]() | |
static constexpr unsigned int | ImageDimension |
static constexpr unsigned int | ImageDimension |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
ShapeSignedDistanceFunction ()=default | |
~ShapeSignedDistanceFunction () override=default | |
![]() | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | PrintSelf (std::ostream &os, Indent indent) const override |
SpatialFunction ()=default | |
SpatialFunction ()=default | |
~SpatialFunction () override=default | |
~SpatialFunction () override=default | |
![]() | |
FunctionBase ()=default | |
~FunctionBase () override=default | |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
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 () |
Protected Attributes | |
ParametersType | m_Parameters {} |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
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 () |
using itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >::ConstPointer = SmartPointer<const Self> |
Definition at line 64 of file itkShapeSignedDistanceFunction.h.
using itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >::CoordinateType = TCoordinate |
CoordRep type alias support
Definition at line 79 of file itkShapeSignedDistanceFunction.h.
Input type
Output type
using itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >::ParametersType = OptimizerParameters<double> |
Type of the shape parameters.
Definition at line 89 of file itkShapeSignedDistanceFunction.h.
using itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >::Pointer = SmartPointer<Self> |
Definition at line 63 of file itkShapeSignedDistanceFunction.h.
using itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >::PointType = InputType |
Point type alias support
Definition at line 86 of file itkShapeSignedDistanceFunction.h.
using itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >::Self = ShapeSignedDistanceFunction |
Standard class type aliases.
Definition at line 60 of file itkShapeSignedDistanceFunction.h.
using itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >::Superclass = SpatialFunction<double, VSpaceDimension, Point<TCoordinate, VSpaceDimension>> |
Definition at line 61 of file itkShapeSignedDistanceFunction.h.
|
protecteddefault |
|
overrideprotecteddefault |
|
overridepure virtual |
Evaluate the signed distance from a shape at a given position.
Implements itk::SpatialFunction< double, VSpaceDimension, Point< TCoordinate, VSpaceDimension > >.
Implemented in itk::PCAShapeSignedDistanceFunction< TCoordinate, VSpaceDimension, TImage >, and itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >.
|
overridevirtual |
Reimplemented from itk::FunctionBase< TInput, TOutput >.
Reimplemented in itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >.
|
inlinevirtual |
Definition at line 107 of file itkShapeSignedDistanceFunction.h.
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
Definition at line 96 of file itkShapeSignedDistanceFunction.h.
|
inlinevirtual |
Initialize must be called before the first call of SetParameters() or Evaluate() to allow the class to validate any inputs.
Reimplemented in itk::PCAShapeSignedDistanceFunction< TCoordinate, VSpaceDimension, TImage >.
Definition at line 119 of file itkShapeSignedDistanceFunction.h.
|
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::Object.
Reimplemented in itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >.
Definition at line 128 of file itkShapeSignedDistanceFunction.h.
|
pure virtual |
A shape is defined by a set of shape parameters.
Implemented in itk::PCAShapeSignedDistanceFunction< TCoordinate, VSpaceDimension, TImage >, and itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >.
|
protected |
Definition at line 134 of file itkShapeSignedDistanceFunction.h.
|
staticconstexpr |
Dimension underlying input image.
Definition at line 76 of file itkShapeSignedDistanceFunction.h.