Medical Imaging Interaction Toolkit  2018.4.99-9a29ffc6
Medical Imaging Interaction Toolkit
MRPerfusionMiniApp.cpp File Reference

Go to the source code of this file.

Functions

bool useConstraints (false)
 
bool verbose (false)
 
bool roibased (false)
 
bool preview (false)
 
float aifHematocritLevel (0)
 
float brixInjectionTime (0)
 
void onFitEvent (::itk::Object *caller, const itk::EventObject &event, void *)
 
void setupParser (mitkCommandLineParser &parser)
 
bool configureApplicationSettings (std::map< std::string, us::Any > parsedArgs)
 
mitk::ModelFitFunctorBase::Pointer createDefaultFitFunctor (const mitk::ModelParameterizerBase *parameterizer, const mitk::ModelFactoryBase *modelFactory)
 
mitk::Image::Pointer getMask3D ()
 
void getAIF (mitk::AIFBasedModelBase::AterialInputFunctionType &aif, mitk::AIFBasedModelBase::AterialInputFunctionType &aifTimeGrid)
 
void generateDescriptiveBrixModel_PixelBased (mitk::modelFit::ModelFitInfo::Pointer &modelFitInfo, mitk::ParameterFitImageGeneratorBase::Pointer &generator)
 
void generateDescriptiveBrixModel_ROIBased (mitk::modelFit::ModelFitInfo::Pointer &modelFitInfo, mitk::ParameterFitImageGeneratorBase::Pointer &generator)
 
template<typename TParameterizer , typename TFactory >
void GenerateLinearModelFit_PixelBased (mitk::modelFit::ModelFitInfo::Pointer &modelFitInfo, mitk::ParameterFitImageGeneratorBase::Pointer &generator)
 
template<typename TParameterizer , typename TFactory >
void GenerateLinearModelFit_ROIBased (mitk::modelFit::ModelFitInfo::Pointer &modelFitInfo, mitk::ParameterFitImageGeneratorBase::Pointer &generator)
 
template<typename TParameterizer , typename TFactory >
void generateAIFbasedModelFit_PixelBased (mitk::modelFit::ModelFitInfo::Pointer &modelFitInfo, mitk::ParameterFitImageGeneratorBase::Pointer &generator)
 
template<typename TParameterizer , typename TFactory >
void generateAIFbasedModelFit_ROIBased (mitk::modelFit::ModelFitInfo::Pointer &modelFitInfo, mitk::ParameterFitImageGeneratorBase::Pointer &generator)
 
void storeResultImage (const std::string &name, mitk::Image *image, mitk::modelFit::Parameter::Type nodeType, const mitk::modelFit::ModelFitInfo *modelFitInfo)
 
void createFitGenerator (mitk::modelFit::ModelFitInfo::Pointer &fitSession, mitk::ParameterFitImageGeneratorBase::Pointer &generator)
 
void doFitting ()
 
void doPreview ()
 
int main (int argc, char *argv[])
 

Variables

std::string inFilename
 
std::string outFileName
 
std::string maskFileName
 
std::string aifMaskFileName
 
std::string aifImageFileName
 
mitk::Image::Pointer image
 
mitk::Image::Pointer mask
 
mitk::Image::Pointer aifImage
 
mitk::Image::Pointer aifMask
 
std::string modelName
 
const std::string MODEL_NAME_2SL
 
const std::string MODEL_NAME_3SL
 
const std::string MODEL_NAME_descriptive
 
const std::string MODEL_NAME_tofts
 
const std::string MODEL_NAME_2CX
 

Function Documentation

◆ aifHematocritLevel()

float aifHematocritLevel ( )

◆ brixInjectionTime()

◆ configureApplicationSettings()

bool configureApplicationSettings ( std::map< std::string, us::Any parsedArgs)

◆ createDefaultFitFunctor()

◆ createFitGenerator()

void createFitGenerator ( mitk::modelFit::ModelFitInfo::Pointer &  fitSession,
mitk::ParameterFitImageGeneratorBase::Pointer &  generator 
)

◆ doFitting()

void doFitting ( )

◆ doPreview()

void doPreview ( )

◆ generateAIFbasedModelFit_PixelBased()

template<typename TParameterizer , typename TFactory >
void generateAIFbasedModelFit_PixelBased ( mitk::modelFit::ModelFitInfo::Pointer &  modelFitInfo,
mitk::ParameterFitImageGeneratorBase::Pointer &  generator 
)

◆ generateAIFbasedModelFit_ROIBased()

template<typename TParameterizer , typename TFactory >
void generateAIFbasedModelFit_ROIBased ( mitk::modelFit::ModelFitInfo::Pointer &  modelFitInfo,
mitk::ParameterFitImageGeneratorBase::Pointer &  generator 
)

◆ generateDescriptiveBrixModel_PixelBased()

◆ generateDescriptiveBrixModel_ROIBased()

◆ GenerateLinearModelFit_PixelBased()

template<typename TParameterizer , typename TFactory >
void GenerateLinearModelFit_PixelBased ( mitk::modelFit::ModelFitInfo::Pointer &  modelFitInfo,
mitk::ParameterFitImageGeneratorBase::Pointer &  generator 
)

◆ GenerateLinearModelFit_ROIBased()

template<typename TParameterizer , typename TFactory >
void GenerateLinearModelFit_ROIBased ( mitk::modelFit::ModelFitInfo::Pointer &  modelFitInfo,
mitk::ParameterFitImageGeneratorBase::Pointer &  generator 
)

◆ getAIF()

◆ getMask3D()

mitk::Image::Pointer getMask3D ( )

Helper that ensures that the mask (if it exists) is always 3D image. If the mask is originally an 4D image, the first time step will be used.

Definition at line 246 of file MRPerfusionMiniApp.cpp.

References mask, MITK_INFO, and mitk::ImageTimeSelector::New().

Referenced by generateAIFbasedModelFit_PixelBased(), generateAIFbasedModelFit_ROIBased(), generateDescriptiveBrixModel_PixelBased(), generateDescriptiveBrixModel_ROIBased(), GenerateLinearModelFit_PixelBased(), and GenerateLinearModelFit_ROIBased().

◆ main()

◆ onFitEvent()

void onFitEvent ( ::itk::Object *  caller,
const itk::EventObject &  event,
void *   
)

Definition at line 80 of file MRPerfusionMiniApp.cpp.

References mitk::ParameterFitImageGeneratorBase::GetProgress().

Referenced by doFitting().

◆ preview()

bool preview ( false  )

◆ roibased()

bool roibased ( false  )

◆ setupParser()

◆ storeResultImage()

void storeResultImage ( const std::string &  name,
mitk::Image image,
mitk::modelFit::Parameter::Type  nodeType,
const mitk::modelFit::ModelFitInfo modelFitInfo 
)

◆ useConstraints()

bool useConstraints ( false  )

◆ verbose()

bool verbose ( false  )

Variable Documentation

◆ aifImage

Definition at line 61 of file MRPerfusionMiniApp.cpp.

Referenced by getAIF().

◆ aifImageFileName

std::string aifImageFileName

Definition at line 57 of file MRPerfusionMiniApp.cpp.

Referenced by configureApplicationSettings(), and main().

◆ aifMask

Definition at line 62 of file MRPerfusionMiniApp.cpp.

Referenced by getAIF().

◆ aifMaskFileName

std::string aifMaskFileName

Definition at line 56 of file MRPerfusionMiniApp.cpp.

Referenced by configureApplicationSettings(), and main().

◆ image

Definition at line 59 of file MRPerfusionMiniApp.cpp.

Referenced by getAIF().

◆ inFilename

std::string inFilename

Definition at line 53 of file MRPerfusionMiniApp.cpp.

Referenced by configureApplicationSettings(), and main().

◆ mask

Definition at line 60 of file MRPerfusionMiniApp.cpp.

Referenced by getMask3D().

◆ maskFileName

std::string maskFileName

Definition at line 55 of file MRPerfusionMiniApp.cpp.

Referenced by configureApplicationSettings(), and main().

◆ MODEL_NAME_2CX

const std::string MODEL_NAME_2CX

Definition at line 78 of file MRPerfusionMiniApp.cpp.

Referenced by createFitGenerator(), and setupParser().

◆ MODEL_NAME_2SL

const std::string MODEL_NAME_2SL

Definition at line 74 of file MRPerfusionMiniApp.cpp.

Referenced by createFitGenerator().

◆ MODEL_NAME_3SL

const std::string MODEL_NAME_3SL

Definition at line 75 of file MRPerfusionMiniApp.cpp.

Referenced by createFitGenerator(), main(), and setupParser().

◆ MODEL_NAME_descriptive

const std::string MODEL_NAME_descriptive

Definition at line 76 of file MRPerfusionMiniApp.cpp.

Referenced by createFitGenerator(), main(), and setupParser().

◆ MODEL_NAME_tofts

const std::string MODEL_NAME_tofts

◆ modelName

std::string modelName

◆ outFileName

std::string outFileName