Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkPixelBasedDescriptionParameterImageGenerator.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 mitkPixelBasedDescriptionParameterImageGenerator_h
14 #define mitkPixelBasedDescriptionParameterImageGenerator_h
15 
16 #include <map>
17 
18 #include <mitkImage.h>
19 
22 
24 
25 namespace mitk
26 {
27 
43  {
44  public:
46 
47  itkNewMacro(Self);
48 
49 
51  typedef std::vector<ParameterImagePixelType> FunctorValueArrayType;
52 
54 
57 
58  itkSetObjectMacro(DynamicImage, Image);
59  itkGetConstObjectMacro(DynamicImage, Image);
60 
61  itkSetObjectMacro(Mask, Image);
62  itkGetConstObjectMacro(Mask, Image);
63 
64  itkSetObjectMacro(Functor, FunctorType);
65  itkGetObjectMacro(Functor, FunctorType);
66 
67  double GetProgress() const override;
68 
69  protected:
71  {
72  m_InternalMask = nullptr;
73  m_Mask = nullptr;
74  m_DynamicImage = nullptr;
75  };
76 
78 
79  template <typename TPixel, unsigned int VDim>
80  void DoParameterCalculation(itk::Image<TPixel, VDim>* image);
81 
82  template <typename TPixel, unsigned int VDim>
83  void DoPrepareMask(itk::Image<TPixel, VDim>* image);
84 
85  void onFitProgressEvent(::itk::Object* caller, const ::itk::EventObject& eventObject);
86 
87  bool HasOutdatedResult() const override;
88  void CheckValidInputs() const override;
90 
91  private:
92  Image::Pointer m_DynamicImage;
93  Image::Pointer m_Mask;
94 
95  typedef itk::Image<unsigned char, 3> InternalMaskType;
96  InternalMaskType::Pointer m_InternalMask;
97 
98  FunctorType::Pointer m_Functor;
99 
100 
101  ParameterImageMapType m_TempResultMap;
102 
103  double m_Progress;
104  };
105 
106 }
107 
108 #endif
#define MITKPHARMACOKINETICS_EXPORT
Functor that aggregates multiple CurveDescriptionParameterBase instances and computes all registered ...
Abstract base class for generators that produce parameter images from curve descriptors.
CurveDescriptionParameterBase::CurveDescriptionParameterNameType ParameterNameType
String type for parameter names.
std::map< ParameterNameType, Image::Pointer > ParameterImageMapType
Map from parameter names to their corresponding output images.
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76
Generates pixel-wise curve descriptor images from a 4D dynamic image.
mitkClassMacro(PixelBasedDescriptionParameterImageGenerator, DescriptionParameterImageGeneratorBase)
DescriptionParameterImageGeneratorBase::ParameterNameType ParameterNameType
void DoParameterCalculationAndGetResults(ParameterImageMapType &parameterImages) override
double GetProgress() const override
Returns the current computation progress as a value between 0.0 and 1.0.
void DoPrepareMask(itk::Image< TPixel, VDim > *image)
void onFitProgressEvent(::itk::Object *caller, const ::itk::EventObject &eventObject)
DescriptionParameterImageGeneratorBase::ParameterImageMapType ParameterImageMapType
void DoParameterCalculation(itk::Image< TPixel, VDim > *image)
Find image slices visible on a given plane.
double ScalarType
Scalar type used throughout MITK for geometric computations.