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

#include <otbMRFSamplerMAP.h>

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

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef Superclass::EnergyFidelityPointer EnergyFidelityPointer
 
typedef Superclass::EnergyFidelityType EnergyFidelityType
 
typedef Superclass::EnergyRegularizationPointer EnergyRegularizationPointer
 
typedef Superclass::EnergyRegularizationType EnergyRegularizationType
 
typedef Superclass::InputImageNeighborhoodIterator InputImageNeighborhoodIterator
 
typedef Superclass::InputImagePixelType InputImagePixelType
 
typedef Superclass::LabelledImageNeighborhoodIterator LabelledImageNeighborhoodIterator
 
typedef Superclass::LabelledImagePixelType LabelledImagePixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef MRFSamplerMAP Self
 
typedef MRFSampler< TInput1, TInput2 > Superclass
 
- Public Types inherited from otb::MRFSampler< TInput1, TInput2 >
typedef itk::SmartPointer< const SelfConstPointer
 
typedef EnergyFidelityType::Pointer EnergyFidelityPointer
 
typedef MRFEnergy< TInput1, TInput2 > EnergyFidelityType
 
typedef EnergyRegularizationType::Pointer EnergyRegularizationPointer
 
typedef MRFEnergy< TInput2, TInput2 > EnergyRegularizationType
 
typedef itk::ConstNeighborhoodIterator< TInput1 > InputImageNeighborhoodIterator
 
typedef TInput1::PixelType InputImagePixelType
 
typedef itk::NeighborhoodIterator< TInput2 > LabelledImageNeighborhoodIterator
 
typedef TInput2::PixelType LabelledImagePixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef MRFSampler Self
 
typedef itk::Object Superclass
 

Public Member Functions

int Compute (const InputImageNeighborhoodIterator &itData, const LabelledImageNeighborhoodIterator &itRegul) override
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from otb::MRFSampler< TInput1, TInput2 >
virtual double GetDeltaEnergy ()
 
virtual double GetEnergyAfter () const
 
virtual double GetEnergyBefore () const
 
virtual double GetLambda ()
 
virtual unsigned int GetNumberOfClasses ()
 
virtual LabelledImagePixelType GetValue ()
 
virtual void SetEnergyFidelity (EnergyFidelityType *_arg)
 
virtual void SetEnergyRegularization (EnergyRegularizationType *_arg)
 
virtual void SetLambda (double _arg)
 
virtual void SetNumberOfClasses (unsigned int _arg)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from otb::MRFSampler< TInput1, TInput2 >
double m_DeltaEnergy
 
double m_EnergyAfter
 
double m_EnergyBefore
 
double m_EnergyCurrent
 
EnergyFidelityPointer m_EnergyFidelity
 
EnergyRegularizationPointer m_EnergyRegularization
 
double m_Lambda
 
unsigned int m_NumberOfClasses
 
LabelledImagePixelType m_Value
 
LabelledImagePixelType m_ValueCurrent
 

Detailed Description

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

This is the base class for sampler methods used in the MRF framework.

This is one sampler to be used int he MRF framework. This sampler select the value which maximizes the apriori probability (minimum energy).

This class is meant to be used in the MRF framework with the otb::MarkovRandomFieldFilter

Definition at line 45 of file otbMRFSamplerMAP.h.

Member Typedef Documentation

◆ ConstPointer

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

Definition at line 51 of file otbMRFSamplerMAP.h.

◆ EnergyFidelityPointer

template<class TInput1 , class TInput2 >
typedef Superclass::EnergyFidelityPointer otb::MRFSamplerMAP< TInput1, TInput2 >::EnergyFidelityPointer

Definition at line 59 of file otbMRFSamplerMAP.h.

◆ EnergyFidelityType

template<class TInput1 , class TInput2 >
typedef Superclass::EnergyFidelityType otb::MRFSamplerMAP< TInput1, TInput2 >::EnergyFidelityType

Definition at line 57 of file otbMRFSamplerMAP.h.

◆ EnergyRegularizationPointer

template<class TInput1 , class TInput2 >
typedef Superclass::EnergyRegularizationPointer otb::MRFSamplerMAP< TInput1, TInput2 >::EnergyRegularizationPointer

Definition at line 60 of file otbMRFSamplerMAP.h.

◆ EnergyRegularizationType

template<class TInput1 , class TInput2 >
typedef Superclass::EnergyRegularizationType otb::MRFSamplerMAP< TInput1, TInput2 >::EnergyRegularizationType

Definition at line 58 of file otbMRFSamplerMAP.h.

◆ InputImageNeighborhoodIterator

template<class TInput1 , class TInput2 >
typedef Superclass::InputImageNeighborhoodIterator otb::MRFSamplerMAP< TInput1, TInput2 >::InputImageNeighborhoodIterator

Definition at line 53 of file otbMRFSamplerMAP.h.

◆ InputImagePixelType

template<class TInput1 , class TInput2 >
typedef Superclass::InputImagePixelType otb::MRFSamplerMAP< TInput1, TInput2 >::InputImagePixelType

Definition at line 56 of file otbMRFSamplerMAP.h.

◆ LabelledImageNeighborhoodIterator

template<class TInput1 , class TInput2 >
typedef Superclass::LabelledImageNeighborhoodIterator otb::MRFSamplerMAP< TInput1, TInput2 >::LabelledImageNeighborhoodIterator

Definition at line 54 of file otbMRFSamplerMAP.h.

◆ LabelledImagePixelType

template<class TInput1 , class TInput2 >
typedef Superclass::LabelledImagePixelType otb::MRFSamplerMAP< TInput1, TInput2 >::LabelledImagePixelType

Definition at line 55 of file otbMRFSamplerMAP.h.

◆ Pointer

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

Definition at line 50 of file otbMRFSamplerMAP.h.

◆ Self

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

Definition at line 48 of file otbMRFSamplerMAP.h.

◆ Superclass

template<class TInput1 , class TInput2 >
typedef MRFSampler<TInput1, TInput2> otb::MRFSamplerMAP< TInput1, TInput2 >::Superclass

Definition at line 49 of file otbMRFSamplerMAP.h.

Constructor & Destructor Documentation

◆ MRFSamplerMAP()

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

Definition at line 100 of file otbMRFSamplerMAP.h.

◆ ~MRFSamplerMAP()

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

Definition at line 101 of file otbMRFSamplerMAP.h.

Member Function Documentation

◆ Compute()

template<class TInput1 , class TInput2 >
int otb::MRFSamplerMAP< TInput1, TInput2 >::Compute ( const InputImageNeighborhoodIterator itData,
const LabelledImageNeighborhoodIterator itRegul 
)
inlineoverridevirtual

Implements otb::MRFSampler< TInput1, TInput2 >.

Definition at line 66 of file otbMRFSamplerMAP.h.

◆ CreateAnother()

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

◆ GetNameOfClass()

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

◆ New()

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

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