19 #include <itkLBFGSBOptimizer.h>
39 itk::LBFGSBOptimizer::BoundValueType lower(12);
40 itk::LBFGSBOptimizer::BoundValueType upper(12);
41 itk::LBFGSBOptimizer::BoundSelectionType select(12);
47 OptimizerPointer->SetLowerBound(lower);
48 OptimizerPointer->SetUpperBound(upper);
49 OptimizerPointer->SetBoundSelection(select);
50 OptimizerPointer->SetCostFunctionConvergenceFactor(1e+1);
51 OptimizerPointer->SetMaximumNumberOfCorrections(5);
52 OptimizerPointer->SetProjectedGradientTolerance(1e-5);
53 OptimizerPointer->SetMaximumNumberOfEvaluations(500);
54 OptimizerPointer->SetMaximumNumberOfIterations(200);
55 return OptimizerPointer.GetPointer();
60 itk::Array<double> optimizerValues;
61 optimizerValues.SetSize(1);
62 optimizerValues.fill(0);
63 optimizerValues[0] =
m_Controls.m_Maximize->isChecked();
64 return optimizerValues;
69 m_Controls.m_Maximize->setChecked(optimizerValues[0]);
85 new QIntValidator(0, 20000000,
this);
86 new QDoubleValidator(0, 20000000, 8,
this);
~QmitkLBFGSBOptimizerView()
itk::SmartPointer< Self > Pointer
virtual QString GetName() override
virtual void SetupUI(QWidget *parent) override
virtual itk::Array< double > GetOptimizerParameters() override
int m_NumberTransformParameters
Widget for rigid registration.
QmitkLBFGSBOptimizerView(QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
Ui::QmitkLBFGSBOptimizerControls m_Controls
virtual itk::Object::Pointer GetOptimizer() override
virtual mitk::OptimizerParameters::OptimizerType GetOptimizerType() override
OptimizerType
Unique integer value for every optimizer.
virtual void SetNumberOfTransformParameters(int transformParameters) override
virtual void SetOptimizerParameters(itk::Array< double > metricValues) override
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.