4 #include <itkVectorImage.h> 9 template <
class ImageScalarType,
class DataImageType>
14 typedef itk::VectorImage <ImageScalarType,DataImageType::ImageDimension>
RefImageType;
43 virtual double ComputeWeightValue(
unsigned int index, ImageRegionType &refPatch, ImageRegionType &movingPatch);
44 virtual bool TestPatchConformity(
unsigned int index,
const IndexType &refIndex,
const IndexType &movingIndex);
47 DataImagePointer m_DatabaseCovarianceDistanceAverage;
48 DataImagePointer m_DatabaseCovarianceDistanceStd;
49 DataImagePointer m_DatabaseMeanDistanceAverage;
50 DataImagePointer m_DatabaseMeanDistanceStd;
52 MaskImagePointer m_DataMask;
54 double m_BetaParameter;
56 double m_MeanThreshold;
57 double m_VarianceThreshold;
60 VectorType m_RefPatchMean, m_MovingPatchMean;
61 CovarianceType m_RefPatchCovariance, m_MovingPatchCovariance;
62 unsigned int m_RefPatchNumElements, m_MovingPatchNumElements;
63 CovarianceType m_LogRefPatchCovariance;
64 CovarianceType m_NoiseCovariance, m_NoiseSigma;
void SetDataMask(MaskImageType *arg)
DataImageType::Pointer DataImagePointer
virtual bool TestPatchConformity(unsigned int index, const IndexType &refIndex, const IndexType &movingIndex)
Superclass::IndexType IndexType
Superclass::ImageRegionType ImageRegionType
ImageType::RegionType ImageRegionType
virtual double ComputeWeightValue(unsigned int index, ImageRegionType &refPatch, ImageRegionType &movingPatch)
virtual void ComputeComparisonProperties(unsigned int index, ImageRegionType &movingPatch)
anima::NonLocalPatchBaseSearcher< RefImageType > Superclass
void SetDatabaseMeanDistanceStd(DataImagePointer &arg)
itk::VectorImage< ImageScalarType, DataImageType::ImageDimension > RefImageType
void SetDatabaseCovarianceDistanceStd(DataImagePointer &arg)
virtual ~NLMeansVectorPatchSearcher()
MaskImageType::Pointer MaskImagePointer
void SetMeanThreshold(double arg)
void SetBetaParameter(double arg)
void SetDatabaseMeanDistanceAverage(DataImagePointer &arg)
virtual void ComputeInputProperties(const IndexType &refIndex, ImageRegionType &refPatch)
void SetDatabaseCovarianceDistanceAverage(DataImagePointer &arg)
void SetVarianceThreshold(double arg)
ImageType::IndexType IndexType
RefImageType::PixelType VectorType
NLMeansVectorPatchSearcher()
vnl_matrix< double > CovarianceType
itk::Image< unsigned char, 3 > MaskImageType