Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Base Class for all physiological perfusion models using an Aterial Input Function All AIF based models come with an array of AIF values and the corresponding TimeGrid ( AIF(t)) This class provides functions for setting the AIF Values and optionally a specific AIF TimeGrid. It also provides a method for interpolation of the AIF source array to a specified Timegrid that differs from AIFTimeGrid. The AIF must be set with an itk::Array. If no AIFTimeGrid is specified with the Setter, it is assumed that the AIFTimeGrid is the same as the ModelTimegrid (e.g. AIF is derived from data set to be fitted). In this case, AIFvalues must have the same length as ModelTimeGrid, otherwise an exception is generated. More...
#include <mitkAIFBasedModelBase.h>
Static Public Attributes | |
static const std::string | NAME_STATIC_PARAMETER_AIF |
static const std::string | NAME_STATIC_PARAMETER_AIFTimeGrid |
static const std::string | UNIT_STATIC_PARAMETER_AIF |
static const std::string | UNIT_STATIC_PARAMETER_AIFTimeGrid |
Protected Member Functions | |
AIFBasedModelBase () | |
~AIFBasedModelBase () override | |
bool | ValidateModel (std::string &error) const override |
void | PrintSelf (std::ostream &os, ::itk::Indent indent) const override |
void | SetStaticParameter (const ParameterNameType &name, const StaticParameterValuesType &values) override |
StaticParameterValuesType | GetStaticParameterValue (const ParameterNameType &name) const override |
![]() | |
virtual ModelResultType | ComputeModelfunction (const ParametersType ¶meters) const =0 |
virtual DerivedParameterMapType | ComputeDerivedParameters (const ParametersType ¶meters) const |
ModelBase () | |
~ModelBase () override | |
void | PrintSelf (std::ostream &os, ::itk::Indent indent) const override |
![]() | |
ModelTraitsInterface () | |
virtual | ~ModelTraitsInterface () |
Protected Attributes | |
TimeGridType | m_AterialInputFunctionTimeGrid |
AterialInputFunctionType | m_AterialInputFunctionValues |
![]() | |
TimeGridType | m_TimeGrid |
Base Class for all physiological perfusion models using an Aterial Input Function All AIF based models come with an array of AIF values and the corresponding TimeGrid ( AIF(t)) This class provides functions for setting the AIF Values and optionally a specific AIF TimeGrid. It also provides a method for interpolation of the AIF source array to a specified Timegrid that differs from AIFTimeGrid. The AIF must be set with an itk::Array. If no AIFTimeGrid is specified with the Setter, it is assumed that the AIFTimeGrid is the same as the ModelTimegrid (e.g. AIF is derived from data set to be fitted). In this case, AIFvalues must have the same length as ModelTimeGrid, otherwise an exception is generated.
Definition at line 31 of file mitkAIFBasedModelBase.h.
typedef itk::Array<double> mitk::AIFBasedModelBase::AterialInputFunctionType |
Typedef for Aterial InputFunction AIF(t)
Definition at line 52 of file mitkAIFBasedModelBase.h.
typedef itk::SmartPointer< const Self > mitk::AIFBasedModelBase::ConstPointer |
Definition at line 38 of file mitkAIFBasedModelBase.h.
Definition at line 37 of file mitkAIFBasedModelBase.h.
Definition at line 35 of file mitkAIFBasedModelBase.h.
Definition at line 36 of file mitkAIFBasedModelBase.h.
|
protected |
Definition at line 49 of file mitkAIFBasedModelBase.cpp.
|
overrideprotected |
Definition at line 53 of file mitkAIFBasedModelBase.cpp.
const mitk::AIFBasedModelBase::AterialInputFunctionType mitk::AIFBasedModelBase::GetAterialInputFunction | ( | TimeGridType | currentTimeGrid | ) | const |
Returns the Aterial Input function matching currentTimeGrid The original values are interpolated to the passed TimeGrid if currentTimeGrid.Size() = 0 , the Original AIF will be returned
Definition at line 71 of file mitkAIFBasedModelBase.cpp.
References GetCurrentAterialInputFunctionTimeGrid(), mitk::InterpolateSignalToNewTimeGrid(), and m_AterialInputFunctionValues.
Referenced by mitk::OneTissueCompartmentModel::ComputeModelfunction(), mitk::TwoTissueCompartmentFDGModel::ComputeModelfunction(), mitk::ExtendedOneTissueCompartmentModel::ComputeModelfunction(), mitk::TwoTissueCompartmentModel::ComputeModelfunction(), mitk::NumericTwoTissueCompartmentModel::ComputeModelfunction(), mitk::ExtendedToftsModel::ComputeModelfunction(), mitk::StandardToftsModel::ComputeModelfunction(), mitk::TwoCompartmentExchangeModel::ComputeModelfunction(), and mitk::NumericTwoCompartmentExchangeModel::ComputeModelfunction().
|
virtual |
|
virtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented from mitk::ModelBase.
Reimplemented in mitk::NumericTwoCompartmentExchangeModel, mitk::TwoCompartmentExchangeModel, mitk::ExtendedOneTissueCompartmentModel, mitk::ExtendedToftsModel, mitk::OneTissueCompartmentModel, mitk::StandardToftsModel, mitk::NumericTwoTissueCompartmentModel, mitk::TwoTissueCompartmentFDGModel, and mitk::TwoTissueCompartmentModel.
const mitk::AIFBasedModelBase::TimeGridType & mitk::AIFBasedModelBase::GetCurrentAterialInputFunctionTimeGrid | ( | ) | const |
Returns the TimeGrid used for the AIF. Either the externally set AIF time grid or the time grid of the model if nothing is set.
Definition at line 58 of file mitkAIFBasedModelBase.cpp.
References m_AterialInputFunctionTimeGrid, and mitk::ModelBase::m_TimeGrid.
Referenced by GetAterialInputFunction().
|
overridevirtual |
Returns the number of static parameters that will be used when using the model to compute the signal (but are not defined via GetSignal()).
Implements mitk::ModelBase.
Reimplemented in mitk::NumericTwoCompartmentExchangeModel.
Definition at line 94 of file mitkAIFBasedModelBase.cpp.
|
overridevirtual |
Returns the names of static parameters that will be used when using the model to compute the signal (but are not defined via GetSignal()).
Implements mitk::ModelBase.
Reimplemented in mitk::NumericTwoCompartmentExchangeModel.
Definition at line 84 of file mitkAIFBasedModelBase.cpp.
References NAME_STATIC_PARAMETER_AIF, and NAME_STATIC_PARAMETER_AIFTimeGrid.
|
overridevirtual |
Default implementation returns no unit string ("") for every defined parameter.
Reimplemented from mitk::ModelBase.
Definition at line 101 of file mitkAIFBasedModelBase.cpp.
References NAME_STATIC_PARAMETER_AIF, NAME_STATIC_PARAMETER_AIFTimeGrid, UNIT_STATIC_PARAMETER_AIF, and UNIT_STATIC_PARAMETER_AIFTimeGrid.
|
overrideprotectedvirtual |
Helper function called by GetStaticParameters(). Implement in derived classes to realize the concrete retrieval of static parameters.
Implements mitk::ModelBase.
Reimplemented in mitk::NumericTwoCompartmentExchangeModel.
Definition at line 130 of file mitkAIFBasedModelBase.cpp.
References mitk::convertArrayToParameter(), m_AterialInputFunctionTimeGrid, m_AterialInputFunctionValues, NAME_STATIC_PARAMETER_AIF, and NAME_STATIC_PARAMETER_AIFTimeGrid.
|
overridevirtual |
Default implementation returns an empty string.
Reimplemented from mitk::ModelBase.
Definition at line 29 of file mitkAIFBasedModelBase.cpp.
|
overridevirtual |
Default implementation returns an empty string.
Reimplemented from mitk::ModelBase.
Definition at line 34 of file mitkAIFBasedModelBase.cpp.
|
overridevirtual |
Default implementation returns an empty string.
Reimplemented from mitk::ModelBase.
Definition at line 39 of file mitkAIFBasedModelBase.cpp.
|
overridevirtual |
Default implementation returns an empty string.
Reimplemented from mitk::ModelBase.
Definition at line 44 of file mitkAIFBasedModelBase.cpp.
|
overrideprotected |
Definition at line 175 of file mitkAIFBasedModelBase.cpp.
References m_AterialInputFunctionTimeGrid, m_AterialInputFunctionValues, and mitk::ModelBase::PrintSelf().
Referenced by mitk::OneTissueCompartmentModel::PrintSelf(), mitk::TwoTissueCompartmentFDGModel::PrintSelf(), mitk::ExtendedOneTissueCompartmentModel::PrintSelf(), mitk::TwoTissueCompartmentModel::PrintSelf(), mitk::NumericTwoTissueCompartmentModel::PrintSelf(), mitk::ExtendedToftsModel::PrintSelf(), mitk::StandardToftsModel::PrintSelf(), mitk::TwoCompartmentExchangeModel::PrintSelf(), and mitk::NumericTwoCompartmentExchangeModel::PrintSelf().
|
virtual |
Referenced by SetStaticParameter(), and mitk::NumericTwoCompartmentExchangeModel::SetStaticParameter().
|
virtual |
Referenced by SetStaticParameter(), and mitk::NumericTwoCompartmentExchangeModel::SetStaticParameter().
|
overrideprotectedvirtual |
Helper function called by SetStaticParameters(). Implement in derived classes to realize the concrete setting of static parameters.
Implements mitk::ModelBase.
Reimplemented in mitk::NumericTwoCompartmentExchangeModel.
Definition at line 112 of file mitkAIFBasedModelBase.cpp.
References mitk::convertParameterToArray(), NAME_STATIC_PARAMETER_AIF, NAME_STATIC_PARAMETER_AIFTimeGrid, SetAterialInputFunctionTimeGrid(), and SetAterialInputFunctionValues().
|
overrideprotectedvirtual |
Reimplementation that checks if AIF and timegrid settings are valid.
[out] | error | Set internally to indicate the error reason if method returns false. Is used by GetSignal() for the exception comment. |
Reimplemented from mitk::ModelBase.
Definition at line 148 of file mitkAIFBasedModelBase.cpp.
References m_AterialInputFunctionTimeGrid, m_AterialInputFunctionValues, mitk::ModelBase::m_TimeGrid, and mitk::ModelBase::ValidateModel().
|
protected |
Definition at line 100 of file mitkAIFBasedModelBase.h.
Referenced by GetCurrentAterialInputFunctionTimeGrid(), GetStaticParameterValue(), mitk::NumericTwoCompartmentExchangeModel::GetStaticParameterValue(), PrintSelf(), and ValidateModel().
|
protected |
Definition at line 101 of file mitkAIFBasedModelBase.h.
Referenced by GetAterialInputFunction(), GetStaticParameterValue(), mitk::NumericTwoCompartmentExchangeModel::GetStaticParameterValue(), PrintSelf(), and ValidateModel().
|
static |
Definition at line 42 of file mitkAIFBasedModelBase.h.
Referenced by GetStaticParameterNames(), mitk::NumericTwoCompartmentExchangeModel::GetStaticParameterNames(), GetStaticParameterUnits(), GetStaticParameterValue(), mitk::NumericTwoCompartmentExchangeModel::GetStaticParameterValue(), SetStaticParameter(), and mitk::NumericTwoCompartmentExchangeModel::SetStaticParameter().
|
static |
Definition at line 46 of file mitkAIFBasedModelBase.h.
Referenced by GetStaticParameterNames(), mitk::NumericTwoCompartmentExchangeModel::GetStaticParameterNames(), GetStaticParameterUnits(), GetStaticParameterValue(), mitk::NumericTwoCompartmentExchangeModel::GetStaticParameterValue(), SetStaticParameter(), and mitk::NumericTwoCompartmentExchangeModel::SetStaticParameter().
|
static |
Definition at line 48 of file mitkAIFBasedModelBase.h.
Referenced by GetStaticParameterUnits().
|
static |
Definition at line 49 of file mitkAIFBasedModelBase.h.
Referenced by GetStaticParameterUnits().