#include <itkSphereSignedDistanceFunction.h>
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.
Definition at line 45 of file itkSphereSignedDistanceFunction.h.
Public Member Functions | |
virtual::itk::LightObject::Pointer | CreateAnother () const |
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 |
![]() | |
virtual unsigned int | GetNumberOfParameters () const |
virtual ParametersType & | GetParameters () |
virtual void | Initialize () |
![]() | |
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 |
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 Member Functions | |
static Pointer | New () |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | SpaceDimension = Superclass::SpaceDimension |
![]() | |
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 |
SphereSignedDistanceFunction () | |
~SphereSignedDistanceFunction () override=default | |
![]() | |
ShapeSignedDistanceFunction ()=default | |
~ShapeSignedDistanceFunction () override=default | |
![]() | |
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 () |
Private Types | |
using | VectorType = Vector<CoordinateType, Self::SpaceDimension> |
Private Attributes | |
double | m_Radius {} |
VectorType | m_Translation {} |
Additional Inherited Members | |
![]() | |
ParametersType | m_Parameters {} |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::ConstPointer = SmartPointer<const Self> |
Definition at line 55 of file itkSphereSignedDistanceFunction.h.
using itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >::CoordinateType |
CoordRep type alias support
Definition at line 79 of file itkShapeSignedDistanceFunction.h.
Input type
Output type
using itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >::ParametersType |
Type of the shape parameters.
Definition at line 89 of file itkShapeSignedDistanceFunction.h.
using itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::Pointer = SmartPointer<Self> |
Definition at line 54 of file itkSphereSignedDistanceFunction.h.
using itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >::PointType |
Point type alias support
Definition at line 86 of file itkShapeSignedDistanceFunction.h.
using itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::Self = SphereSignedDistanceFunction |
Standard class type aliases.
Definition at line 52 of file itkSphereSignedDistanceFunction.h.
using itk::SphereSignedDistanceFunction< TCoordinate, VSpaceDimension >::Superclass = ShapeSignedDistanceFunction<TCoordinate, VSpaceDimension> |
Definition at line 53 of file itkSphereSignedDistanceFunction.h.
|
private |
Definition at line 109 of file itkSphereSignedDistanceFunction.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
overridevirtual |
Evaluate the signed distance from a shape at a given position.
Implements itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >.
References itk::point().
|
overridevirtual |
Reimplemented from itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >.
References SphereSignedDistanceFunction().
|
inlineoverridevirtual |
Implements itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >.
Definition at line 92 of file itkSphereSignedDistanceFunction.h.
References SpaceDimension.
|
inlineoverridevirtual |
Implements itk::ShapeSignedDistanceFunction< TCoordinate, VSpaceDimension >.
Definition at line 87 of file itkSphereSignedDistanceFunction.h.
|
static |
New macro for creation of through the object factory.
|
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 >.
|
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 >.
|
private |
Definition at line 112 of file itkSphereSignedDistanceFunction.h.
|
private |
Definition at line 111 of file itkSphereSignedDistanceFunction.h.
|
staticconstexpr |
Dimension underlying input image.
Definition at line 70 of file itkSphereSignedDistanceFunction.h.
Referenced by GetNumberOfPoseParameters().