5 #include <itkVectorImage.h> 21 template <
class PixelScalarType>
62 m_DatabaseImages.push_back(tmpIm);
65 itkSetMacro(NumEigenValuesPCA,
unsigned int);
66 itkSetMacro(ExplainedRatio,
double);
68 itkSetMacro(StatisticalTestType,
TestType);
74 this->SetNumberOfRequiredOutputs(2);
75 this->SetNthOutput(0,this->MakeOutput(0));
76 this->SetNthOutput(1,this->MakeOutput(1));
78 m_ExplainedRatio = 0.9;
79 m_NumEigenValuesPCA = 6;
81 m_DatabaseImages.clear();
82 m_StatisticalTestType =
FISHER;
93 return patientVectorValue.GetSize();
99 bool isZero(
const VectorType &vec);
101 unsigned int GetPCAVectorsFromData(std::vector < itk::VariableLengthVector <double> > &databaseVectors,
102 itk::VariableLengthVector <double> &patientVectorValue);
104 unsigned int m_NumEigenValuesPCA;
105 double m_ExplainedRatio;
107 std::vector <InputImagePointer> m_DatabaseImages;
InputImageType::IndexType InputImageIndexType
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
vnl_matrix< double > CovMatrixType
PatientToGroupComparisonImageFilter< PixelScalarType > Self
anima::MaskedImageToImageFilter< InputImageType, OutputImageType > Superclass
void AddDatabaseInput(InputImageType *tmpIm)
itk::Image< unsigned char, TInputImage::ImageDimension > MaskImageType
virtual ~PatientToGroupComparisonImageFilter()
itk::VectorImage< PixelScalarType, 3 > InputImageType
Superclass::OutputImageRegionType OutputImageRegionType
InputImageType::PixelType VectorType
InputImageType::Pointer InputImagePointer
virtual unsigned int SampleFromDiffusionModels(std::vector< VectorType > &databaseValues, VectorType &patientVectorValue)
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) ITK_OVERRIDE
Superclass::MaskImageType MaskImageType
virtual void BeforeThreadedGenerateData() ITK_OVERRIDE
PatientToGroupComparisonImageFilter()
itk::Image< PixelScalarType, 3 > OutputImageType
OutputImageType::Pointer OutputImagePointer
Implements patient to group comparison as in http://dx.doi.org/10.1007/978-3-540-85988-8_116.
Superclass::OutputImageRegionType OutputImageRegionType