ITK
5.2.0
Insight Toolkit
|
#include <itkMultiGradientOptimizerv4.h>
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
const MetricValuesListType & | GetMetricValuesList () const |
virtual const char * | GetNameOfClass () const |
OptimizersListType & | GetOptimizersList () |
const StopConditionObjectToObjectOptimizerEnum & | GetStopCondition () const override |
const StopConditionReturnStringType | GetStopConditionDescription () const override |
void | ResumeOptimization () override |
void | SetOptimizersList (OptimizersListType &p) |
void | StartOptimization (bool doOnlyInitialization=false) override |
void | StopOptimization () override |
Public Member Functions inherited from itk::GradientDescentOptimizerv4Template< TInternalComputationValueType > | |
virtual void | SetLearningRate (TInternalComputationValueType _arg) |
virtual const TInternalComputationValueType & | GetLearningRate () const |
virtual void | SetMaximumStepSizeInPhysicalUnits (TInternalComputationValueType _arg) |
virtual const TInternalComputationValueType & | GetMaximumStepSizeInPhysicalUnits () const |
virtual void | SetDoEstimateLearningRateAtEachIteration (bool _arg) |
virtual const bool & | GetDoEstimateLearningRateAtEachIteration () const |
virtual void | DoEstimateLearningRateAtEachIterationOn () |
virtual void | DoEstimateLearningRateAtEachIterationOff () |
virtual void | SetDoEstimateLearningRateOnce (bool _arg) |
virtual const bool & | GetDoEstimateLearningRateOnce () const |
virtual void | DoEstimateLearningRateOnceOn () |
virtual void | DoEstimateLearningRateOnceOff () |
virtual void | SetMinimumConvergenceValue (TInternalComputationValueType _arg) |
virtual void | SetConvergenceWindowSize (SizeValueType _arg) |
virtual const TInternalComputationValueType & | GetConvergenceValue () const |
virtual void | SetReturnBestParametersAndValue (bool _arg) |
virtual const bool & | GetReturnBestParametersAndValue () const |
virtual void | ReturnBestParametersAndValueOn () |
virtual void | ReturnBestParametersAndValueOff () |
virtual void | EstimateLearningRate () |
Public Member Functions inherited from itk::GradientDescentOptimizerBasev4Template< TInternalComputationValueType > | |
virtual const DerivativeType & | GetGradient () const |
void | SetNumberOfIterations (const SizeValueType numberOfIterations) override |
SizeValueType | GetNumberOfIterations () const override |
SizeValueType | GetCurrentIteration () const override |
virtual void | ModifyGradientByScales () |
virtual void | ModifyGradientByLearningRate () |
Public Member Functions inherited from itk::ObjectToObjectOptimizerBaseTemplate< TInternalComputationValueType > | |
virtual void | SetMetric (MetricType *_arg) |
virtual MetricType * | GetModifiableMetric () |
virtual const MetricType * | GetMetric () const |
virtual const MeasureType & | GetCurrentMetricValue () const |
virtual const MeasureType & | GetValue () const |
virtual void | SetScales (const ScalesType &scales) |
virtual const ScalesType & | GetScales () const |
virtual const bool & | GetScalesAreIdentity () const |
virtual void | SetWeights (ScalesType _arg) |
virtual const ScalesType & | GetWeights () const |
virtual const bool & | GetWeightsAreIdentity () const |
bool | GetScalesInitialized () const |
virtual void | SetScalesEstimator (ScalesEstimatorType *_arg) |
virtual void | SetDoEstimateScales (bool _arg) |
virtual const bool & | GetDoEstimateScales () const |
virtual void | DoEstimateScalesOn () |
virtual void | DoEstimateScalesOff () |
virtual void | SetNumberOfWorkUnits (ThreadIdType number) |
virtual const ThreadIdType & | GetNumberOfWorkUnits () const |
virtual const ParametersType & | GetCurrentPosition () const |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () 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) |
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::GradientDescentOptimizerv4Template< TInternalComputationValueType > | |
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 () |
bool | m_Stop { false } |
StopConditionObjectToObjectOptimizerEnum | m_StopCondition |
StopConditionDescriptionType | m_StopConditionDescription |
OptimizersListType | m_OptimizersList |
MetricValuesListType | m_MetricValuesList |
MeasureType | m_MinimumMetricValue |
MeasureType | m_MaximumMetricValue |
MultiGradientOptimizerv4Template () | |
~MultiGradientOptimizerv4Template () override=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
Multiple gradient-based optimizers are combined in order to perform a multi-objective optimization.
This optimizer will do a combined gradient descent optimization using whatever metric/optimizer gradient sub-optimizers are passed to it by the user. The learning rate or scaleestimator for each sub-optimizer controls the relative weight of each metric in the optimization. Denote the weights as and then the MultiGradientOptimizer will optimize by using update rule:
The test for this class illustrates the expected behavior.
Definition at line 47 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::ConstPointer = SmartPointer<const Self> |
Definition at line 57 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::DerivativeType = typename MetricType::DerivativeType |
Derivative type
Definition at line 88 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::InternalComputationValueType = TInternalComputationValueType |
It should be possible to derive the internal computation type from the class object.
Definition at line 81 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::LocalOptimizerPointer = typename itk::GradientDescentOptimizerv4Template<TInternalComputationValueType>::Pointer |
Definition at line 67 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::LocalOptimizerType = itk::GradientDescentOptimizerv4Template<TInternalComputationValueType> |
Definition at line 65 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::MeasureType = typename Superclass::MeasureType |
Measure type
Definition at line 91 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::MetricType = typename Superclass::MetricType |
Metric type over which this class is templated
Definition at line 84 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::MetricTypePointer = typename MetricType::Pointer |
Definition at line 85 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::MetricValuesListType = std::vector<MeasureType> |
Definition at line 92 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::OptimizerPointer = typename OptimizerType::Pointer |
Definition at line 70 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::OptimizersListSizeType = typename OptimizersListType::size_type |
Definition at line 72 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::OptimizersListType = std::vector<LocalOptimizerPointer> |
Definition at line 71 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::OptimizerType = ObjectToObjectOptimizerBaseTemplate<TInternalComputationValueType> |
Definition at line 69 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::ParametersType = typename Superclass::ParametersType |
Definition at line 68 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::Pointer = SmartPointer<Self> |
Definition at line 56 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::Self = MultiGradientOptimizerv4Template |
Standard class type aliases.
Definition at line 54 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::StopConditionDescriptionType = typename Superclass::StopConditionDescriptionType |
Stop condition internal string type
Definition at line 78 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::StopConditionReturnStringType = typename Superclass::StopConditionReturnStringType |
Stop condition return string type
Definition at line 75 of file itkMultiGradientOptimizerv4.h.
using itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::Superclass = GradientDescentOptimizerv4Template<TInternalComputationValueType> |
Definition at line 55 of file itkMultiGradientOptimizerv4.h.
|
protected |
Default constructor
|
overrideprotecteddefault |
Default constructor
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::GradientDescentOptimizerv4Template< TInternalComputationValueType >.
const MetricValuesListType& itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::GetMetricValuesList | ( | ) | const |
Get the list of metric values that we produced after the multi-objective search.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::GradientDescentOptimizerv4Template< TInternalComputationValueType >.
OptimizersListType& itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::GetOptimizersList | ( | ) |
Get the list of optimizers currently held.
|
inlineoverridevirtual |
Get stop condition enum
Reimplemented from itk::GradientDescentOptimizerBasev4Template< TInternalComputationValueType >.
Definition at line 96 of file itkMultiGradientOptimizerv4.h.
|
overridevirtual |
Get the reason for termination
Reimplemented from itk::GradientDescentOptimizerBasev4Template< TInternalComputationValueType >.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Default constructor
Reimplemented from itk::GradientDescentOptimizerv4Template< TInternalComputationValueType >.
|
overridevirtual |
Resume the optimization. Can be called after StopOptimization to resume. The bulk of the optimization work loop is here.
Reimplemented from itk::GradientDescentOptimizerv4Template< TInternalComputationValueType >.
void itk::MultiGradientOptimizerv4Template< TInternalComputationValueType >::SetOptimizersList | ( | OptimizersListType & | p | ) |
Set the list of optimizers to combine
|
overridevirtual |
Begin the optimization
Reimplemented from itk::GradientDescentOptimizerv4Template< TInternalComputationValueType >.
|
overridevirtual |
Stop optimization. The object is left in a state so the optimization can be resumed by calling ResumeOptimization.
Reimplemented from itk::GradientDescentOptimizerv4Template< TInternalComputationValueType >.
|
protected |
Default constructor
Definition at line 147 of file itkMultiGradientOptimizerv4.h.
|
protected |
Default constructor
Definition at line 145 of file itkMultiGradientOptimizerv4.h.
|
protected |
Default constructor
Definition at line 146 of file itkMultiGradientOptimizerv4.h.
|
protected |
Default constructor
Definition at line 144 of file itkMultiGradientOptimizerv4.h.
|
protected |
Default constructor
Definition at line 141 of file itkMultiGradientOptimizerv4.h.
|
protected |
Default constructor
Definition at line 142 of file itkMultiGradientOptimizerv4.h.
|
protected |
Default constructor
Definition at line 143 of file itkMultiGradientOptimizerv4.h.