18 #ifndef __itkGradientDescentOptimizer2_h 19 #define __itkGradientDescentOptimizer2_h 22 #include "itkMultiThreader.h" 106 itkSetMacro( LearningRate,
double );
109 itkGetConstReferenceMacro( LearningRate,
double );
112 itkSetMacro( NumberOfIterations,
unsigned long );
115 itkGetConstReferenceMacro( NumberOfIterations,
unsigned long );
118 itkGetConstMacro( CurrentIteration,
unsigned int );
121 itkGetConstReferenceMacro( Value,
double );
124 itkGetConstReferenceMacro( StopCondition, StopConditionType );
127 itkGetConstReferenceMacro( Gradient, DerivativeType );
132 this->
m_Threader->SetNumberOfThreads( numberOfThreads );
137 itkSetMacro( UseMultiThread,
bool );
139 itkSetMacro( UseOpenMP,
bool );
140 itkSetMacro( UseEigen,
bool );
146 void PrintSelf( std::ostream & os, Indent indent )
const;
GradientDescentOptimizer2()
Implement a gradient descent optimizer.
Superclass::MeasureType MeasureType
unsigned long m_CurrentIteration
virtual ~GradientDescentOptimizer2()
Superclass::ParametersType ParametersType
void operator=(const Self &)
ScaledCostFunctionType::Pointer ScaledCostFunctionPointer
virtual void StartOptimization(void)
GradientDescentOptimizer2 Self
ScaledSingleValuedNonLinearOptimizer Superclass
Superclass::DerivativeType DerivativeType
Superclass::MeasureType MeasureType
ParametersType * t_NewPosition
Superclass::DerivativeType DerivativeType
Superclass::ScalesType ScalesType
StopConditionType m_StopCondition
SmartPointer< const Self > ConstPointer
Superclass::ScaledCostFunctionType ScaledCostFunctionType
virtual void StopOptimization(void)
Superclass::CostFunctionType CostFunctionType
ThreaderType::Pointer m_Threader
void PrintSelf(std::ostream &os, Indent indent) const
void SetNumberOfThreads(ThreadIdType numberOfThreads)
ScaledSingleValuedCostFunction ScaledCostFunctionType
NonLinearOptimizer::ScalesType ScalesType
virtual void AdvanceOneStep(void)
unsigned long m_NumberOfIterations
virtual void MetricErrorResponse(ExceptionObject &err)
void ThreadedAdvanceOneStep(ThreadIdType threadId, ParametersType &newPosition)
SmartPointer< Self > Pointer
Superclass::ParametersType ParametersType
Superclass::CostFunctionType CostFunctionType
DerivativeType m_Gradient
ThreaderType::ThreadInfoStruct ThreadInfoType
itk::MultiThreader ThreaderType
virtual void ResumeOptimization(void)
Superclass::ScaledCostFunctionPointer ScaledCostFunctionPointer
static ITK_THREAD_RETURN_TYPE AdvanceOneStepThreaderCallback(void *arg)