22 #ifndef otbMRFEnergyPotts_h
23 #define otbMRFEnergyPotts_h
50 template <
class TInput1,
class TInput2>
74 return this->m_Parameters[0];
78 return -this->m_Parameters[0];
86 this->m_NumberOfParameters = 1;
87 this->m_Parameters.SetSize(this->m_NumberOfParameters);
88 this->m_Parameters[0] = 1.0;
This is the implementation of the Potts model for Markov classification.
itk::SmartPointer< Self > Pointer
LabelledImageType::PixelType LabelledImagePixelType
itk::Array< double > ParametersType
double GetSingleValue(const InputImagePixelType &value1, const LabelledImagePixelType &value2) override
MRFEnergy< TInput1, TInput2 > Superclass
itk::SmartPointer< const Self > ConstPointer
TInput2 LabelledImageType
InputImageType::PixelType InputImagePixelType
~MRFEnergyPotts() override
This is the base class for energy function used in the MRF framework.
InputImageType::PixelType InputImagePixelType
LabelledImageType::PixelType LabelledImagePixelType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.