19 #include <itkMeanReciprocalSquareDifferenceImageToImageMetric.h>
48 template <
class TPixelType,
unsigned int VImageDimension>
50 itk::Image<TPixelType, VImageDimension> * )
52 typedef typename itk::Image<TPixelType, VImageDimension> FixedImageType;
53 typedef typename itk::Image<TPixelType, VImageDimension> MovingImageType;
60 MetricPointer->SetLambda(
m_Controls.m_LambdaMeanReciprocalSquareDifference->text().toInt());
61 MetricPointer->SetComputeGradient(
m_Controls.m_ComputeGradient->isChecked());
63 return MetricPointer.GetPointer();
68 itk::Array<double> metricValues;
69 metricValues.SetSize(2);
71 metricValues[0] =
m_Controls.m_ComputeGradient->isChecked();
72 metricValues[1] =
m_Controls.m_LambdaMeanReciprocalSquareDifference->text().toInt();
78 m_Controls.m_ComputeGradient->setChecked(metricValues[0]);
79 m_Controls.m_LambdaMeanReciprocalSquareDifference->setText(QString::number(metricValues[1]));
84 return "MeanReciprocalSquareDifference";
90 QValidator *validatorLineEditInput =
new QIntValidator(0, 20000000,
this);
91 m_Controls.m_LambdaMeanReciprocalSquareDifference->setValidator(validatorLineEditInput);
virtual bool Maximize() override
itk::SmartPointer< Self > Pointer
virtual void SetupUI(QWidget *parent) override
virtual void SetMetricParameters(itk::Array< double > metricValues) override
virtual itk::Array< double > GetMetricParameters() override
~QmitkMeanReciprocalSquareDifferenceMetricView()
virtual mitk::MetricParameters::MetricType GetMetricType() override
virtual itk::Object::Pointer GetMetric() override
Ui::QmitkMeanReciprocalSquareDifferenceMetricControls m_Controls
virtual QString GetName() override
mitk::Image::Pointer m_MovingImage
#define AccessByItk(mitkImage, itkImageTypeFunction)
Access a MITK image by an ITK image.
itk::Object::Pointer m_MetricObject
MetricType
Unique integer value for every metric.
QmitkMeanReciprocalSquareDifferenceMetricView(QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
Widget for rigid registration.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.