Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkMutualInformationMetricView.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 QmitkMutualInformationMetricViewWidgetHIncluded
18 #define QmitkMutualInformationMetricViewWidgetHIncluded
19 
22 #include "ui_QmitkMutualInformationMetricControls.h"
23 #include <itkArray.h>
24 #include <itkImage.h>
25 #include <itkObject.h>
26 
33 {
34 public:
35  QmitkMutualInformationMetricView(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr);
37 
39 
40  virtual itk::Object::Pointer GetMetric() override;
41 
42  virtual itk::Array<double> GetMetricParameters() override;
43 
44  virtual void SetMetricParameters(itk::Array<double> metricValues) override;
45 
46  virtual QString GetName() override;
47 
48  virtual void SetupUI(QWidget *parent) override;
49 
50  virtual bool Maximize() override;
51 
52 private:
53  template <class TPixelType, unsigned int VImageDimension>
54  itk::Object::Pointer GetMetric2(itk::Image<TPixelType, VImageDimension> *itkImage1);
55 
56 protected:
57  Ui::QmitkMutualInformationMetricControls m_Controls;
58 
60 };
61 
62 #endif
virtual itk::Object::Pointer GetMetric()=0
Ui::QmitkMutualInformationMetricControls m_Controls
virtual void SetMetricParameters(itk::Array< double > metricValues)=0
itk::SmartPointer< Self > Pointer
virtual itk::Array< double > GetMetricParameters()=0
virtual void SetupUI(QWidget *parent)=0
#define MITKRIGIDREGISTRATIONUI_EXPORT
MetricType
Unique integer value for every metric.
virtual mitk::MetricParameters::MetricType GetMetricType()=0