5 #include <itkVectorImage.h> 13 template <
class PixelScalarType>
55 m_DatabaseImages.push_back(tmpIm);
63 itkSetMacro(PatchHalfSize,
unsigned int)
64 itkSetMacro(SearchNeighborhood,
unsigned int)
65 itkSetMacro(SearchStepSize,
unsigned int)
66 itkSetMacro(WeightThreshold,
double)
67 itkSetMacro(MeanThreshold,
double)
68 itkSetMacro(VarianceThreshold,
double)
69 itkSetMacro(BetaParameter,
double)
75 this->SetNumberOfRequiredOutputs(3);
76 this->SetNthOutput(0,this->MakeOutput(0));
77 this->SetNthOutput(1,this->MakeOutput(1));
78 this->SetNthOutput(2,this->MakeOutput(2));
80 m_DatabaseImages.clear();
82 m_DatabaseCovarianceDistanceAverage = NULL;
83 m_DatabaseCovarianceDistanceStd = NULL;
84 m_DatabaseMeanDistanceAverage = NULL;
85 m_DatabaseMeanDistanceStd = NULL;
87 m_WeightThreshold = 0.0;
88 m_MeanThreshold = 0.5;
89 m_VarianceThreshold = 6.0;
94 m_SearchNeighborhood = 4;
105 double ComputeWeightedDistanceScore(itk::VariableLengthVector <double> &patientSample, std::vector < double > &databaseWeights,
106 std::vector < itk::VariableLengthVector <double> > &databaseSamples,
double &diffScore);
108 std::vector <InputImagePointer> m_DatabaseImages;
115 double m_WeightThreshold;
116 double m_MeanThreshold, m_VarianceThreshold;
117 double m_BetaParameter;
119 unsigned int m_PatchHalfSize;
120 unsigned int m_SearchStepSize;
121 unsigned int m_SearchNeighborhood;
NLMeansPatientToGroupComparisonImageFilter< PixelScalarType > Self
itk::SmartPointer< const Self > ConstPointer
void AddDatabaseInput(InputImageType *tmpIm)
void BeforeThreadedGenerateData() ITK_OVERRIDE
InputImageIndexType centerIndex
InputImageType::IndexType InputImageIndexType
itk::Image< PixelScalarType, 3 > OutputImageType
itk::VectorImage< PixelScalarType, 3 > InputImageType
unsigned int numDatabaseImage
itk::SmartPointer< Self > Pointer
virtual ~NLMeansPatientToGroupComparisonImageFilter()
InputImageType::Pointer InputImagePointer
vnl_matrix< double > CovarianceType
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) ITK_OVERRIDE
OutputImageRegionType movingRegion
OutputImageType::Pointer OutputImagePointer
InputImageType::PixelType VectorType
NLMeansPatientToGroupComparisonImageFilter()
Superclass::OutputImageRegionType OutputImageRegionType
Superclass::MaskImageType MaskImageType