Medical Imaging Interaction Toolkit  2026.06.00
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 {
36  {
37  public:
40 
46  void SetTestImage(const Image *_arg);
47 
49  const Image *GetTestImage();
50 
56  void SetValidImage(const Image *_arg);
57 
59  const Image *GetValidImage();
60 
67  itkSetMacro(Tolerance, double);
68 
70  itkGetMacro(Tolerance, double);
71 
77 
84 
98  bool GetResult(double threshold = 0.0f);
99 
100  protected:
102 
104 
105  void GenerateData() override;
106 
107  template <typename TPixel>
108  void CompareMultiComponentImage(const Image *testImage, const Image *validImage);
109 
110  double m_Tolerance;
112 
114  };
115 } // end namespace mitk
116 
117 #endif
#define MITKCORE_EXPORT
Superclass of all classes having one or more Images as input and generating Images as output.
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76
Filter for comparing two multi-channel mitk::Image objects by pixel values.
void SetValidImage(const Image *_arg)
Set the valid (reference) image for comparison.
void CompareMultiComponentImage(const Image *testImage, const Image *validImage)
mitkClassMacro(MultiComponentImageDataComparisonFilter, ImageToImageFilter)
bool GetResult(double threshold=0.0f)
Get the overall result of the comparison.
const Image * GetTestImage()
Get the test image.
const Image * GetValidImage()
Get the valid (reference) image.
CompareFilterResults * GetCompareFilterResult()
Get the detailed results of the comparison run.
void SetTestImage(const Image *_arg)
Set the test image to compare against the valid (reference) image.
void SetCompareFilterResult(CompareFilterResults *results)
Set a CompareFilterResults struct to receive detailed comparison results.
Find image slices visible on a given plane.
Holds the detailed results of a CompareImageDataFilter comparison.