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 <<
" ";
Light weight base class for most itk classes.
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
virtual RealType GetConvergenceValue() const =0
EnergyValueContainerType::size_type EnergyValueContainerSizeType
EnergyValueContainerType m_EnergyValues
Abstract base class which monitors convergence during the course of optimization. ...
NumericTraits< ScalarType >::RealType RealType
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
EnergyValueContainerType::const_iterator EnergyValueConstIterator
EnergyValueContainerSizeType GetNumberOfEnergyValues() const
SmartPointer< const Self > ConstPointer
~ConvergenceMonitoringFunction()
TEnergyValue EnergyValueType
ConvergenceMonitoringFunction Self
virtual void Modified() const
virtual void ClearEnergyValues()
Control indentation during Print() invocation.
ConvergenceMonitoringFunction()
void operator=(const Self &)
Define additional traits for native types such as int or float.
Base class for most ITK classes.
EnergyValueContainerType::iterator EnergyValueIterator
std::deque< EnergyValueType > EnergyValueContainerType
SmartPointer< Self > Pointer
virtual void AddEnergyValue(const EnergyValueType value)