18 #ifndef __itkCommandVnlIterationUpdate_h
19 #define __itkCommandVnlIterationUpdate_h
31 template <
typename TOptimizer >
70 std::cout << std::endl <<
"Position Value";
71 std::cout << std::endl << std::endl;
75 std::cout <<
m_Optimizer->GetCurrentIteration() <<
" = ";
76 std::cout <<
m_Optimizer->GetCurrentPosition() << std::endl;
80 std::cout << std::endl << std::endl;
81 std::cout <<
"After " <<
m_Optimizer->GetCurrentIteration();
82 std::cout <<
" iterations " << std::endl;
83 std::cout <<
"Solution is = " <<
m_Optimizer->GetCurrentPosition();
84 std::cout << std::endl;
85 std::cout <<
"vnl report = " << std::endl;
86 m_Optimizer->GetOptimizer()->diagnose_outcome( std::cout );
CommandVnlIterationUpdate()
itk::SmartPointer< const Self > ConstPointer
virtual void Execute(itk::Object *caller, const itk::EventObject &event) ITK_OVERRIDE
CommandVnlIterationUpdate Self
void SetOptimizer(OptimizerType *optimizer)
Abstraction of the Events used to communicating among filters and with GUIs.
virtual void Execute(const itk::Object *, const itk::EventObject &event) ITK_OVERRIDE
Base class for most ITK classes.
Superclass for callback/observer methods.
WeakPointer< OptimizerType > m_Optimizer
itk::SmartPointer< Self > Pointer