ANIMA  4.0
animaLowMemPatientToGroupODFComparisonBridge.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 "LowMemoryPatientToGroupODFComparisonBridge";}
24 
25  void SetComputationMask(std::string &cMask);
26 
27  void SetDataODFFileNames(std::string &fileList)
28  {
29  m_DataODFImages->SetFileNames(fileList);
30  }
31 
32  void SetTestODFFileName(std::string &fileName)
33  {
34  m_TestODFImage->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 SetSampleDirections(std::vector <std::vector <double> > &sampleDirections) {m_SampleDirections = sampleDirections;}
48 
49  void Update(int specificSplitToDo = -1, bool genOutputDescriptionData = false);
50  void BuildAndWrite(OutputImageType *tmpIm, std::string resName, OutputImageType::RegionType finalROI);
51 
52 private:
53  std::string m_OutputName;
54  std::string m_OutputPValName;
55  unsigned int m_NbSplits;
56  unsigned int m_NumThreads;
57 
58  ImageSplitterODFType *m_DataODFImages, *m_TestODFImage;
59  MaskImageType::Pointer m_ComputationMask;
60 
61  TestType m_StatisticalTestType;
62  double m_ExplainedRatio;
63  unsigned int m_NumEigenValuesPCA;
64 
65  std::vector <std::vector <double> > m_SampleDirections;
66 };
67 
68 } // end namespace anima
void Update(int specificSplitToDo=-1, bool genOutputDescriptionData=false)
void SetUniqueFileName(std::string &inputFileName)
void SetFileNames(std::string &inputFileList)
PatientToGroupODFComparisonImageFilter< double >::OutputImageType OutputImageType
PatientToGroupODFComparisonImageFilter< double >::InputImageType InputImageType
anima::PatientToGroupODFComparisonImageFilter< double > MainFilterType
void BuildAndWrite(OutputImageType *tmpIm, std::string resName, OutputImageType::RegionType finalROI)
void SetSampleDirections(std::vector< std::vector< double > > &sampleDirections)