13 #ifndef mitkPixelBasedParameterFitImageGenerator_h
14 #define mitkPixelBasedParameterFitImageGenerator_h
58 itkSetObjectMacro(DynamicImage,
Image);
59 itkGetConstObjectMacro(DynamicImage,
Image);
61 itkSetObjectMacro(Mask,
Image);
62 itkGetConstObjectMacro(Mask,
Image);
70 itkSetMacro(TimeGridByParameterizer,
bool);
71 itkGetMacro(TimeGridByParameterizer,
bool);
72 itkBooleanMacro(TimeGridByParameterizer);
74 double GetProgress()
const override;
87 m_InternalMask =
nullptr;
89 m_DynamicImage =
nullptr;
94 template <
typename TPixel,
unsigned int VDim>
95 void DoParameterFit(itk::Image<TPixel, VDim>* image);
97 template <
typename TPixel,
unsigned int VDim>
98 void DoPrepareMask(itk::Image<TPixel, VDim>* image);
100 void onFitProgressEvent(::itk::Object* caller, const ::itk::EventObject& eventObject);
102 bool HasOutdatedResult()
const override;
103 void CheckValidInputs()
const override;
104 void DoFitAndGetResults(ParameterImageMapType& parameterImages, ParameterImageMapType& derivedParameterImages, ParameterImageMapType& criterionImages, ParameterImageMapType& evaluationParameterImages)
override;
110 typedef itk::Image<unsigned char, 3> InternalMaskType;
111 InternalMaskType::Pointer m_InternalMask;
113 FitFunctorType::Pointer m_FitFunctor;
115 ParameterizerType::Pointer m_ModelParameterizer;
117 ParameterImageMapType m_TempResultMap;
118 ParameterImageMapType m_TempDerivedResultMap;
119 ParameterImageMapType m_TempEvaluationResultMap;
120 ParameterImageMapType m_TempCriterionResultMap;
125 bool m_TimeGridByParameterizer;