Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
Medical Imaging Interaction Toolkit
mitkAIFParametrizerHelper.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 
16 {
18  for(itk::Array<double>::const_iterator pos = array.begin(); pos != array.end(); ++pos)
19  {
20  parameter.push_back(*pos);
21  }
22  return parameter;
23 }
24 
26 {
27  itk::Array<double> array(parameter.size());
28  array.fill(0.0);
29  itk::Array<double>::iterator arrayPos = array.begin();
30  for(ModelBase::StaticParameterValuesType::const_iterator pos = parameter.begin(); pos != parameter.end(); ++pos, ++arrayPos)
31  {
32  *arrayPos = *pos;
33  }
34  return array;
35 }
MITKPHARMACOKINETICS_EXPORT ModelBase::StaticParameterValuesType convertArrayToParameter(itk::Array< double > array)
std::vector< StaticParameterValueType > StaticParameterValuesType
Definition: mitkModelBase.h:71
MITKPHARMACOKINETICS_EXPORT itk::Array< double > convertParameterToArray(ModelBase::StaticParameterValuesType)