Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkRigidRegistrationMetricsGUIBase.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QmitkRigidRegistrationMetricsGUIBaseH
18 #define QmitkRigidRegistrationMetricsGUIBaseH
19 
21 #include "mitkImage.h"
22 #include "mitkMetricParameters.h"
23 #include <QString>
24 #include <QWidget>
25 #include <itkArray.h>
26 #include <itkObject.h>
27 
34 {
35 public:
36  QmitkRigidRegistrationMetricsGUIBase(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr);
38 
39  virtual mitk::MetricParameters::MetricType GetMetricType() = 0;
40 
41  virtual itk::Object::Pointer GetMetric() = 0;
42 
43  virtual itk::Array<double> GetMetricParameters() = 0;
44 
45  virtual void SetMetricParameters(itk::Array<double> metricValues) = 0;
46 
47  void SetMovingImage(mitk::Image::Pointer movingImage);
48 
49  virtual QString GetName() = 0;
50 
51  virtual void SetupUI(QWidget *parent) = 0;
52 
53  virtual bool Maximize() = 0;
54 
55 protected:
57 };
58 
59 #endif // QmitkRigidRegistrationMetricsGUIBaseH
itk::SmartPointer< Self > Pointer
#define MITKRIGIDREGISTRATIONUI_EXPORT
MetricType
Unique integer value for every metric.
static std::string GetName(std::string fileName, std::string suffix)