19 #include <itkQuaternionRigidTransformGradientDescentOptimizer.h>
22 QWidget *parent, Qt::WindowFlags f)
40 OptimizerPointer->SetMaximize(
m_Controls.m_Maximize->isChecked());
41 OptimizerPointer->SetLearningRate(
m_Controls.m_LearningRateQuaternionRigidTransformGradientDescent->text().toFloat());
42 OptimizerPointer->SetNumberOfIterations(
43 m_Controls.m_IterationsQuaternionRigidTransformGradientDescent->text().toInt());
44 return OptimizerPointer.GetPointer();
49 itk::Array<double> optimizerValues;
50 optimizerValues.SetSize(3);
51 optimizerValues.fill(0);
52 optimizerValues[0] =
m_Controls.m_Maximize->isChecked();
53 optimizerValues[1] =
m_Controls.m_LearningRateQuaternionRigidTransformGradientDescent->text().toFloat();
54 optimizerValues[2] =
m_Controls.m_IterationsQuaternionRigidTransformGradientDescent->text().toInt();
55 return optimizerValues;
59 itk::Array<double> optimizerValues)
61 m_Controls.m_Maximize->setChecked(optimizerValues[0]);
62 m_Controls.m_LearningRateQuaternionRigidTransformGradientDescent->setText(QString::number(optimizerValues[1]));
63 m_Controls.m_IterationsQuaternionRigidTransformGradientDescent->setText(QString::number(optimizerValues[2]));
73 return "QuaternionRigidTransformGradientDescent";
79 QValidator *validatorLineEditInput =
new QIntValidator(0, 20000000,
this);
80 m_Controls.m_IterationsQuaternionRigidTransformGradientDescent->setValidator(validatorLineEditInput);
81 QValidator *validatorLineEditInputFloat =
new QDoubleValidator(0, 20000000, 8,
this);
82 m_Controls.m_LearningRateQuaternionRigidTransformGradientDescent->setValidator(validatorLineEditInputFloat);
itk::SmartPointer< Self > Pointer
Widget for rigid registration.
OptimizerType
Unique integer value for every optimizer.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.