Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkTwoCompartmentExchangeModelFactoryBase.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 #ifndef mitkTwoCompartmentExchangeModelFactoryBase_h
13 #define mitkTwoCompartmentExchangeModelFactoryBase_h
14 
18 
19 namespace mitk
20 {
30  template <class TModelParameterizer>
32  mitk::ConcreteAIFBasedModelFactory< TModelParameterizer >
33  {
34  public:
37  itkFactorylessNewMacro(Self);
38 
39 
40  typedef typename Superclass::ModelType ModelType;
41  typedef typename Superclass::ModelParameterizerType ModelParameterizerType;
42  typedef typename Superclass::ParametersType ParametersType;
43 
45  {
47 
48  constraints->SetLowerBarrier(ModelType::POSITION_PARAMETER_ve, 0.0);
49  constraints->SetUpperBarrier(ModelType::POSITION_PARAMETER_ve, 1.0);
50  constraints->SetLowerBarrier(ModelType::POSITION_PARAMETER_vp, 0.0);
51  constraints->SetUpperBarrier(ModelType::POSITION_PARAMETER_vp, 1.0);
52 
54  indices.push_back(ModelType::POSITION_PARAMETER_ve);
55  indices.push_back(ModelType::POSITION_PARAMETER_vp);
56 
57  constraints->SetUpperSumBarrier(indices, 1.0);
58 
59  return constraints.GetPointer();
60  };
61 
63  {
64  typename ModelParameterizerType::Pointer modelParameterizer =
65  ModelParameterizerType::New();
66 
67  return modelParameterizer->GetDefaultInitialParameterization();
68  };
69 
70  protected:
71 
73  {
74  };
75 
77  {
78  };
79 
80  private:
81 
82  //No copy constructor allowed
83  TwoCompartmentExchangeModelFactoryBase(const Self& source);
84  void operator=(const Self&); //purposely not implemented
85  };
86 
87 }
88 #endif
Template factory class for AIF-based pharmacokinetic models.
itk::Array< ParameterValueType > ParametersType
Type representing a vector of parameter values.
std::vector< ParameterIndexType > ParameterIndexVectorType
Template base factory for TwoCompartmentExchangeModel variants.
ParametersType GetDefaultInitialParameterization() const override
Returns the default initial parameterization defined by the model developer.
mitkClassMacro(TwoCompartmentExchangeModelFactoryBase, ConcreteAIFBasedModelFactory< TModelParameterizer >)
ConstraintCheckerBase::Pointer CreateDefaultConstraints() const override
Creates default constraints for the model fitting process.
Find image slices visible on a given plane.