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