Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkMultiComponentImageDataComparisonFilter.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 MITKMULTICOMPONENTIMAGEDATACOMPARISONFILTER_H
18 #define MITKMULTICOMPONENTIMAGEDATACOMPARISONFILTER_H
19 
20 // mitk includes
22 #include "mitkImageToImageFilter.h"
23 
24 // struct CompareFilterResults;
25 
26 namespace mitk
27 {
34  {
35  public:
37  itkSimpleNewMacro(Self);
38 
41  void SetTestImage(const Image *_arg);
42  const Image *GetTestImage();
43 
46  void SetValidImage(const Image *_arg);
47  const Image *GetValidImage();
48 
51  itkSetMacro(Tolerance, double);
52  itkGetMacro(Tolerance, double);
53 
56  void SetCompareFilterResult(CompareFilterResults *results);
57 
60  CompareFilterResults *GetCompareFilterResult();
61 
70  bool GetResult(double threshold = 0.0f);
71 
72  protected:
74 
76 
77  virtual void GenerateData() override;
78 
79  template <typename TPixel>
80  void CompareMultiComponentImage(const Image *testImage, const Image *validImage);
81 
82  double m_Tolerance;
84 
86  };
87 } // end namespace mitk
88 
89 #endif // MITKMULTICOMPONENTIMAGEDATACOMPARISONFILTER_H
#define MITKCORE_EXPORT
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Image class for storing images.
Definition: mitkImage.h:76
A simple struct to hold the result of the comparison filter.
Superclass of all classes having one or more Images as input and generating Images as output...
Filter for comparing two multi channel mitk::Image objects by channel wise by pixel values...