ITK  6.0.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
itk::Function::WindowConvergenceMonitoringFunction< TScalar > Class Template Reference

#include <itkWindowConvergenceMonitoringFunction.h>

Detailed Description

template<typename TScalar = double>
class itk::Function::WindowConvergenceMonitoringFunction< TScalar >

Class which monitors convergence during the course of optimization.

Author
Nick Tustison
Brian Avants

Definition at line 39 of file itkWindowConvergenceMonitoringFunction.h.

+ Inheritance diagram for itk::Function::WindowConvergenceMonitoringFunction< TScalar >:
+ Collaboration diagram for itk::Function::WindowConvergenceMonitoringFunction< TScalar >:

Public Types

using ConstPointer = SmartPointer< const Self >
 
using EnergyValueConstIterator = typename EnergyValueContainerType::const_iterator
 
using EnergyValueIterator = typename EnergyValueContainerType::iterator
 
using Pointer = SmartPointer< Self >
 
using RealType = typename NumericTraits< ScalarType >::RealType
 
using ScalarType = TScalar
 
using Self = WindowConvergenceMonitoringFunction
 
using Superclass = ConvergenceMonitoringFunction< TScalar, TScalar >
 
- Public Types inherited from itk::Function::ConvergenceMonitoringFunction< TScalar, TScalar >
using ConstPointer = SmartPointer< const Self >
 
using EnergyValueConstIterator = typename EnergyValueContainerType::const_iterator
 
using EnergyValueContainerSizeType = typename EnergyValueContainerType::size_type
 
using EnergyValueContainerType = std::deque< EnergyValueType >
 
using EnergyValueIterator = typename EnergyValueContainerType::iterator
 
using EnergyValueType = TScalar
 
using Pointer = SmartPointer< Self >
 
using RealType = typename NumericTraits< ScalarType >::RealType
 
using ScalarType = TScalar
 
using Self = ConvergenceMonitoringFunction
 
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 AddEnergyValue (const EnergyValueType) override
 
void ClearEnergyValues () override
 
RealType GetConvergenceValue () const override
 
const char * GetNameOfClass () const override
 
virtual void SetWindowSize (EnergyValueContainerSizeType _arg)
 
virtual EnergyValueContainerSizeType GetWindowSize () const
 
- Public Member Functions inherited from itk::Function::ConvergenceMonitoringFunction< TScalar, TScalar >
const char * GetNameOfClass () const override
 
EnergyValueContainerSizeType GetNumberOfEnergyValues () const
 
- 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 ()
 

Protected Member Functions

void PrintSelf (std::ostream &os, Indent indent) const override
 
 WindowConvergenceMonitoringFunction ()
 
 ~WindowConvergenceMonitoringFunction () override=default
 
- Protected Member Functions inherited from itk::Function::ConvergenceMonitoringFunction< TScalar, TScalar >
 ConvergenceMonitoringFunction ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~ConvergenceMonitoringFunction () 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 Attributes

RealType m_TotalEnergy {}
 
EnergyValueContainerSizeType m_WindowSize {}
 

Additional Inherited Members

- Protected Attributes inherited from itk::Function::ConvergenceMonitoringFunction< TScalar, TScalar >
EnergyValueContainerType m_EnergyValues
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ ConstPointer

template<typename TScalar = double>
using itk::Function::WindowConvergenceMonitoringFunction< TScalar >::ConstPointer = SmartPointer<const Self>

Definition at line 47 of file itkWindowConvergenceMonitoringFunction.h.

◆ EnergyValueConstIterator

template<typename TScalar = double>
using itk::Function::WindowConvergenceMonitoringFunction< TScalar >::EnergyValueConstIterator = typename EnergyValueContainerType::const_iterator

Definition at line 62 of file itkWindowConvergenceMonitoringFunction.h.

◆ EnergyValueIterator

template<typename TScalar = double>
using itk::Function::WindowConvergenceMonitoringFunction< TScalar >::EnergyValueIterator = typename EnergyValueContainerType::iterator

Definition at line 61 of file itkWindowConvergenceMonitoringFunction.h.

◆ Pointer

template<typename TScalar = double>
using itk::Function::WindowConvergenceMonitoringFunction< TScalar >::Pointer = SmartPointer<Self>

Definition at line 46 of file itkWindowConvergenceMonitoringFunction.h.

◆ RealType

template<typename TScalar = double>
using itk::Function::WindowConvergenceMonitoringFunction< TScalar >::RealType = typename NumericTraits<ScalarType>::RealType

Definition at line 56 of file itkWindowConvergenceMonitoringFunction.h.

◆ ScalarType

template<typename TScalar = double>
using itk::Function::WindowConvergenceMonitoringFunction< TScalar >::ScalarType = TScalar

Definition at line 55 of file itkWindowConvergenceMonitoringFunction.h.

◆ Self

template<typename TScalar = double>
using itk::Function::WindowConvergenceMonitoringFunction< TScalar >::Self = WindowConvergenceMonitoringFunction

Definition at line 44 of file itkWindowConvergenceMonitoringFunction.h.

◆ Superclass

template<typename TScalar = double>
using itk::Function::WindowConvergenceMonitoringFunction< TScalar >::Superclass = ConvergenceMonitoringFunction<TScalar, TScalar>

Definition at line 45 of file itkWindowConvergenceMonitoringFunction.h.

Constructor & Destructor Documentation

◆ WindowConvergenceMonitoringFunction()

template<typename TScalar = double>
itk::Function::WindowConvergenceMonitoringFunction< TScalar >::WindowConvergenceMonitoringFunction ( )
protected

◆ ~WindowConvergenceMonitoringFunction()

template<typename TScalar = double>
itk::Function::WindowConvergenceMonitoringFunction< TScalar >::~WindowConvergenceMonitoringFunction ( )
overrideprotecteddefault

Member Function Documentation

◆ AddEnergyValue()

template<typename TScalar = double>
void itk::Function::WindowConvergenceMonitoringFunction< TScalar >::AddEnergyValue ( const  EnergyValueType)
overridevirtual

◆ ClearEnergyValues()

template<typename TScalar = double>
void itk::Function::WindowConvergenceMonitoringFunction< TScalar >::ClearEnergyValues ( )
overridevirtual

Clear all the energy values.

Reimplemented from itk::Function::ConvergenceMonitoringFunction< TScalar, TScalar >.

◆ GetConvergenceValue()

template<typename TScalar = double>
RealType itk::Function::WindowConvergenceMonitoringFunction< TScalar >::GetConvergenceValue ( ) const
overridevirtual

Calculate convergence value by fitting to a window of the energy profile

Implements itk::Function::ConvergenceMonitoringFunction< TScalar, TScalar >.

◆ GetNameOfClass()

template<typename TScalar = double>
const char* itk::Function::WindowConvergenceMonitoringFunction< TScalar >::GetNameOfClass ( ) const
overridevirtual
See also
LightObject::GetNameOfClass()

Reimplemented from itk::Object.

◆ GetWindowSize()

template<typename TScalar = double>
virtual EnergyValueContainerSizeType itk::Function::WindowConvergenceMonitoringFunction< TScalar >::GetWindowSize ( ) const
virtual

Set/Get window size over which the convergence value is calculated

◆ New()

template<typename TScalar = double>
static Pointer itk::Function::WindowConvergenceMonitoringFunction< TScalar >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<typename TScalar = double>
void itk::Function::WindowConvergenceMonitoringFunction< TScalar >::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.

◆ SetWindowSize()

template<typename TScalar = double>
virtual void itk::Function::WindowConvergenceMonitoringFunction< TScalar >::SetWindowSize ( EnergyValueContainerSizeType  _arg)
virtual

Set/Get window size over which the convergence value is calculated

Member Data Documentation

◆ m_TotalEnergy

template<typename TScalar = double>
RealType itk::Function::WindowConvergenceMonitoringFunction< TScalar >::m_TotalEnergy {}
private

Definition at line 92 of file itkWindowConvergenceMonitoringFunction.h.

◆ m_WindowSize

template<typename TScalar = double>
EnergyValueContainerSizeType itk::Function::WindowConvergenceMonitoringFunction< TScalar >::m_WindowSize {}
private

Definition at line 90 of file itkWindowConvergenceMonitoringFunction.h.


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