21 #ifndef otbMRFSampler_h
22 #define otbMRFSampler_h
25 #include "itkNeighborhoodIterator.h"
43 template <
class TInput1,
class TInput2>
66 itkSetMacro(NumberOfClasses,
unsigned int);
67 itkGetMacro(NumberOfClasses,
unsigned int);
69 itkSetMacro(Lambda,
double);
70 itkGetMacro(Lambda,
double);
72 itkGetMacro(DeltaEnergy,
double);
76 itkGetConstMacro(EnergyBefore,
double);
77 itkGetConstMacro(EnergyAfter,
double);
99 MRFSampler() : m_NumberOfClasses(1), m_EnergyBefore(1.0), m_EnergyAfter(1.0), m_DeltaEnergy(1.0), m_EnergyCurrent(1.0), m_Lambda(1.0)
101 m_EnergyRegularization = EnergyRegularizationType::New();
102 m_EnergyFidelity = EnergyFidelityType::New();