Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
Classes | |
class | ModelFitException |
Class-specific exception for modelfits. More... | |
class | ModelFitInfo |
Data class that stores all information about a modelfit that is relevant to the visualization and stored as properties in the result nodes. More... | |
class | Parameter |
class | StaticParameterMap |
Typedefs | |
typedef std::set< ModelFitInfo::UIDType > | NodeUIDSetType |
typedef std::map< ModelBase::ParameterNameType, Image::Pointer > | ModelFitResultImageMapType |
typedef std::vector< DataNode::Pointer > | ModelFitResultNodeVectorType |
Functions | |
const MITKMODELFIT_EXPORT std::string | GetMandatoryProperty (const mitk::DataNode *node, const std::string &prop) |
Reads the string property with the given name from the data of the given node and returns its value. Throws a ModelFitException if the property doesn't exist. More... | |
const MITKMODELFIT_EXPORT std::string | GetMandatoryProperty (const mitk::BaseData *data, const std::string &prop) |
Reads the string property with the given name from the given base data and returns its value. Throws a ModelFitException if the property doesn't exist. More... | |
MITKMODELFIT_EXPORT ModelFitInfo::Pointer | CreateFitInfoFromNode (const ModelFitInfo::UIDType &uid, const mitk::DataStorage *storage) |
Creates a new ModelFitInfo instance from the nodes in the passed storage. The fit will be identified by the passed UID. Returns the instance on success. More... | |
MITKMODELFIT_EXPORT ModelFitInfo::Pointer | CreateFitInfoFromModelParameterizer (const ModelParameterizerBase *usedParameterizer, mitk::BaseData *inputImage, const std::string &fitType, const std::string &fitName="", const ModelFitInfo::UIDType &roiUID="") |
MITKMODELFIT_EXPORT ModelFitInfo::Pointer | CreateFitInfoFromModelParameterizer (const ModelParameterizerBase *usedParameterizer, mitk::BaseData *inputImage, const std::string &fitType, const ScalarListLookupTable &inputData, const std::string &fitName="", const ModelFitInfo::UIDType &roiUID="") |
MITKMODELFIT_EXPORT DataStorage::SetOfObjects::ConstPointer | GetNodesOfFit (const ModelFitInfo::UIDType &fitUID, const mitk::DataStorage *storage) |
MITKMODELFIT_EXPORT NodeUIDSetType | GetFitUIDsOfNode (const mitk::DataNode *node, const mitk::DataStorage *storage) |
MITKMODELFIT_EXPORT Parameter::Pointer | ExtractParameterFromData (const mitk::BaseData *data) |
MITKMODELFIT_EXPORT void | SetModelFitDataProperties (mitk::BaseData *data, const ModelBase::ParameterNameType &name, modelFit::Parameter::Type dataType, const modelFit::ModelFitInfo *fitInfo) |
MITKMODELFIT_EXPORT mitk::ScalarListLookupTableProperty::Pointer | ConvertStaticParametersToProperty (const mitk::modelFit::StaticParameterMap ¶ms) |
MITKMODELFIT_EXPORT DataNode::Pointer | CreateResultNode (const ModelBase::ParameterNameType &name, modelFit::Parameter::Type nodeType, Image *parameterImage, const ModelFitInfo *modelFitInfo) |
MITKMODELFIT_EXPORT ModelFitResultNodeVectorType | CreateResultNodeMap (const ModelFitResultImageMapType &results, const ModelFitResultImageMapType &derivedResults, const ModelFitResultImageMapType &criterionResults, const ModelFitResultImageMapType &evaluationResults, const ModelFitInfo *fitInfo) |
MITKMODELFIT_EXPORT void | StoreResultsInDataStorage (DataStorage *storage, const ModelFitResultNodeVectorType &resultNodes, DataNode *parentNode=nullptr) |
bool | operator< (const StaticParameterMap::ValueType &a, const StaticParameterMap::ValueType &b) |
Compares two var lists and returns true if the first list's first item is lower than the second one's. More... | |
typedef std::map<ModelBase::ParameterNameType,Image::Pointer> mitk::modelFit::ModelFitResultImageMapType |
Definition at line 34 of file mitkModelFitResultHelper.h.
typedef std::vector<DataNode::Pointer> mitk::modelFit::ModelFitResultNodeVectorType |
Definition at line 37 of file mitkModelFitResultHelper.h.
typedef std::set<ModelFitInfo::UIDType> mitk::modelFit::NodeUIDSetType |
Definition at line 183 of file mitkModelFitInfo.h.
MITKMODELFIT_EXPORT mitk::ScalarListLookupTableProperty::Pointer mitk::modelFit::ConvertStaticParametersToProperty | ( | const mitk::modelFit::StaticParameterMap & | params | ) |
MITKMODELFIT_EXPORT ModelFitInfo::Pointer mitk::modelFit::CreateFitInfoFromModelParameterizer | ( | const ModelParameterizerBase * | usedParameterizer, |
mitk::BaseData * | inputImage, | ||
const std::string & | fitType, | ||
const ScalarListLookupTable & | inputData, | ||
const std::string & | fitName = "" , |
||
const ModelFitInfo::UIDType & | roiUID = "" |
||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Overloaded version that allows additional definition of optional input data for the fit.
MITKMODELFIT_EXPORT ModelFitInfo::Pointer mitk::modelFit::CreateFitInfoFromModelParameterizer | ( | const ModelParameterizerBase * | usedParameterizer, |
mitk::BaseData * | inputImage, | ||
const std::string & | fitType, | ||
const std::string & | fitName = "" , |
||
const ModelFitInfo::UIDType & | roiUID = "" |
||
) |
creates a new ModelFitInfo instance from a passed modal instance and his traits instance*
usedParameterizer | Pointer to a model which was used for a fit, which should get a fit info created. |
inputImage | Pointer to the input image. If it has no UID yet, a property will be added to the node. |
fitType | String identifying the type of the fit (e.g. ROI based or voxel based) |
fitName | Optional human readable name of the fit. |
roiUID | UID of the ROI, if one was used. |
MITKMODELFIT_EXPORT ModelFitInfo::Pointer mitk::modelFit::CreateFitInfoFromNode | ( | const ModelFitInfo::UIDType & | uid, |
const mitk::DataStorage * | storage | ||
) |
Creates a new ModelFitInfo instance from the nodes in the passed storage. The fit will be identified by the passed UID. Returns the instance on success.
uid | The uid of the fit that should get its ModelFitInfo created and which identifies the nodes in the storage. |
storage | Pointer to the data storage containing any potential relevantThe nodes. |
MITKMODELFIT_EXPORT DataNode::Pointer mitk::modelFit::CreateResultNode | ( | const ModelBase::ParameterNameType & | name, |
modelFit::Parameter::Type | nodeType, | ||
Image * | parameterImage, | ||
const ModelFitInfo * | modelFitInfo | ||
) |
MITKMODELFIT_EXPORT ModelFitResultNodeVectorType mitk::modelFit::CreateResultNodeMap | ( | const ModelFitResultImageMapType & | results, |
const ModelFitResultImageMapType & | derivedResults, | ||
const ModelFitResultImageMapType & | criterionResults, | ||
const ModelFitResultImageMapType & | evaluationResults, | ||
const ModelFitInfo * | fitInfo | ||
) |
MITKMODELFIT_EXPORT Parameter::Pointer mitk::modelFit::ExtractParameterFromData | ( | const mitk::BaseData * | data | ) |
Extracts the parameter information stored in the data instance and returns it as parameter instance. If the data does not encode an parameter/fit result a Null pointer will be returned.
data | The data instance that contains parameter information that should be extracted. |
MITKMODELFIT_EXPORT NodeUIDSetType mitk::modelFit::GetFitUIDsOfNode | ( | const mitk::DataNode * | node, |
const mitk::DataStorage * | storage | ||
) |
Returns the UIDs of all fits that are derived (directly or indirectly from the passed node).
node | The node which defines the parent node. It will be searched in his derived nodes for fits. |
storage | Pointer to the data storage containing any potential relevant nodes. |
const MITKMODELFIT_EXPORT std::string mitk::modelFit::GetMandatoryProperty | ( | const mitk::BaseData * | data, |
const std::string & | prop | ||
) |
Reads the string property with the given name from the given base data and returns its value. Throws a ModelFitException if the property doesn't exist.
data | The data whose property value should be returned. |
prop | The name of the property that should be read. |
ModelFitException | If the property doesn't exist or returns an empty string. |
const MITKMODELFIT_EXPORT std::string mitk::modelFit::GetMandatoryProperty | ( | const mitk::DataNode * | node, |
const std::string & | prop | ||
) |
Reads the string property with the given name from the data of the given node and returns its value. Throws a ModelFitException if the property doesn't exist.
node | The node whose property value should be returned. |
prop | The name of the property that should be read. |
ModelFitException | If the property doesn't exist or returns an empty string. |
MITKMODELFIT_EXPORT DataStorage::SetOfObjects::ConstPointer mitk::modelFit::GetNodesOfFit | ( | const ModelFitInfo::UIDType & | fitUID, |
const mitk::DataStorage * | storage | ||
) |
Returns all nodes that belong to the fit indicated by the passed UID.
fitUID | The uid of the fit that is relevant for the query. |
storage | Pointer to the data storage containing any potential relevant nodes. |
|
inline |
Compares two var lists and returns true if the first list's first item is lower than the second one's.
a | The first list to compare the other one to. |
b | The other list to compare the first one to. |
Definition at line 139 of file mitkModelFitStaticParameterMap.h.
MITKMODELFIT_EXPORT void mitk::modelFit::SetModelFitDataProperties | ( | mitk::BaseData * | data, |
const ModelBase::ParameterNameType & | name, | ||
modelFit::Parameter::Type | dataType, | ||
const modelFit::ModelFitInfo * | fitInfo | ||
) |
Helper function that sets the properties of the passed base data according to the given model fit info instance and parameter specification.
data | Instance that properties should be configured. |
name | Name of the parameter this data instance represents. |
dataType | Type of the parameter this data instance represents. |
fitInfo | Instance to the fit info that containes the information of the fit that derived the parameter. |
MITKMODELFIT_EXPORT void mitk::modelFit::StoreResultsInDataStorage | ( | DataStorage * | storage, |
const ModelFitResultNodeVectorType & | resultNodes, | ||
DataNode * | parentNode = nullptr |
||
) |