Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkModelFitResultHelper.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 
13 #ifndef __MITK_MODEL_FIT_RESULT_HELPER_H_
14 #define __MITK_MODEL_FIT_RESULT_HELPER_H_
15 
16 #include <mitkImage.h>
17 #include <mitkDataNode.h>
18 
20 #include "mitkModelBase.h"
21 #include "mitkModelFitParameter.h"
23 
24 #include "MitkModelFitExports.h"
25 
26 namespace mitk
27 {
28  class DataStorage;
29  class ModelTraitsInterface;
30  class ModelBase;
31 
32  namespace modelFit
33  {
34  class ModelFitInfo;
35 
36  typedef std::map<ModelBase::ParameterNameType,Image::Pointer> ModelFitResultImageMapType;
37  typedef std::vector<DataNode::Pointer> ModelFitResultNodeVectorType;
38 
47  MITKMODELFIT_EXPORT void SetModelFitDataProperties(mitk::BaseData* data, const ModelBase::ParameterNameType& name, modelFit::Parameter::Type dataType, const modelFit::ModelFitInfo* fitInfo);
48 
49  MITKMODELFIT_EXPORT mitk::ScalarListLookupTableProperty::Pointer ConvertStaticParametersToProperty(const mitk::modelFit::StaticParameterMap& params);
50 
51  MITKMODELFIT_EXPORT DataNode::Pointer CreateResultNode(const ModelBase::ParameterNameType& name, modelFit::Parameter::Type nodeType, Image* parameterImage, const ModelFitInfo* modelFitInfo);
52 
53  MITKMODELFIT_EXPORT ModelFitResultNodeVectorType CreateResultNodeMap(const ModelFitResultImageMapType& results, const ModelFitResultImageMapType& derivedResults, const ModelFitResultImageMapType& criterionResults, const ModelFitResultImageMapType& evaluationResults, const ModelFitInfo* fitInfo);
54 
55  MITKMODELFIT_EXPORT void StoreResultsInDataStorage(DataStorage* storage, const ModelFitResultNodeVectorType& resultNodes, DataNode* parentNode = nullptr);
56 
57  }
58 
59 }
60 
61 #endif
Data management class that handles &#39;was created by&#39; relations.
std::map< ModelBase::ParameterNameType, Image::Pointer > ModelFitResultImageMapType
MITKMODELFIT_EXPORT void StoreResultsInDataStorage(DataStorage *storage, const ModelFitResultNodeVectorType &resultNodes, DataNode *parentNode=nullptr)
Base of all data objects.
Definition: mitkBaseData.h:37
MITKMODELFIT_EXPORT mitk::ScalarListLookupTableProperty::Pointer ConvertStaticParametersToProperty(const mitk::modelFit::StaticParameterMap &params)
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKMODELFIT_EXPORT
MITKMODELFIT_EXPORT DataNode::Pointer CreateResultNode(const ModelBase::ParameterNameType &name, modelFit::Parameter::Type nodeType, Image *parameterImage, const ModelFitInfo *modelFitInfo)
MITKMODELFIT_EXPORT void SetModelFitDataProperties(mitk::BaseData *data, const ModelBase::ParameterNameType &name, modelFit::Parameter::Type dataType, const modelFit::ModelFitInfo *fitInfo)
Image class for storing images.
Definition: mitkImage.h:72
std::vector< DataNode::Pointer > ModelFitResultNodeVectorType
MITKMODELFIT_EXPORT ModelFitResultNodeVectorType CreateResultNodeMap(const ModelFitResultImageMapType &results, const ModelFitResultImageMapType &derivedResults, const ModelFitResultImageMapType &criterionResults, const ModelFitResultImageMapType &evaluationResults, const ModelFitInfo *fitInfo)
Data class that stores all information about a modelfit that is relevant to the visualization and sto...
ModelTraitsInterface::ParameterNameType ParameterNameType
Definition: mitkModelBase.h:63
Class for nodes of the DataTree.
Definition: mitkDataNode.h:64