Medical Imaging Interaction Toolkit  2026.06.00
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 class of all data objects.
Definition: mitkBaseData.h:60
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
Abstract data management class that organizes DataNode objects in a directed acyclic graph.
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76
ModelTraitsInterface::ParameterNameType ParameterNameType
Definition: mitkModelBase.h:71
Data class that stores all information about a model fit relevant to visualization.
Data structure that stores information about the static parameters of a model fit.
Declares the ScalarListLookupTableProperty, a mitk::GenericProperty wrapping a ScalarListLookupTable ...
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.