Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkExtendedToftsModelFactory.cpp
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 
14 
15 #include <mitkImageTimeSelector.h>
16 #include <mitkImageCast.h>
18 
21 {
23 
24  constraints->SetLowerBarrier(ModelType::POSITION_PARAMETER_ve, 0.0);
25  constraints->SetUpperBarrier(ModelType::POSITION_PARAMETER_ve, 1.0);
26  constraints->SetLowerBarrier(ModelType::POSITION_PARAMETER_vp, 0.0);
27  constraints->SetUpperBarrier(ModelType::POSITION_PARAMETER_vp, 1.0);
28 
30  indices.push_back(ModelType::POSITION_PARAMETER_ve);
31  indices.push_back(ModelType::POSITION_PARAMETER_vp);
32 
33  constraints->SetUpperSumBarrier(indices, 1.0);
34 
35  return constraints.GetPointer();
36 };
37 
40 {
41  return ExtendedToftsModelParameterizer::New()->GetDefaultInitialParameterization();
42 };
43 
45 = default;
46 
48 = default;
std::vector< ParameterIndexType > ParameterIndexVectorType
ParametersType GetDefaultInitialParameterization() const override
ModelBaseType::ParametersType ParametersType
ConstraintCheckerBase::Pointer CreateDefaultConstraints() const override