ANIMA  4.0
animaMEstTransformAgregator.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include <itkAffineTransform.h>
5 
6 namespace anima
7 {
8 
9 template <unsigned int NDimensions = 3>
11 public BaseTransformAgregator <NDimensions>
12 {
13 public:
15  typedef typename Superclass::PointType PointType;
18  typedef typename itk::AffineTransform <ScalarType,NDimensions> BaseOutputTransformType;
20 
23  PointType GetEstimationBarycenter() ITK_OVERRIDE;
24  virtual bool Update() ITK_OVERRIDE;
25 
26  void SetMEstimateFactor(double mestFactor) {m_MEstimateFactor = mestFactor;this->SetUpToDate(false);}
27  void SeStoppingThreshold(double stopThr) {m_StoppingThreshold = stopThr;this->SetUpToDate(false);}
28 
29 private:
30  bool mestEstimateTranslationsToAny();
31  bool mestEstimateAnyToAffine();
32 
33  bool endLTSCondition(BaseOutputTransformType *oldTrsf, BaseOutputTransformType *newTrsf);
34 
35  double m_MEstimateFactor;
36  double m_StoppingThreshold;
37 
38  PointType m_EstimationBarycenter;
39 };
40 
41 } // end of namespace anima
42 
void SetMEstimateFactor(double mestFactor)
itk::Point< InternalScalarType, NDimensions > PointType
Superclass::InternalScalarType InternalScalarType
BaseTransformAgregator< NDimensions > Superclass
itk::AffineTransform< ScalarType, NDimensions > BaseOutputTransformType
Superclass::BaseInputTransformType BaseInputTransformType
PointType GetEstimationBarycenter() ITK_OVERRIDE
itk::Transform< InternalScalarType, NDimensions, NDimensions > BaseInputTransformType