Medical Imaging Interaction Toolkit  2024.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 {
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 
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
mitk::TwoTissueCompartmentModelFactoryBase::GetDefaultInitialParameterization
ParametersType GetDefaultInitialParameterization() const override
Definition: mitkTwoTissueCompartmentModelFactoryBase.h:55
mitkAIFBasedModelParameterizerBase.h
mitkSimpleBarrierConstraintChecker.h
mitkConcreteAIFBasedModelFactory.h
itk::SmartPointer< Self >
mitk::TwoTissueCompartmentModelFactoryBase::TwoTissueCompartmentModelFactoryBase
TwoTissueCompartmentModelFactoryBase()
Definition: mitkTwoTissueCompartmentModelFactoryBase.h:65
mitk::TwoTissueCompartmentModelFactoryBase::mitkClassMacro
mitkClassMacro(TwoTissueCompartmentModelFactoryBase, ConcreteAIFBasedModelFactory< TModelParameterizer >)
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::TwoTissueCompartmentModelFactoryBase::CreateDefaultConstraints
ConstraintCheckerBase::Pointer CreateDefaultConstraints() const override
Definition: mitkTwoTissueCompartmentModelFactoryBase.h:34
mitk::TwoTissueCompartmentModelFactoryBase::~TwoTissueCompartmentModelFactoryBase
~TwoTissueCompartmentModelFactoryBase() override
Definition: mitkTwoTissueCompartmentModelFactoryBase.h:69
mitk::ConcreteAIFBasedModelFactory
Definition: mitkConcreteAIFBasedModelFactory.h:22
mitk::TwoTissueCompartmentModelFactoryBase::ParametersType
Superclass::ParametersType ParametersType
Definition: mitkTwoTissueCompartmentModelFactoryBase.h:32
mitk::TwoTissueCompartmentModelFactoryBase
Definition: mitkTwoTissueCompartmentModelFactoryBase.h:22
mitk::TwoTissueCompartmentModelFactoryBase::ModelType
Superclass::ModelType ModelType
Definition: mitkTwoTissueCompartmentModelFactoryBase.h:28
mitk::SimpleBarrierConstraintChecker::New
static Pointer New()
mitk::ModelTraitsInterface::ParametersType
itk::Array< ParameterValueType > ParametersType
Definition: mitkModelTraitsInterface.h:31
mitk::TwoTissueCompartmentModelFactoryBase::ModelParameterizerType
Superclass::ModelParameterizerType ModelParameterizerType
Definition: mitkTwoTissueCompartmentModelFactoryBase.h:31