Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkOptimizerFactory.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKOPTIMIZERFACTORY_H
18 #define MITKOPTIMIZERFACTORY_H
19 
21 #include "itkSingleValuedNonLinearOptimizer.h"
23 
24 namespace mitk
25 {
44  class MITKRIGIDREGISTRATION_EXPORT OptimizerFactory : public ::itk::Object
45  {
46  public:
48  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
49 
50  typedef itk::SingleValuedNonLinearOptimizer OptimizerType;
51 
56  OptimizerType::Pointer GetOptimizer();
57 
61  void SetNumberOfTransformParameters(int numberTransformParameters);
62 
66  void SetOptimizerParameters(OptimizerParameters::Pointer optimizerParameters)
67  {
68  m_OptimizerParameters = optimizerParameters;
69  }
70 
74  OptimizerParameters::Pointer GetOptimizerParameters() { return m_OptimizerParameters; }
75  protected:
78 
79  private:
80  OptimizerParameters::Pointer m_OptimizerParameters;
81  int m_NumberTransformParameters;
82  };
83 
84 } // namespace mitk
85 
86 #endif // MITKOPTIMIZERFACTORY_H
itk::SmartPointer< Self > Pointer
#define MITKRIGIDREGISTRATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
OptimizerParameters::Pointer GetOptimizerParameters()
Returns the instance to the optimizer parameters class which holds all parameters for the new optimiz...
This class is used to hold all optimizer parameters needed for a rigid registration process...
This class creates an optimizer for a rigid registration process.
itk::SingleValuedNonLinearOptimizer OptimizerType
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53