ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkLBFGSOptimizerv4.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkLBFGSOptimizerv4_h
19#define itkLBFGSOptimizerv4_h
20
22#include "vnl/algo/vnl_lbfgs.h"
23#include "ITKOptimizersv4Export.h"
24
25namespace itk
26{
72
73class ITKOptimizersv4_EXPORT LBFGSOptimizerv4 : public LBFGSOptimizerBasev4<vnl_lbfgs>
74{
75public:
76 ITK_DISALLOW_COPY_AND_MOVE(LBFGSOptimizerv4);
77
83
87
89 itkNewMacro(Self);
90
92 itkOverrideGetNameOfClassMacro(LBFGSOptimizerv4);
93
95 void
96 StartOptimization(bool doOnlyInitialization = false) override;
97
99 void
100 SetMetric(MetricType * metric) override;
101
102 void
104 void
106
113 void
115
116 itkGetConstMacro(LineSearchAccuracy, double);
117
122 void
124
125 itkGetConstMacro(DefaultStepLength, double);
126
127protected:
130 void
131 PrintSelf(std::ostream & os, Indent indent) const override;
132
134 using InternalParametersType = vnl_vector<double>;
135
137 using InternalOptimizerType = vnl_lbfgs;
138
139private:
140 bool m_Verbose{ false };
141 double m_LineSearchAccuracy{ 0.9 };
142 double m_DefaultStepLength{ 1.0 };
143};
144} // end namespace itk
145#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
void SetDefaultStepLength(double f)
~LBFGSOptimizerv4() override
vnl_vector< double > InternalParametersType
SmartPointer< Self > Pointer
void SetLineSearchAccuracy(double f)
void SetMetric(MetricType *metric) override
LBFGSOptimizerBasev4< vnl_lbfgs > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::ParametersType ParametersType
SmartPointer< const Self > ConstPointer
Superclass::ScalesType ScalesType
Superclass::MetricType MetricType
void StartOptimization(bool doOnlyInitialization=false) override
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....