Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkGenericParamModelFactory.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 
15 
17 = default;
18 
20 = default;
21 
24 {
25  return GenericParamModelParameterizer::New()->GetDefaultInitialParameterization();
26 };
27 
28 
31  const mitk::modelFit::ModelFitInfo* fit) const
32 {
34 
35  GenericParamModelParameterizer::Pointer modelParameterizer =
37 
38  auto paramCount = fit->staticParamMap.Get(
40  modelParameterizer->SetNumberOfParameters(paramCount[0]);
41 
42  result = modelParameterizer.GetPointer();
43 
44  return result;
45 };
StaticParameterMap staticParamMap
static const std::string NAME_STATIC_PARAMETER_number
const ValueType & Get(const std::string &name) const
Returns the values of the given variable name.
Data class that stores all information about a modelfit that is relevant to the visualization and sto...
ModelParameterizerBase::Pointer DoCreateParameterizer(const modelFit::ModelFitInfo *fit) const override
ParametersType GetDefaultInitialParameterization() const override
ModelBaseType::ParametersType ParametersType