Medical Imaging Interaction Toolkit  2025.12.02
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 mitkModelFitResultHelper_h
14 #define mitkModelFitResultHelper_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 
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 
54 
55  MITKMODELFIT_EXPORT void StoreResultsInDataStorage(DataStorage* storage, const ModelFitResultNodeVectorType& resultNodes, DataNode* parentNode = nullptr);
56 
57  }
58 
59 }
60 
61 #endif
#define MITKMODELFIT_EXPORT
Base of all data objects.
Definition: mitkBaseData.h:44
Class for nodes of the DataTree.
Definition: mitkDataNode.h:64
Data management class that handles 'was created by' relations.
Image class for storing images.
Definition: mitkImage.h:70
ModelTraitsInterface::ParameterNameType ParameterNameType
Definition: mitkModelBase.h:63
Data class that stores all information about a modelfit that is relevant to the visualization and sto...
MITKMODELFIT_EXPORT ModelFitResultNodeVectorType CreateResultNodeMap(const ModelFitResultImageMapType &results, const ModelFitResultImageMapType &derivedResults, const ModelFitResultImageMapType &criterionResults, const ModelFitResultImageMapType &evaluationResults, const ModelFitInfo *fitInfo)
MITKMODELFIT_EXPORT DataNode::Pointer CreateResultNode(const ModelBase::ParameterNameType &name, modelFit::Parameter::Type nodeType, Image *parameterImage, const ModelFitInfo *modelFitInfo)
MITKMODELFIT_EXPORT void StoreResultsInDataStorage(DataStorage *storage, const ModelFitResultNodeVectorType &resultNodes, DataNode *parentNode=nullptr)
MITKMODELFIT_EXPORT mitk::ScalarListLookupTableProperty::Pointer ConvertStaticParametersToProperty(const mitk::modelFit::StaticParameterMap &params)
std::map< ModelBase::ParameterNameType, Image::Pointer > ModelFitResultImageMapType
std::vector< DataNode::Pointer > ModelFitResultNodeVectorType
MITKMODELFIT_EXPORT void SetModelFitDataProperties(mitk::BaseData *data, const ModelBase::ParameterNameType &name, modelFit::Parameter::Type dataType, const modelFit::ModelFitInfo *fitInfo)
Find image slices visible on a given plane.