Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
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 MITKTWOTISSUECOMPARTMENTFACTORYBASE_H
13 #define MITKTWOTISSUECOMPARTMENTFACTORYBASE_H
14 
18 
19 namespace mitk
20 {
21  template <class TModelParameterizer>
23  mitk::ConcreteAIFBasedModelFactory< TModelParameterizer >
24  {
25  public:
28  itkFactorylessNewMacro(Self);
29 
30  typedef typename Superclass::ModelType ModelType;
31  typedef typename Superclass::ModelParameterizerType ModelParameterizerType;
32  typedef typename Superclass::ParametersType ParametersType;
33 
35  {
37 
39  constraints->SetLowerBarrier(ModelType::POSITION_PARAMETER_K1, 0, 0);
40  constraints->SetLowerBarrier(ModelType::POSITION_PARAMETER_k2, 0, 0);
41  constraints->SetLowerBarrier(ModelType::POSITION_PARAMETER_k3, 0, 0);
42  constraints->SetLowerBarrier(ModelType::POSITION_PARAMETER_k4, 0, 0);
43  constraints->SetLowerBarrier(ModelType::POSITION_PARAMETER_VB, 0, 0);
44  constraints->SetUpperBarrier(ModelType::POSITION_PARAMETER_VB, 1, 0);
45 
46  constraints->SetUpperBarrier(ModelType::POSITION_PARAMETER_K1, 1.0, 0);
47  constraints->SetUpperBarrier(ModelType::POSITION_PARAMETER_k2, 1.0, 0);
48  constraints->SetUpperBarrier(ModelType::POSITION_PARAMETER_k3, 1.0, 0);
49  constraints->SetUpperBarrier(ModelType::POSITION_PARAMETER_k4, 1.0, 0);
50 
51 
52  return constraints.GetPointer();
53  };
54 
55  ParametersType GetDefaultInitialParameterization() const override
56  {
57  typename ModelParameterizerType::Pointer modelParameterizer =
58  ModelParameterizerType::New();
59 
60  return modelParameterizer->GetDefaultInitialParameterization();
61  };
62 
63  protected:
64 
66  {
67  };
68 
70  {
71  };
72 
73  private:
74 
75  //No copy constructor allowed
76  TwoTissueCompartmentModelFactoryBase(const Self& source);
77  void operator=(const Self&); //purposely not implemented
78  };
79 
80 }
81 #endif // MITKTWOCOMPARTMENTEXCHANGEMODELFACTORY_H
mitkClassMacro(TwoTissueCompartmentModelFactoryBase, ConcreteAIFBasedModelFactory< TModelParameterizer >)
DataCollection - Class to facilitate loading/accessing structured data.
ConstraintCheckerBase::Pointer CreateDefaultConstraints() const override