17 #ifndef TumorInvasionAnalysis_H
18 #define TumorInvasionAnalysis_H
22 #include <MitkTumorInvasionAnalysisExports.h>
60 void SelectTrainingSamples(
DataCollection *collection,
unsigned int mode = 0);
86 std::vector<std::string> modalitiesList,
87 size_t forestSize = 300,
88 size_t treeDepth = 10);
94 void PredictInvasion(
DataCollection *collection, std::vector<std::string> modalitiesList);
103 void SanitizeResults(
DataCollection *collection, std::string resultID =
"RESULT");
107 m_TargetDil2D = dil2d;
108 m_TargetDil3D = dil3d;
132 void SetTargetID(std::string targetID =
"TARGET") { m_TargetID = targetID; }
137 void SetTumorID(std::string tumorID =
"GTV") { m_TumorID = tumorID; }
142 void SetMaskID(std::string maskID =
"BRAINMASK") { m_MaskID = maskID; }
147 void SetResultID(std::string resultID =
"RESULT") { m_ResultID = resultID; }
158 void DescriptionToLogFile(
DataCollection *collection, std::string outputFile);
164 void SaveRandomForest(std::string
filename);
170 void LoadRandomForest(std::string);
176 unsigned int m_TargetDil2D;
177 unsigned int m_TargetDil3D;
181 std::string m_GlobalStatsFile;
183 std::string m_TargetID;
184 std::string m_TumorID;
185 std::string m_MaskID;
186 std::string m_ResultID;
189 bool m_WeightSamples;
void SamplesWeightingActivated(bool isActive)
SamplesWeightingActivated If activated a weighted mask for the samples is calculated, weighting samples according to their location and ratio.
void UseRandomizedTrees(bool useRandom)
UseRandomizedTrees - use random splits to build up forest.
void SetGlobalsStatsFile(std::string fn)
DataCollection - Class to facilitate loading/accessing structured data.
~TumorInvasionClassification()
void SetTrainMargin(vcl_size_t dil2d, vcl_size_t dil3d)
void SetMaskID(std::string maskID="BRAINMASK")
SetMaskID sets binary mask denoting area that is evluated/included in training.
void SetResultID(std::string resultID="RESULT")
SetResultID sets data item name in which prediction results are stored.
static const std::string filename
The TumorInvasionAnalysis class - Classifies Tumor progression using RF and predicts on new cases...
void SetClassRatio(ScalarType ratio)
SetClassRatio - set ratio of tumor voxels to healthy voxels that is to be used for training...
void SetTumorID(std::string tumorID="GTV")
SetTumorID sets binary mask denoting current tumor area.
void SetTargetID(std::string targetID="TARGET")
SetTargetID sets binary mask denoting future tumor area.