Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkHistogramMatching.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 MITKHISTOGRAMMATCHING_H
18 #define MITKHISTOGRAMMATCHING_H
19 
21 #include "itkHistogramMatchingImageFilter.h"
22 
23 #include "mitkImageAccessByItk.h"
24 #include "mitkRegistrationBase.h"
25 
26 namespace mitk
27 {
38  {
39  public:
41 
45  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
46 
47 
50  void SetNumberOfMatchPoints(int matchPoints);
51 
55  void SetNumberOfHistogramLevels(int histogrammLevels);
56 
60  void SetThresholdAtMeanIntensity(bool on);
61 
65  virtual void GenerateData() override
66  {
67  if (this->GetInput())
68  {
69  AccessByItk(this->GetInput(), GenerateData2);
70  }
71  }
72 
73  protected:
78 
82  virtual ~HistogramMatching();
83 
87  template <typename TPixel, unsigned int VImageDimension>
88  void GenerateData2(const itk::Image<TPixel, VImageDimension> *itkImage1);
89 
93  };
94 
95 } // end namespace
96 #endif // MITKHISTOGRAMMATCHING_H
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
This class performes a histogram matching between the fixed image and moving image to improve the reg...
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
#define AccessByItk(mitkImage, itkImageTypeFunction)
Access a MITK image by an ITK image.
virtual void GenerateData() override
Starts the histogram matching.
This class handles the images for the registration as well as taking care of the progress bar during ...
#define MITKDEFORMABLEREGISTRATION_EXPORT