ANIMA  4.0
animaPatientToGroupODFComparisonImageFilter.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace anima
7 {
8 
9 template <class PixelScalarType>
11  public PatientToGroupComparisonImageFilter <PixelScalarType>
12 {
13 public:
16  typedef itk::SmartPointer<Self> Pointer;
17  typedef itk::SmartPointer<const Self> ConstPointer;
18 
21 
23  itkNewMacro(Self)
24 
25 
27 
28  void SetSampleDirections (std::vector < std::vector < double > > &input) {m_SampleDirections = input;}
29 
30 protected:
32  : Superclass()
33  {
34  m_SampleDirections.clear();
35  m_ShData = NULL;
36  }
37 
39  {
40  if (m_ShData)
41  delete m_ShData;
42  }
43 
44  virtual void BeforeThreadedGenerateData() ITK_OVERRIDE;
45  unsigned int SampleFromDiffusionModels(std::vector <VectorType> &databaseValues, VectorType &patientVectorValue) ITK_OVERRIDE;
46 
47 private:
48  ITK_DISALLOW_COPY_AND_ASSIGN(PatientToGroupODFComparisonImageFilter);
49 
50  std::vector < std::vector <double> > m_SampleDirections;
51  unsigned int m_LOrder;
52 
54 };
55 
56 } // end namespace anima
57 
STL namespace.
anima::PatientToGroupODFComparisonImageFilter< PixelScalarType > Self
anima::PatientToGroupComparisonImageFilter< PixelScalarType > Superclass
void SetSampleDirections(std::vector< std::vector< double > > &input)
Implements patient to group comparison as in http://dx.doi.org/10.1007/978-3-540-85988-8_116.
unsigned int SampleFromDiffusionModels(std::vector< VectorType > &databaseValues, VectorType &patientVectorValue) ITK_OVERRIDE