ANIMA  4.0
animaLowMemPatientToGroupComparisonBridge.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace anima
7 {
8 
10 {
11 public:
14 
18  typedef itk::Image <unsigned char,3> MaskImageType;
19 
22 
23  std::string GetNameOfClass() {return "LowMemoryPatientToGroupComparisonBridge";}
24 
25  void SetComputationMask(std::string &cMask);
26 
27  void SetDataLTFileNames(std::string &fileList)
28  {
29  m_DataLTImages->SetFileNames(fileList);
30  }
31 
32  void SetTestLTFileName(std::string &fileName)
33  {
34  m_TestLTImage->SetUniqueFileName(fileName);
35  }
36 
37  void SetOutputName(std::string &pref) {m_OutputName = pref;}
38  void SetOutputPValName(std::string &pref) {m_OutputPValName = pref;}
39 
40  void SetNbSplits(unsigned int nbSplits) {m_NbSplits = nbSplits;}
41  void SetNumberOfWorkUnits(unsigned int &nbT) {m_NumThreads = nbT;}
42 
43  void SetStatisticalTestType(TestType type) {m_StatisticalTestType = type;}
44  void SetExplainedRatio(double eRatio) {m_ExplainedRatio = eRatio;}
45  void SetNumEigenValuesPCA(unsigned int numEigen) {m_NumEigenValuesPCA = numEigen;}
46 
47  void Update(int specificSplitToDo = -1, bool genOutputDescriptionData = false);
48  void BuildAndWrite(OutputImageType *tmpIm, std::string resName, OutputImageType::RegionType finalROI);
49 
50 private:
51  std::string m_OutputName;
52  std::string m_OutputPValName;
53  unsigned int m_NbSplits;
54  unsigned int m_NumThreads;
55 
56  ImageSplitterLTType *m_DataLTImages, *m_TestLTImage;
57  MaskImageType::Pointer m_ComputationMask;
58 
59  TestType m_StatisticalTestType;
60  double m_ExplainedRatio;
61  unsigned int m_NumEigenValuesPCA;
62 };
63 
64 } // end namespace anima
void SetUniqueFileName(std::string &inputFileName)
anima::PatientToGroupComparisonImageFilter< double > MainFilterType
void SetFileNames(std::string &inputFileList)
PatientToGroupComparisonImageFilter< double >::InputImageType InputImageType
PatientToGroupComparisonImageFilter< double >::OutputImageType OutputImageType
void BuildAndWrite(OutputImageType *tmpIm, std::string resName, OutputImageType::RegionType finalROI)
void Update(int specificSplitToDo=-1, bool genOutputDescriptionData=false)
Implements patient to group comparison as in http://dx.doi.org/10.1007/978-3-540-85988-8_116.