ANIMA  4.0
animaKissingSymmetricBMRegistrationMethod.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace anima
7 {
8 
9 template <typename TInputImageType>
11 {
12 public:
16  typedef itk::SmartPointer <Self> Pointer;
17  typedef itk::SmartPointer <const Self> ConstPointer;
18 
25 
28 
29  itkNewMacro(Self)
30 
31  itkSetMacro(ReferenceBackgroundValue, double)
32  itkSetMacro(FloatingBackgroundValue, double)
33 
34 protected:
36  {
37  m_ReferenceBackgroundValue = 0;
38  m_FloatingBackgroundValue = 0;
39  }
40 
42 
43  virtual void PerformOneIteration(InputImageType *refImage, InputImageType *movingImage, TransformPointer &addOn) ITK_OVERRIDE;
44 
45  template <class ScalarPixelType> void ChangeDefaultBackgroundValue(itk::Image <ScalarPixelType, InputImageType::ImageDimension> *itkNotUsed(image), double backgroundValue)
46  {
48  BMType *tmpBM = dynamic_cast <BMType *> (this->GetBlockMatcher());
49  tmpBM->SetDefaultBackgroundValue(backgroundValue);
50  }
51 
52  template <class ScalarPixelType> void ChangeDefaultBackgroundValue(itk::VectorImage <ScalarPixelType, InputImageType::ImageDimension> *itkNotUsed(image), double itkNotUsed(backgroundValue))
53  {
54  // Vector image : do nothing
55  }
56 
57 private:
58  ITK_DISALLOW_COPY_AND_ASSIGN(KissingSymmetricBMRegistrationMethod);
59 
60  double m_ReferenceBackgroundValue;
61  double m_FloatingBackgroundValue;
62 };
63 
64 } // end namespace anima
65 
void ChangeDefaultBackgroundValue(itk::VectorImage< ScalarPixelType, InputImageType::ImageDimension > *, double)
virtual void PerformOneIteration(InputImageType *refImage, InputImageType *movingImage, TransformPointer &addOn) ITK_OVERRIDE
anima::BaseTransformAgregator< TInputImageType::ImageDimension > AgregatorType
itk::AffineTransform< typename AgregatorType::ScalarType, TInputImageType::ImageDimension > AffineTransformType
anima::BaseBlockMatcher< TInputImageType > BlockMatcherType
itk::StationaryVelocityFieldTransform< AgregatorScalarType, TInputImageType::ImageDimension > SVFTransformType
void ChangeDefaultBackgroundValue(itk::Image< ScalarPixelType, InputImageType::ImageDimension > *, double backgroundValue)