18 #ifndef itkConvergenceMonitoringFunction_h 19 #define itkConvergenceMonitoringFunction_h 42 template<
typename TScalar,
typename TEnergyValue>
68 itkDebugMacro(
"Adding energy value " << value );
84 itkDebugMacro(
"Clearing energy values." );
106 os << std::endl <<
"Energy values: " << std::flush;
111 os <<
"(" << it - this->
m_EnergyValues.begin() <<
"): " << *it <<
" ";
121 void operator=(const Self &) ITK_DELETE_FUNCTION;
EnergyValueContainerType::size_type EnergyValueContainerSizeType
EnergyValueContainerType m_EnergyValues
virtual RealType GetConvergenceValue() const =0
Abstract base class which monitors convergence during the course of optimization. ...
NumericTraits< ScalarType >::RealType RealType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
EnergyValueContainerType::const_iterator EnergyValueConstIterator
EnergyValueContainerSizeType GetNumberOfEnergyValues() const
virtual void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
~ConvergenceMonitoringFunction()
TEnergyValue EnergyValueType
ConvergenceMonitoringFunction Self
virtual void Modified() const
virtual void ClearEnergyValues()
Control indentation during Print() invocation.
ConvergenceMonitoringFunction()
Define additional traits for native types such as int or float.
Base class for most ITK classes.
EnergyValueContainerType::iterator EnergyValueIterator
virtual void PrintSelf(std::ostream &os, Indent indent) const override
std::deque< EnergyValueType > EnergyValueContainerType
SmartPointer< Self > Pointer
virtual void AddEnergyValue(const EnergyValueType value)