19 #include <itkExhaustiveOptimizer.h>
38 OptimizerPointer->SetStepLength(
m_Controls.m_StepLengthExhaustive->text().toFloat());
42 steps[i] =
m_Controls.m_NumberOfStepsExhaustive->text().toInt();
44 OptimizerPointer->SetNumberOfSteps(steps);
45 return OptimizerPointer.GetPointer();
50 itk::Array<double> optimizerValues;
51 optimizerValues.SetSize(1);
52 optimizerValues.fill(0);
53 optimizerValues[0] = 1;
54 optimizerValues[1] =
m_Controls.m_StepLengthExhaustive->text().toFloat();
55 optimizerValues[2] =
m_Controls.m_NumberOfStepsExhaustive->text().toInt();
56 return optimizerValues;
62 m_Controls.m_StepLengthExhaustive->setText(QString::number(optimizerValues[1]));
63 m_Controls.m_NumberOfStepsExhaustive->setText(QString::number(optimizerValues[2]));
79 QValidator *validatorLineEditInput =
new QIntValidator(0, 20000000,
this);
80 m_Controls.m_NumberOfStepsExhaustive->setValidator(validatorLineEditInput);
81 QValidator *validatorLineEditInputFloat =
new QDoubleValidator(0, 20000000, 8,
this);
82 m_Controls.m_StepLengthExhaustive->setValidator(validatorLineEditInputFloat);
itk::SmartPointer< Self > Pointer
QmitkExhaustiveOptimizerView(QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
virtual void SetOptimizerParameters(itk::Array< double > metricValues) override
virtual QString GetName() override
Ui::QmitkExhaustiveOptimizerControls m_Controls
virtual void SetupUI(QWidget *parent) override
~QmitkExhaustiveOptimizerView()
Widget for rigid registration.
int m_NumberTransformParameters
virtual mitk::OptimizerParameters::OptimizerType GetOptimizerType() override
virtual void SetNumberOfTransformParameters(int transformParameters) override
OptimizerType
Unique integer value for every optimizer.
virtual itk::Array< double > GetOptimizerParameters() override
virtual itk::Object::Pointer GetOptimizer() override
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.