Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkConnectomicsSimulatedAnnealingManager.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 mitkConnectomicsSimulatedAnnealingManager_h
18 #define mitkConnectomicsSimulatedAnnealingManager_h
19 
20 #include <itkObject.h>
21 #include <itkObjectFactory.h>
22 #include <itkMacro.h>
23 
24 #include "mitkCommon.h"
25 
26 #include <MitkConnectomicsExports.h>
27 
29 
30 namespace mitk
31 {
34  class MITKCONNECTOMICS_EXPORT ConnectomicsSimulatedAnnealingManager : public itk::Object
35  {
36  public:
37 
42  itkFactorylessNewMacro(Self)
43  itkCloneMacro(Self)
44 
45  // Decide whether to accept the change or not
46  bool AcceptChange( double costBefore, double costAfter, double temperature );
47 
48  // Run the permutations at different temperatures, where t_n = t_n-1 / stepSize
49  void RunSimulatedAnnealing( double temperature, double stepSize );
50 
51  // Set the permutation to be used
52  void SetPermutation( mitk::ConnectomicsSimulatedAnnealingPermutationBase::Pointer permutation );
53 
54  protected:
55 
59 
61  // The permutation assigned to the simulated annealing manager
63 
64  };
65 
66 }// end namespace mitk
67 
68 #endif // mitkConnectomicsSimulatedAnnealingManager_h
itk::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
mitk::ConnectomicsSimulatedAnnealingPermutationBase::Pointer m_Permutation
A class allow generic simulated annealing by using classes derived from ConnectomicsSimulatedAnnealin...
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53