OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage > Class Template Reference

#include <otbMarkovRandomFieldFilter.h>

+ Inheritance diagram for otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >:
+ Collaboration diagram for otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >:

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef EnergyFidelityType::Pointer EnergyFidelityPointer
 
typedef MRFEnergy< TInputImage,
TClassifiedImage > 
EnergyFidelityType
 
typedef
EnergyRegularizationType::Pointer 
EnergyRegularizationPointer
 
typedef MRFEnergy
< TClassifiedImage,
TClassifiedImage > 
EnergyRegularizationType
 
typedef
LabelledImageIndexType::IndexValueType 
IndexValueType
 
typedef TInputImage::ConstPointer InputImageConstPointer
 
typedef
InputImageFaceListType::iterator 
InputImageFaceListIterator
 
typedef
InputImageFacesCalculator::FaceListType 
InputImageFaceListType
 
typedef
itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator
< TInputImage > 
InputImageFacesCalculator
 
typedef
itk::ConstNeighborhoodIterator
< TInputImage > 
InputImageNeighborhoodIterator
 
typedef
InputImageNeighborhoodIterator::RadiusType 
InputImageNeighborhoodRadiusType
 
typedef TInputImage::PixelType InputImagePixelType
 
typedef TInputImage::Pointer InputImagePointer
 
typedef
itk::ImageRegionConstIterator
< TInputImage > 
InputImageRegionConstIterator
 
typedef
itk::ImageRegionIterator
< TInputImage > 
InputImageRegionIterator
 
typedef TInputImage::RegionType InputImageRegionType
 
typedef TInputImage InputImageType
 
typedef
LabelledImageFaceListType::iterator 
LabelledImageFaceListIterator
 
typedef
LabelledImageFacesCalculator::FaceListType 
LabelledImageFaceListType
 
typedef
itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator
< TClassifiedImage > 
LabelledImageFacesCalculator
 
typedef TClassifiedImage::IndexType LabelledImageIndexType
 
typedef
itk::NeighborhoodIterator
< TClassifiedImage > 
LabelledImageNeighborhoodIterator
 
typedef
LabelledImageNeighborhoodIterator::RadiusType 
LabelledImageNeighborhoodRadiusType
 
typedef
TClassifiedImage::OffsetType 
LabelledImageOffsetType
 
typedef TClassifiedImage::PixelType LabelledImagePixelType
 
typedef TClassifiedImage::Pointer LabelledImagePointer
 
typedef
itk::ImageRegionConstIterator
< TClassifiedImage > 
LabelledImageRegionConstIterator
 
typedef
itk::ImageRegionIterator
< TClassifiedImage > 
LabelledImageRegionIterator
 
typedef
TClassifiedImage::RegionType 
LabelledImageRegionType
 
typedef TClassifiedImage LabelledImageType
 
typedef TInputImage::SizeType NeighborhoodRadiusType
 
typedef OptimizerType::Pointer OptimizerPointer
 
typedef MRFOptimizer OptimizerType
 
typedef
Superclass::OutputImagePointer 
OutputImagePointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef
itk::Statistics::MersenneTwisterRandomVariateGenerator 
RandomGeneratorType
 
typedef SamplerType::Pointer SamplerPointer
 
typedef MRFSampler
< TInputImage,
TClassifiedImage > 
SamplerType
 
typedef MarkovRandomFieldFilter Self
 
typedef TInputImage::SizeType SizeType
 
enum  StopConditionType {
  MaximumNumberOfIterations = 1,
  ErrorTolerance
}
 
typedef
itk::ImageToImageFilter
< TInputImage,
TClassifiedImage > 
Superclass
 
typedef TClassifiedImage::PixelType TrainingImagePixelType
 
typedef TClassifiedImage::Pointer TrainingImagePointer
 
typedef TClassifiedImage TrainingImageType
 
- Public Types inherited from itk::ImageToImageFilter< TInputImage, TClassifiedImage >
typedef SmartPointer< const SelfConstPointer
 
typedef
InputImageType::ConstPointer 
InputImageConstPointer
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef TInputImage InputImageType
 
typedef
Superclass::OutputImagePixelType 
OutputImagePixelType
 
typedef
Superclass::OutputImageRegionType 
OutputImageRegionType
 
typedef SmartPointer< SelfPointer
 
typedef ImageToImageFilter Self
 
typedef ImageSource
< TClassifiedImage > 
Superclass
 
- Public Types inherited from itk::ImageSource< TOutputImage >
typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef
Superclass::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
 
typedef OutputImageType::PixelType OutputImagePixelType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef TOutputImage OutputImageType
 
typedef SmartPointer< SelfPointer
 
typedef ImageSource Self
 
typedef ProcessObject Superclass
 
- Public Types inherited from itk::ProcessObject
typedef SmartPointer< const SelfConstPointer
 
typedef
DataObject::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
 
typedef
DataObjectPointerArray::size_type 
DataObjectPointerArraySizeType
 
typedef std::vector
< DataObjectIdentifierType
NameArray
 
typedef SmartPointer< SelfPointer
 
typedef ProcessObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
const NeighborhoodRadiusType GetNeighborhoodRadius () const
 
virtual const unsigned int & GetNumberOfIterations () const
 
virtual const StopConditionTypeGetStopCondition () const
 
 itkGetObjectMacro (EnergyFidelity, EnergyFidelityType)
 
 itkGetObjectMacro (Sampler, SamplerType)
 
 itkGetObjectMacro (Optimizer, OptimizerType)
 
virtual void SetEnergyFidelity (EnergyFidelityType *_arg)
 
virtual void SetOptimizer (OptimizerType *_arg)
 
virtual void SetSampler (SamplerType *_arg)
 
 typedef (itk::Concept::Convertible< unsigned int, LabelledImagePixelType >) UnsignedIntConvertibleToClassifiedCheck
 
 typedef (itk::Concept::Convertible< LabelledImagePixelType, unsigned int >) ClassifiedConvertibleToUnsignedIntCheck
 
 typedef (itk::Concept::Convertible< LabelledImagePixelType, int >) ClassifiedConvertibleToIntCheck
 
 typedef (itk::Concept::Convertible< int, LabelledImagePixelType >) IntConvertibleToClassifiedCheck
 
 typedef (itk::Concept::SameDimension< InputImageDimension, ClassifiedImageDimension >) SameDimensionCheck
 
virtual void SetEnergyRegularization (EnergyRegularizationType *_arg)
 
 itkGetObjectMacro (EnergyRegularization, EnergyRegularizationType)
 
virtual void SetNumberOfClasses (unsigned int _arg)
 
virtual unsigned int GetNumberOfClasses ()
 
virtual void SetMaximumNumberOfIterations (unsigned int _arg)
 
virtual unsigned int GetMaximumNumberOfIterations ()
 
virtual void SetErrorTolerance (double _arg)
 
virtual double GetErrorTolerance ()
 
virtual void SetSmoothingFactor (double _arg)
 
virtual double GetSmoothingFactor ()
 
virtual void SetLambda (double _arg)
 
virtual double GetLambda ()
 
virtual void SetTrainingInput (const TrainingImageType *trainingImage)
 
const TrainingImageTypeGetTrainingInput (void)
 
void InitializeSeed (int seed)
 
void InitializeSeed ()
 
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TClassifiedImage >
virtual double GetCoordinateTolerance () const
 
virtual double GetDirectionTolerance () const
 
const InputImageTypeGetInput () const
 
const InputImageTypeGetInput (unsigned int idx) const
 
virtual void PopBackInput () override
 
virtual void PopFrontInput () override
 
virtual void PushBackInput (const InputImageType *image)
 
virtual void PushFrontInput (const InputImageType *image)
 
virtual void SetCoordinateTolerance (double _arg)
 
virtual void SetDirectionTolerance (double _arg)
 
virtual void SetInput (const InputImageType *image)
 
virtual void SetInput (unsigned int, const TInputImage *image)
 
- Public Member Functions inherited from itk::ImageSource< TOutputImage >
OutputImageTypeGetOutput (unsigned int idx)
 
OutputImageTypeGetOutput ()
 
const OutputImageTypeGetOutput () const
 
virtual void GraftNthOutput (unsigned int idx, DataObject *output)
 
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void GraftOutput (DataObject *output)
 
virtual
ProcessObject::DataObjectPointer 
MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) override
 
virtual
ProcessObject::DataObjectPointer 
MakeOutput (const ProcessObject::DataObjectIdentifierType &) override
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
MultiThreader * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual const ThreadIdTypeGetNumberOfThreads () const
 
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual const float & GetProgress () const
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual bool GetReleaseDataFlag () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
virtual void PrepareOutputs ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
void ReleaseDataFlagOff ()
 
void ReleaseDataFlagOn ()
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void SetNumberOfThreads (ThreadIdType _arg)
 
void SetProgress (float progress)
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual void SetReleaseDataFlag (bool flag)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
virtual ModifiedTimeType GetMTime () const
 
virtual const std::string & GetObjectName () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Static Public Attributes

static const unsigned int ClassifiedImageDimension = TClassifiedImage::ImageDimension
 
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 
- Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TClassifiedImage >
static const unsigned int InputImageDimension
 
static const unsigned int OutputImageDimension
 
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >
static const unsigned int OutputImageDimension
 

Protected Types

typedef TInputImage::SizeType InputImageSizeType
 
- Protected Types inherited from itk::ImageToImageFilter< TInputImage, TClassifiedImage >
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(OutputImageDimension),
itkGetStaticConstMacro(InputImageDimension) > 
InputToOutputRegionCopierType
 
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(InputImageDimension),
itkGetStaticConstMacro(OutputImageDimension) > 
OutputToInputRegionCopierType
 

Protected Member Functions

void GenerateData () override
 
 MarkovRandomFieldFilter ()
 
 MarkovRandomFieldFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ~MarkovRandomFieldFilter () override
 
void GenerateInputRequestedRegion () override
 
void EnlargeOutputRequestedRegion (itk::DataObject *) override
 
void GenerateOutputInformation () override
 
- Protected Member Functions inherited from itk::ImageToImageFilter< TInputImage, TClassifiedImage >
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
 
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 
 ImageToImageFilter ()
 
void PushBackInput (const DataObject *input) override
 
void PushFrontInput (const DataObject *input) override
 
virtual void VerifyInputInformation () override
 
 ~ImageToImageFilter ()
 
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
virtual void AfterThreadedGenerateData ()
 
virtual void AllocateOutputs ()
 
virtual void BeforeThreadedGenerateData ()
 
virtual const
ImageRegionSplitterBase
GetImageRegionSplitter () const
 
 ImageSource ()
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion)
 
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
 
virtual ~ImageSource ()
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
virtual void AddOutput (DataObject *output)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs () const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs () const
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
DataObjectGetOutput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetOutput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual const char * GetPrimaryInputName (void) const
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () const
 
virtual const char * GetPrimaryOutputName (void) const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 
 itkLegacyMacro (virtual void RemoveOutput(DataObject *output))
 
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void ReleaseInputs ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType num, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *input)
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual void SetPrimaryOutput (DataObject *output)
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
void SetRequiredInputNames (const NameArray &)
 
virtual void VerifyPreconditions ()
 
 ~ProcessObject ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Protected Attributes

std::vector< double > m_DummyVector
 
EnergyFidelityPointer m_EnergyFidelity
 
EnergyRegularizationPointer m_EnergyRegularization
 
int m_ErrorCounter
 
double m_ErrorTolerance
 
bool m_ExternalClassificationSet
 
RandomGeneratorType::Pointer m_Generator
 
double m_ImageDeltaEnergy
 
InputImageNeighborhoodRadiusType m_InputImageNeighborhoodRadius
 
LabelledImageNeighborhoodRadiusType m_LabelledImageNeighborhoodRadius
 
double m_Lambda
 
unsigned int m_MaximumNumberOfIterations
 
std::vector< double > m_MRFNeighborhoodWeight
 
int m_NeighborhoodRadius
 
std::vector< double > m_NeighborInfluence
 
unsigned int m_NumberOfClasses
 
unsigned int m_NumberOfIterations
 
OptimizerPointer m_Optimizer
 
SamplerPointer m_Sampler
 
double m_SmoothingFactor
 
StopConditionType m_StopCondition
 
int m_TotalNumberOfPixelsInInputImage
 
int m_TotalNumberOfValidPixelsInOutputImage
 
TrainingImagePointer m_TrainingImage
 
- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime
 
bool m_Updating
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 
void SetNeighborhoodRadius (const NeighborhoodRadiusType &)
 
void SetNeighborhoodRadius (const unsigned long)
 
void SetNeighborhoodRadius (const unsigned long *radiusArray)
 
void Allocate ()
 
void Initialize () throw (itk::ExceptionObject)
 
virtual void ApplyMarkovRandomFieldFilter ()
 
virtual void MinimizeOnce ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from itk::ImageSource< TOutputImage >
static const
ImageRegionSplitterBase
GetGlobalDefaultSplitter ()
 
static ITK_THREAD_RETURN_TYPE ThreaderCallback (void *arg)
 

Detailed Description

template<class TInputImage, class TClassifiedImage>
class otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >

This is the class to use the Markov Random Field framework in OTB.

This filter apply a Markov Random Field to an input image. Several components need to be specify:

An example of usage for this filter is:

markovFilter->SetNumberOfClasses(4);
markovFilter->SetMaximumNumberOfIterations(30);
markovFilter->SetErrorTolerance(0.0);
markovFilter->SetLambda(1.0);
markovFilter->SetNeighborhoodRadius(1);
markovFilter->SetEnergyRegularization(energyRegularization);
markovFilter->SetEnergyFidelity(energyFidelity);
markovFilter->SetOptimizer(optimizer);
markovFilter->SetSampler(sampler);
Examples:
Markov/MarkovClassification1Example.cxx, Markov/MarkovClassification2Example.cxx, Markov/MarkovRegularizationExample.cxx, and Markov/MarkovRestorationExample.cxx.

Definition at line 86 of file otbMarkovRandomFieldFilter.h.

Member Typedef Documentation

template<class TInputImage, class TClassifiedImage>
typedef itk::SmartPointer<const Self> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::ConstPointer

Definition at line 94 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef EnergyFidelityType::Pointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::EnergyFidelityPointer

Definition at line 205 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef MRFEnergy<TInputImage, TClassifiedImage> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::EnergyFidelityType

Definition at line 202 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef EnergyRegularizationType::Pointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::EnergyRegularizationPointer

Definition at line 204 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef MRFEnergy<TClassifiedImage, TClassifiedImage> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::EnergyRegularizationType

Set pipeline elements

Definition at line 201 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef LabelledImageIndexType::IndexValueType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::IndexValueType

Definition at line 143 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage::ConstPointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImageConstPointer

Definition at line 106 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef InputImageFaceListType::iterator otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImageFaceListIterator

Definition at line 179 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef InputImageFacesCalculator::FaceListType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImageFaceListType

Definition at line 176 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator<TInputImage> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImageFacesCalculator

Definition at line 173 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef itk::ConstNeighborhoodIterator<TInputImage> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImageNeighborhoodIterator

Input image neighborhood iterator and kernel size typedef

Definition at line 167 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef InputImageNeighborhoodIterator::RadiusType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImageNeighborhoodRadiusType

Definition at line 170 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage::PixelType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImagePixelType

Type definition for the input image pixel type.

Definition at line 109 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage::Pointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImagePointer

Definition at line 105 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef itk::ImageRegionConstIterator<TInputImage> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImageRegionConstIterator

Definition at line 116 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef itk::ImageRegionIterator<TInputImage> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImageRegionIterator

Type definition for the input image region iterator

Definition at line 115 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage::RegionType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImageRegionType

Type definition for the input image region type.

Definition at line 112 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage::SizeType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImageSizeType
protected

Definition at line 356 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImageType

Type definition for the input image.

Definition at line 101 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef LabelledImageFaceListType::iterator otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::LabelledImageFaceListIterator

Definition at line 195 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef LabelledImageFacesCalculator::FaceListType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::LabelledImageFaceListType

Definition at line 192 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator<TClassifiedImage> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::LabelledImageFacesCalculator

Definition at line 189 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::IndexType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::LabelledImageIndexType

Type definition for the classified image index type.

Definition at line 142 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef itk::NeighborhoodIterator<TClassifiedImage> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::LabelledImageNeighborhoodIterator

Labelled image neighborhood iterator typedef

Definition at line 183 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef LabelledImageNeighborhoodIterator::RadiusType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::LabelledImageNeighborhoodRadiusType

Definition at line 186 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::OffsetType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::LabelledImageOffsetType

Type definition for the classified image offset type.

Definition at line 146 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::PixelType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::LabelledImagePixelType

Type definitions for the classified image pixel type. It has to be the same type as the training image.

Definition at line 135 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::Pointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::LabelledImagePointer

Definition at line 131 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef itk::ImageRegionConstIterator<TClassifiedImage> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::LabelledImageRegionConstIterator

Definition at line 153 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef itk::ImageRegionIterator<TClassifiedImage> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::LabelledImageRegionIterator

Type definition for the input image region iterator

Definition at line 150 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::RegionType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::LabelledImageRegionType

Type definitions for the classified image pixel type. It has to be the same type as the training image.

Definition at line 139 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::LabelledImageType

Type definitions for the labelled image. It is derived from the training image.

Definition at line 130 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage::SizeType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::NeighborhoodRadiusType

Radius typedef support.

Definition at line 163 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef OptimizerType::Pointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::OptimizerPointer

Definition at line 211 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef MRFOptimizer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::OptimizerType

Definition at line 210 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef Superclass::OutputImagePointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::OutputImagePointer

Definition at line 95 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef itk::SmartPointer<Self> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::Pointer

Definition at line 93 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef itk::Statistics::MersenneTwisterRandomVariateGenerator otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::RandomGeneratorType

Typedef for random values.

Definition at line 198 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef SamplerType::Pointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SamplerPointer

Definition at line 208 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef MRFSampler<TInputImage, TClassifiedImage> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SamplerType

Definition at line 207 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef MarkovRandomFieldFilter otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::Self

Standard class typedefs.

Definition at line 91 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage::SizeType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SizeType

Size and value typedef support.

Definition at line 160 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef itk::ImageToImageFilter<TInputImage, TClassifiedImage> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::Superclass

Definition at line 92 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::PixelType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::TrainingImagePixelType

Type definitions for the training image pixel type.

Definition at line 126 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::Pointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::TrainingImagePointer

Definition at line 123 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::TrainingImageType

Type definitions for the training image.

Definition at line 122 of file otbMarkovRandomFieldFilter.h.

Member Enumeration Documentation

template<class TInputImage, class TClassifiedImage>
enum otb::MarkovRandomFieldFilter::StopConditionType
Enumerator
MaximumNumberOfIterations 
ErrorTolerance 

Definition at line 290 of file otbMarkovRandomFieldFilter.h.

Constructor & Destructor Documentation

template<class TInputImage , class TClassifiedImage >
otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::MarkovRandomFieldFilter ( void  )
protected

Definition at line 30 of file otbMarkovRandomFieldFilter.hxx.

template<class TInputImage, class TClassifiedImage>
otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::~MarkovRandomFieldFilter ( )
inlineoverrideprotected

Definition at line 332 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::MarkovRandomFieldFilter ( const Self )
protecteddelete

Member Function Documentation

template<class TInputImage , class TClassifiedImage >
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::Allocate ( )
protected

Allocate memory for labelled images. This is automatically called in GenerateData().

Allocate algorithm specific resources

Definition at line 250 of file otbMarkovRandomFieldFilter.hxx.

template<class TInputImage , class TClassifiedImage >
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::ApplyMarkovRandomFieldFilter ( )
protectedvirtual

Apply the MRF image filter

Definition at line 359 of file otbMarkovRandomFieldFilter.hxx.

References otbMsgDevMacro.

template<class TInputImage, class TClassifiedImage>
virtual::itk::LightObject::Pointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::CreateAnother ( void  ) const
virtual

Reimplemented from itk::Object.

template<class TInputImage , class TClassifiedImage >
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::EnlargeOutputRequestedRegion ( itk::DataObject output)
overrideprotectedvirtual

EnlargeOutputRequestedRegion method.

Reimplemented from itk::ProcessObject.

Definition at line 144 of file otbMarkovRandomFieldFilter.hxx.

template<class TInputImage , class TClassifiedImage >
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::GenerateData ( void  )
overrideprotectedvirtual

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 171 of file otbMarkovRandomFieldFilter.hxx.

template<class TInputImage , class TClassifiedImage >
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::GenerateInputRequestedRegion ( void  )
overrideprotectedvirtual

GenerateInputRequestedRegion method.

Reimplemented from itk::ImageToImageFilter< TInputImage, TClassifiedImage >.

Definition at line 127 of file otbMarkovRandomFieldFilter.hxx.

template<class TInputImage , class TClassifiedImage >
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::GenerateOutputInformation ( void  )
overrideprotectedvirtual

GenerateOutputInformation method.

Reimplemented from itk::ProcessObject.

Definition at line 160 of file otbMarkovRandomFieldFilter.hxx.

template<class TInputImage, class TClassifiedImage>
virtual double otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::GetErrorTolerance ( )
virtual

Set/Get the error tollerance level which is used as a threshold to quit the iterations

template<class TInputImage, class TClassifiedImage>
virtual double otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::GetLambda ( )
virtual

Set/Get the regularization coefficient

template<class TInputImage, class TClassifiedImage>
virtual unsigned int otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::GetMaximumNumberOfIterations ( )
virtual

Set/Get the number of iteration of the Iterated Conditional Mode (ICM) algorithm. A default value is set at 50 iterations.

template<class TInputImage, class TClassifiedImage>
virtual const char* otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageToImageFilter< TInputImage, TClassifiedImage >.

template<class TInputImage, class TClassifiedImage>
const NeighborhoodRadiusType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::GetNeighborhoodRadius ( ) const
inline

Get the neighborhood radius

Definition at line 268 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
virtual unsigned int otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::GetNumberOfClasses ( )
virtual

Set/Get the number of classes.

template<class TInputImage, class TClassifiedImage>
virtual const unsigned int& otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::GetNumberOfIterations ( ) const
virtual

Get macro for number of iterations

template<class TInputImage, class TClassifiedImage>
virtual double otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::GetSmoothingFactor ( )
virtual

Set/Get the degree of smoothing desired

template<class TInputImage, class TClassifiedImage>
virtual const StopConditionType& otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::GetStopCondition ( ) const
virtual

Get condition that stops the MRF filter (Number of Iterations / Error tolerance )

template<class TInputImage , class TClassifiedImage >
const MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::TrainingImageType * otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::GetTrainingInput ( void  )

Set training image for the starting point. This is not compulsory: if the starting image is not specified, a random image will be used instead. One important restriction: in the case of classification, the training image should contain values corresponding to the class number (consecutive integers).

Definition at line 81 of file otbMarkovRandomFieldFilter.hxx.

References itk::ProcessObject::GetInput().

template<class TInputImage , class TClassifiedImage >
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::Initialize ( void  )
throw (itk::ExceptionObject
)
protected

Connect the pipeline and propagate the required parameters. This is automatically called in GenerateData().

Initialize pipeline and values

Definition at line 301 of file otbMarkovRandomFieldFilter.hxx.

template<class TInputImage, class TClassifiedImage>
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InitializeSeed ( int  seed)
inline

End concept checking Methods to cancel random effects.

Definition at line 320 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InitializeSeed ( )
inline

End concept checking Methods to cancel random effects.

Definition at line 324 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::itkGetObjectMacro ( EnergyRegularization  ,
EnergyRegularizationType   
)

ACCESSORS ************

template<class TInputImage, class TClassifiedImage>
otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::itkGetObjectMacro ( EnergyFidelity  ,
EnergyFidelityType   
)
template<class TInputImage, class TClassifiedImage>
otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::itkGetObjectMacro ( Sampler  ,
SamplerType   
)
template<class TInputImage, class TClassifiedImage>
otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::itkGetObjectMacro ( Optimizer  ,
OptimizerType   
)
template<class TInputImage , class TClassifiedImage >
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::MinimizeOnce ( )
protectedvirtual
template<class TInputImage, class TClassifiedImage>
static Pointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::New ( )
static

Method for creation through the object factory.

template<class TInputImage, class TClassifiedImage>
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::operator= ( const Self )
protecteddelete
template<class TInputImage , class TClassifiedImage >
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotectedvirtual
template<class TInputImage, class TClassifiedImage>
virtual void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SetEnergyFidelity ( EnergyFidelityType _arg)
virtual
template<class TInputImage, class TClassifiedImage>
virtual void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SetEnergyRegularization ( EnergyRegularizationType _arg)
virtual

ACCESSORS ************

template<class TInputImage, class TClassifiedImage>
virtual void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SetErrorTolerance ( double  _arg)
virtual

Set/Get the error tollerance level which is used as a threshold to quit the iterations

template<class TInputImage, class TClassifiedImage>
virtual void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SetLambda ( double  _arg)
virtual

Set/Get the regularization coefficient

template<class TInputImage, class TClassifiedImage>
virtual void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SetMaximumNumberOfIterations ( unsigned int  _arg)
virtual

Set/Get the number of iteration of the Iterated Conditional Mode (ICM) algorithm. A default value is set at 50 iterations.

template<class TInputImage , class TClassifiedImage >
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SetNeighborhoodRadius ( const NeighborhoodRadiusType radius)

Set the neighborhood radius

Set the neighborhood radius from a radius object

Definition at line 231 of file otbMarkovRandomFieldFilter.hxx.

template<class TInputImage , class TClassifiedImage >
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SetNeighborhoodRadius ( const unsigned long  radiusValue)

Sets the radius for the neighborhood, calculates size from the radius, and allocates storage.

Set the neighborhood radius from a single value

Definition at line 193 of file otbMarkovRandomFieldFilter.hxx.

template<class TInputImage , class TClassifiedImage >
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SetNeighborhoodRadius ( const unsigned long *  radiusArray)

Set the neighborhood radius from an array

Definition at line 212 of file otbMarkovRandomFieldFilter.hxx.

template<class TInputImage, class TClassifiedImage>
virtual void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SetNumberOfClasses ( unsigned int  _arg)
virtual

Set/Get the number of classes.

template<class TInputImage, class TClassifiedImage>
virtual void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SetOptimizer ( OptimizerType _arg)
virtual
template<class TInputImage, class TClassifiedImage>
virtual void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SetSampler ( SamplerType _arg)
virtual
template<class TInputImage, class TClassifiedImage>
virtual void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SetSmoothingFactor ( double  _arg)
virtual

Set/Get the degree of smoothing desired

template<class TInputImage , class TClassifiedImage >
void otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::SetTrainingInput ( const TrainingImageType trainingImage)
virtual

Set training image for the starting point. This is not compulsory: if the starting image is not specified, a random image will be used instead. One important restriction: in the case of classification, the training image should contain values corresponding to the class number (consecutive integers).

Definition at line 70 of file otbMarkovRandomFieldFilter.hxx.

References itk::ProcessObject::SetNthInput().

template<class TInputImage, class TClassifiedImage>
otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::typedef ( itk::Concept::Convertible< unsigned int, LabelledImagePixelType )

Begin concept checking This class requires UnsignedIntConvertibleToClassifiedCheck in the form of (itk::Concept::Convertible<unsigned int, LabelledImagePixelType>)

template<class TInputImage, class TClassifiedImage>
otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::typedef ( itk::Concept::Convertible< LabelledImagePixelType, unsigned int >  )

This class requires ClassifiedConvertibleToUnsignedIntCheck in the form of (itk::Concept::Convertible<LabelledImagePixelType, unsigned int> )

template<class TInputImage, class TClassifiedImage>
otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::typedef ( itk::Concept::Convertible< LabelledImagePixelType, int >  )

This class requires ClassifiedConvertibleToIntCheck in the form of (itk::Concept::Convertible<LabelledImagePixelType, int> )

template<class TInputImage, class TClassifiedImage>
otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::typedef ( itk::Concept::Convertible< int, LabelledImagePixelType )

This class requires IntConvertibleToClassifiedCheck in the form of (itk::Concept::Convertible<int, LabelledImagePixelType>)

template<class TInputImage, class TClassifiedImage>
otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::typedef ( itk::Concept::SameDimension< InputImageDimension, ClassifiedImageDimension )

This class requires SameDimensionCheck in the form of (itk::Concept::SameDimension<InputImageDimension, ClassifiedImageDimension>)

Member Data Documentation

template<class TInputImage, class TClassifiedImage>
const unsigned int otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::ClassifiedImageDimension = TClassifiedImage::ImageDimension
static

Labelled Image dimension

Definition at line 157 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
const unsigned int otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::InputImageDimension = TInputImage::ImageDimension
static

Image dimension

Definition at line 119 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
std::vector<double> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_DummyVector
protected

Definition at line 383 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
EnergyFidelityPointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_EnergyFidelity
protected

Definition at line 390 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
EnergyRegularizationPointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_EnergyRegularization
protected

Pointer to different elements

Definition at line 389 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
int otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_ErrorCounter
protected

Definition at line 364 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
double otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_ErrorTolerance
protected

Definition at line 370 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
bool otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_ExternalClassificationSet
protected

Definition at line 376 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
RandomGeneratorType::Pointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_Generator
protected

Definition at line 385 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
double otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_ImageDeltaEnergy
protected

Definition at line 365 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
InputImageNeighborhoodRadiusType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_InputImageNeighborhoodRadius
protected

Definition at line 358 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
LabelledImageNeighborhoodRadiusType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_LabelledImageNeighborhoodRadius
protected

Definition at line 359 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
double otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_Lambda
protected

Definition at line 375 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
unsigned int otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_MaximumNumberOfIterations
protected

Definition at line 362 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
std::vector<double> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_MRFNeighborhoodWeight
protected

Definition at line 381 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
int otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_NeighborhoodRadius
protected

Definition at line 367 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
std::vector<double> otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_NeighborInfluence
protected

Definition at line 382 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
unsigned int otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_NumberOfClasses
protected

Definition at line 361 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
unsigned int otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_NumberOfIterations
protected

Definition at line 373 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
OptimizerPointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_Optimizer
protected

Definition at line 391 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
SamplerPointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_Sampler
protected

Definition at line 392 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
double otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_SmoothingFactor
protected

Definition at line 371 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
StopConditionType otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_StopCondition
protected

Definition at line 377 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
int otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_TotalNumberOfPixelsInInputImage
protected

Definition at line 369 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
int otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_TotalNumberOfValidPixelsInOutputImage
protected

Definition at line 368 of file otbMarkovRandomFieldFilter.h.

template<class TInputImage, class TClassifiedImage>
TrainingImagePointer otb::MarkovRandomFieldFilter< TInputImage, TClassifiedImage >::m_TrainingImage
protected

Definition at line 379 of file otbMarkovRandomFieldFilter.h.


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