OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
otb::MRFEnergyPotts< TInput1, TInput2 > Class Template Reference

#include <otbMRFEnergyPotts.h>

+ Inheritance diagram for otb::MRFEnergyPotts< TInput1, TInput2 >:
+ Collaboration diagram for otb::MRFEnergyPotts< TInput1, TInput2 >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef TInput1 InputImageType
 
typedef LabelledImageType::PixelType LabelledImagePixelType
 
typedef TInput2 LabelledImageType
 
typedef itk::Array< double > ParametersType
 
typedef itk::SmartPointer< SelfPointer
 
typedef MRFEnergyPotts Self
 
typedef MRFEnergy< TInput1, TInput2 > Superclass
 
- Public Types inherited from otb::MRFEnergy< TInput1, TInput2 >
typedef itk::SmartPointer< const SelfConstPointer
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef TInput1 InputImageType
 
typedef itk::ConstNeighborhoodIterator< InputImageTypeInputNeighborhoodIterator
 
typedef LabelledImageType::PixelType LabelledImagePixelType
 
typedef TInput2 LabelledImageType
 
typedef itk::ConstNeighborhoodIterator< LabelledImageTypeLabelledNeighborhoodIterator
 
typedef itk::Array< double > ParametersType
 
typedef itk::SmartPointer< SelfPointer
 
typedef MRFEnergy Self
 
typedef itk::Object Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
double GetSingleValue (const InputImagePixelType &value1, const LabelledImagePixelType &value2) override
 
- Public Member Functions inherited from otb::MRFEnergy< TInput1, TInput2 >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual unsigned int GetNumberOfParameters () const
 
const ParametersTypeGetParameters (void) const
 
virtual double GetValue (const InputImagePixelType &value1, const LabelledImagePixelType &value2)
 
virtual double GetValue (const InputNeighborhoodIterator &it, const LabelledImagePixelType &value2)
 
virtual double GetValue (const LabelledNeighborhoodIterator &it, const LabelledImagePixelType &value2)
 
virtual void SetNumberOfParameters (unsigned int _arg)
 
void SetParameters (const ParametersType &parameters)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from otb::MRFEnergy< TInput1, TInput2 >
static Pointer New ()
 

Protected Member Functions

 MRFEnergyPotts ()
 
 ~MRFEnergyPotts () override
 
- Protected Member Functions inherited from otb::MRFEnergy< TInput1, TInput2 >
 MRFEnergy ()
 
 ~MRFEnergy () override
 

Additional Inherited Members

- Protected Attributes inherited from otb::MRFEnergy< TInput1, TInput2 >
unsigned int m_NumberOfParameters
 
ParametersType m_Parameters
 

Detailed Description

template<class TInput1, class TInput2>
class otb::MRFEnergyPotts< TInput1, TInput2 >

This is the implementation of the Potts model for Markov classification.

This is the implementation of the Potts model for Markov classification, to be used for regularization. Energy is:

\[ U(x_s, x_t) = -\beta \textrm{ if } x_s = x_t \]

\[ U(x_s, x_t) = +\beta \textrm{ if } x_s \neq x_t \]

with

Examples
Markov/MarkovClassification1Example.cxx, Markov/MarkovClassification2Example.cxx, and Markov/MarkovRegularizationExample.cxx.

Definition at line 51 of file otbMRFEnergyPotts.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInput1 , class TInput2 >
typedef itk::SmartPointer<const Self> otb::MRFEnergyPotts< TInput1, TInput2 >::ConstPointer

Definition at line 57 of file otbMRFEnergyPotts.h.

◆ InputImagePixelType

template<class TInput1 , class TInput2 >
typedef InputImageType::PixelType otb::MRFEnergyPotts< TInput1, TInput2 >::InputImagePixelType

Definition at line 61 of file otbMRFEnergyPotts.h.

◆ InputImageType

template<class TInput1 , class TInput2 >
typedef TInput1 otb::MRFEnergyPotts< TInput1, TInput2 >::InputImageType

Definition at line 59 of file otbMRFEnergyPotts.h.

◆ LabelledImagePixelType

template<class TInput1 , class TInput2 >
typedef LabelledImageType::PixelType otb::MRFEnergyPotts< TInput1, TInput2 >::LabelledImagePixelType

Definition at line 62 of file otbMRFEnergyPotts.h.

◆ LabelledImageType

template<class TInput1 , class TInput2 >
typedef TInput2 otb::MRFEnergyPotts< TInput1, TInput2 >::LabelledImageType

Definition at line 60 of file otbMRFEnergyPotts.h.

◆ ParametersType

template<class TInput1 , class TInput2 >
typedef itk::Array<double> otb::MRFEnergyPotts< TInput1, TInput2 >::ParametersType

Definition at line 64 of file otbMRFEnergyPotts.h.

◆ Pointer

template<class TInput1 , class TInput2 >
typedef itk::SmartPointer<Self> otb::MRFEnergyPotts< TInput1, TInput2 >::Pointer

Definition at line 56 of file otbMRFEnergyPotts.h.

◆ Self

template<class TInput1 , class TInput2 >
typedef MRFEnergyPotts otb::MRFEnergyPotts< TInput1, TInput2 >::Self

Definition at line 54 of file otbMRFEnergyPotts.h.

◆ Superclass

template<class TInput1 , class TInput2 >
typedef MRFEnergy<TInput1, TInput2> otb::MRFEnergyPotts< TInput1, TInput2 >::Superclass

Definition at line 55 of file otbMRFEnergyPotts.h.

Constructor & Destructor Documentation

◆ MRFEnergyPotts()

template<class TInput1 , class TInput2 >
otb::MRFEnergyPotts< TInput1, TInput2 >::MRFEnergyPotts ( )
inlineprotected

Definition at line 84 of file otbMRFEnergyPotts.h.

◆ ~MRFEnergyPotts()

template<class TInput1 , class TInput2 >
otb::MRFEnergyPotts< TInput1, TInput2 >::~MRFEnergyPotts ( )
inlineoverrideprotected

Definition at line 90 of file otbMRFEnergyPotts.h.

Member Function Documentation

◆ CreateAnother()

template<class TInput1 , class TInput2 >
virtual::itk::LightObject::Pointer otb::MRFEnergyPotts< TInput1, TInput2 >::CreateAnother ( void  ) const

◆ GetNameOfClass()

template<class TInput1 , class TInput2 >
virtual const char* otb::MRFEnergyPotts< TInput1, TInput2 >::GetNameOfClass ( ) const
virtual

◆ GetSingleValue()

template<class TInput1 , class TInput2 >
double otb::MRFEnergyPotts< TInput1, TInput2 >::GetSingleValue ( const InputImagePixelType value1,
const LabelledImagePixelType value2 
)
inlineoverridevirtual

Reimplemented from otb::MRFEnergy< TInput1, TInput2 >.

Definition at line 70 of file otbMRFEnergyPotts.h.

◆ New()

template<class TInput1 , class TInput2 >
static Pointer otb::MRFEnergyPotts< TInput1, TInput2 >::New ( )
static

The documentation for this class was generated from the following file: