Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkNormalizedMutualInformationHistogramMetricView.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 QmitkNormalizedMutualInformationHistogramMetricViewWidgetHIncluded
18 #define QmitkNormalizedMutualInformationHistogramMetricViewWidgetHIncluded
19 
22 #include "ui_QmitkNormalizedMutualInformationHistogramMetricControls.h"
23 #include <itkArray.h>
24 #include <itkImage.h>
25 #include <itkObject.h>
26 
34 {
35 public:
36  QmitkNormalizedMutualInformationHistogramMetricView(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr);
38 
40 
41  virtual itk::Object::Pointer GetMetric() override;
42 
43  virtual itk::Array<double> GetMetricParameters() override;
44 
45  virtual void SetMetricParameters(itk::Array<double> metricValues) override;
46 
47  virtual QString GetName() override;
48 
49  virtual void SetupUI(QWidget *parent) override;
50 
51  virtual bool Maximize() override;
52 
53 private:
54  template <class TPixelType, unsigned int VImageDimension>
55  itk::Object::Pointer GetMetric2(itk::Image<TPixelType, VImageDimension> *itkImage1);
56 
57 protected:
58  Ui::QmitkNormalizedMutualInformationHistogramMetricControls m_Controls;
59 
61 };
62 
63 #endif
virtual itk::Object::Pointer GetMetric()=0
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
Ui::QmitkNormalizedMutualInformationHistogramMetricControls m_Controls