14 template <
class ImageType>
35 void AddComparisonImage(ImageType *arg);
38 itkGetConstReferenceMacro(DatabaseWeights, std::vector <double>)
39 itkGetConstReferenceMacro(DatabaseSamples, std::vector <PixelType>)
46 virtual double ComputeWeightValue(
unsigned int index, ImageRegionType &refPatch, ImageRegionType &movingPatch) = 0;
47 virtual bool TestPatchConformity(
unsigned int index,
const IndexType &refIndex,
const IndexType &movingIndex) = 0;
50 unsigned int m_PatchHalfSize;
51 unsigned int m_SearchStepSize;
52 unsigned int m_MaxAbsDisp;
53 double m_WeightThreshold;
55 ImagePointer m_InputImage;
56 std::vector <ImagePointer> m_ComparisonImages;
58 std::vector <double> m_DatabaseWeights;
59 std::vector <PixelType> m_DatabaseSamples;
virtual void ComputeComparisonProperties(unsigned int index, ImageRegionType &movingPatch)
void SetSearchStepSize(unsigned int arg)
ImageType::Pointer ImagePointer
ImageType::RegionType ImageRegionType
virtual bool TestPatchConformity(unsigned int index, const IndexType &refIndex, const IndexType &movingIndex)=0
void UpdateAtPosition(const IndexType &dataIndex)
ImageType * GetComparisonImage(unsigned int index)
void SetInputImage(ImageType *arg)
ImageType::SizeType SizeType
virtual double ComputeWeightValue(unsigned int index, ImageRegionType &refPatch, ImageRegionType &movingPatch)=0
virtual ~NonLocalPatchBaseSearcher()
virtual void ComputeInputProperties(const IndexType &refIndex, ImageRegionType &refPatch)
void SetMaxAbsDisp(unsigned int arg)
void SetWeightThreshold(double arg)
void SetPatchHalfSize(unsigned int arg)
itkGetObjectMacro(InputImage, ImageType) void AddComparisonImage(ImageType *arg)
ImageType::IndexType IndexType
ImageType::PixelType PixelType
NonLocalPatchBaseSearcher()