Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file. 1 #ifndef QmitkTotalSegmentatorToolGUI_h_Included
2 #define QmitkTotalSegmentatorToolGUI_h_Included
7 #include "ui_QmitkTotalSegmentatorGUIControls.h"
11 #include <QStandardPaths>
25 QString(
"scipy==1.9.1"),
26 QString(
"urllib3==1.26.15")};
29 const QString baseDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QDir::separator()
30 + qApp->organizationName() + QDir::separator())
47 itkFactorylessNewMacro(Self);
55 void OnPreviewBtnClicked();
60 void OnPythonPathChanged(
const QString &);
65 QString OnSystemPythonChanged(
const QString &);
70 void OnInstallBtnClicked();
75 void OnOverrideChecked(
int);
80 void OnClearInstall();
98 void AutoParsePythonPaths();
105 bool IsTotalSegmentatorInstalled(
const QString &);
110 void ShowErrorMessage(
const std::string &, QMessageBox::Icon = QMessageBox::Critical);
115 void WriteStatusMessage(
const QString &);
120 void WriteErrorMessage(
const QString &);
134 unsigned int FetchSelectedGPUFromUI()
const;
142 QString GetPythonPathFromUI(
const QString &)
const;
149 QString GetExactPythonPath(
const QString &)
const;
159 bool m_FirstPreviewComputation =
true;
160 bool m_IsInstalled =
false;
163 const std::string WARNING_TOTALSEG_NOT_FOUND =
164 "TotalSegmentator is not detected in the selected python environment.Please select a valid "
165 "python environment or install TotalSegmentator.";
166 const QStringList VALID_TASKS = {
173 "pleural_pericard_effusion"
#define MITKSEGMENTATIONUI_EXPORT
Abstract Class to Setup a python virtual environment and pip install required packages....
Class to load and save GPU information for further validation.