Medical Imaging Interaction Toolkit  2025.12.02
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkMultiComponentImageDataComparisonFilter_h
14 #define mitkMultiComponentImageDataComparisonFilter_h
15 
16 // mitk includes
18 #include "mitkImageToImageFilter.h"
19 
20 // struct CompareFilterResults;
21 
22 namespace mitk
23 {
30  {
31  public:
34 
37  void SetTestImage(const Image *_arg);
38  const Image *GetTestImage();
39 
42  void SetValidImage(const Image *_arg);
43  const Image *GetValidImage();
44 
47  itkSetMacro(Tolerance, double);
48  itkGetMacro(Tolerance, double);
49 
53 
57 
66  bool GetResult(double threshold = 0.0f);
67 
68  protected:
70 
72 
73  void GenerateData() override;
74 
75  template <typename TPixel>
76  void CompareMultiComponentImage(const Image *testImage, const Image *validImage);
77 
78  double m_Tolerance;
80 
82  };
83 } // end namespace mitk
84 
85 #endif
#define MITKCORE_EXPORT
Superclass of all classes generating Images (instances of class Image) as output.
Superclass of all classes having one or more Images as input and generating Images as output.
Image class for storing images.
Definition: mitkImage.h:70
Filter for comparing two multi channel mitk::Image objects by channel wise by pixel values.
void CompareMultiComponentImage(const Image *testImage, const Image *validImage)
CompareFilterResults * GetCompareFilterResult()
void SetCompareFilterResult(CompareFilterResults *results)
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
Find image slices visible on a given plane.
A simple struct to hold the result of the comparison filter.