OTB  5.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList > Class Template Reference

#include <otbListSampleToBalancedListSampleFilter.h>

+ Inheritance diagram for otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >:
+ Collaboration diagram for otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >:

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef
Superclass::DataObjectPointer 
DataObjectPointer
 
typedef
itk::ProcessObject::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
 
typedef
GaussianAdditiveNoiseType::Pointer 
GaussianAdditiveNoisePointerType
 
typedef
otb::Statistics::GaussianAdditiveNoiseSampleListFilter
< InputSampleListType,
OutputSampleListType
GaussianAdditiveNoiseType
 
typedef
InputSampleListType::MeasurementVectorType 
InputMeasurementVectorType
 
typedef
InputSampleListType::ConstPointer 
InputSampleListConstPointer
 
typedef
InputSampleListType::Pointer 
InputSampleListPointer
 
typedef TInputSampleList InputSampleListType
 
typedef
InputMeasurementVectorType::ValueType 
InputValueType
 
typedef
LabelSampleListType::MeasurementVectorType 
LabelMeasurementVectorType
 
typedef
LabelSampleListType::ConstPointer 
LabelSampleListConstPointer
 
typedef
itk::DataObjectDecorator
< LabelSampleListType
LabelSampleListObjectType
 
typedef
LabelSampleListType::Pointer 
LabelSampleListPointer
 
typedef TLabelSampleList LabelSampleListType
 
typedef
LabelMeasurementVectorType::ValueType 
LabelValueType
 
typedef
OutputSampleListType::MeasurementVectorType 
OutputMeasurementVectorType
 
typedef
OutputSampleListType::ConstPointer 
OutputSampleListConstPointer
 
typedef
OutputSampleListType::Pointer 
OutputSampleListPointer
 
typedef TOutputSampleList OutputSampleListType
 
typedef
OutputMeasurementVectorType::ValueType 
OutputValueType
 
typedef itk::SmartPointer< SelfPointer
 
typedef
ListSampleToBalancedListSampleFilter 
Self
 
typedef
otb::Statistics::ListSampleToListSampleFilter
< TInputSampleList,
TOutputSampleList > 
Superclass
 
- Public Types inherited from otb::Statistics::ListSampleToListSampleFilter< TInputSampleList, TOutputSampleList >
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef itk::DataObject::Pointer DataObjectPointer
 
typedef
InputSampleListType::MeasurementVectorType 
InputMeasurementVectorType
 
typedef
InputSampleListType::ConstPointer 
InputSampleListConstPointer
 
typedef
InputSampleListType::Pointer 
InputSampleListPointer
 
typedef TInputSampleList InputSampleListType
 
typedef
InputMeasurementVectorType::ValueType 
InputValueType
 
typedef
Superclass::OutputMeasurementVectorType 
OutputMeasurementVectorType
 
typedef
Superclass::OutputSampleListConstPointer 
OutputSampleListConstPointer
 
typedef
Superclass::OutputSampleListPointer 
OutputSampleListPointer
 
typedef
Superclass::OutputSampleListType 
OutputSampleListType
 
typedef Superclass::OutputValueType OutputValueType
 
typedef itk::SmartPointer< SelfPointer
 
typedef
ListSampleToListSampleFilter 
Self
 
typedef ListSampleSource
< TOutputSampleList > 
Superclass
 
- Public Types inherited from otb::Statistics::ListSampleSource< TOutputSampleList >
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef itk::DataObject::Pointer DataObjectPointer
 
typedef
itk::ProcessObject::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
 
typedef
OutputSampleListType::MeasurementVectorType 
OutputMeasurementVectorType
 
typedef
OutputSampleListType::ConstPointer 
OutputSampleListConstPointer
 
typedef
OutputSampleListType::Pointer 
OutputSampleListPointer
 
typedef TOutputSampleList OutputSampleListType
 
typedef
OutputMeasurementVectorType::ValueType 
OutputValueType
 
typedef itk::SmartPointer< SelfPointer
 
typedef ListSampleSource Self
 
typedef itk::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
 
const LabelSampleListTypeGetInputLabel () const
 
virtual const char * GetNameOfClass () const
 
LabelSampleListTypeGetOutputLabel ()
 
void SetInputLabel (const LabelSampleListType *label)
 
 otbSetObjectMemberMacro (AddGaussianNoiseFilter, Mean, double)
 
 otbGetObjectMemberConstMacro (AddGaussianNoiseFilter, Mean, double)
 
 otbSetObjectMemberMacro (AddGaussianNoiseFilter, Variance, double)
 
 otbGetObjectMemberConstMacro (AddGaussianNoiseFilter, Variance, double)
 
virtual void SetBalancingFactor (unsigned int _arg)
 
virtual unsigned int GetBalancingFactor ()
 
- Public Member Functions inherited from otb::Statistics::ListSampleToListSampleFilter< TInputSampleList, TOutputSampleList >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
const InputSampleListTypeGetInput () const
 
void SetInput (const InputSampleListType *inputPtr)
 
- Public Member Functions inherited from otb::Statistics::ListSampleSource< TOutputSampleList >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
OutputSampleListTypeGetOutput ()
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual void EnlargeOutputRequestedRegion (DataObject *)
 
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 DataObjectPointer MakeOutput (const DataObjectIdentifierType &)
 
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 (void) const
 
MetaDataDictionaryGetMetaDataDictionary (void)
 
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 ITK_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) ITK_OVERRIDE
 
virtual void UnRegister () const ITK_OVERRIDE
 
- 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 otb::Statistics::ListSampleToListSampleFilter< TInputSampleList, TOutputSampleList >
static Pointer New ()
 
- Static Public Member Functions inherited from otb::Statistics::ListSampleSource< TOutputSampleList >
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 ()
 

Protected Member Functions

void ComputeMaxSampleFrequency ()
 
virtual void GenerateData ()
 
 ListSampleToBalancedListSampleFilter ()
 
DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx)
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 
virtual ~ListSampleToBalancedListSampleFilter ()
 
- Protected Member Functions inherited from otb::Statistics::ListSampleToListSampleFilter< TInputSampleList, TOutputSampleList >
 ListSampleToListSampleFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 
virtual ~ListSampleToListSampleFilter ()
 
- Protected Member Functions inherited from otb::Statistics::ListSampleSource< TOutputSampleList >
 ListSampleSource ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 
virtual ~ListSampleSource ()
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
virtual void AddOutput (DataObject *output)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateInputRequestedRegion ()
 
virtual void GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
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 RemoveOutput(DataObject *output))
 
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
 
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
virtual void PopBackInput ()
 
virtual void PopFrontInput ()
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void PushBackInput (const DataObject *input)
 
virtual void PushFrontInput (const DataObject *input)
 
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 VerifyInputInformation ()
 
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 ()
 

Private Member Functions

 ListSampleToBalancedListSampleFilter (const Self &)
 
void operator= (const Self &)
 

Private Attributes

GaussianAdditiveNoisePointerType m_AddGaussianNoiseFilter
 
unsigned int m_BalancingFactor
 
std::vector< unsigned int > m_MultiplicativeCoefficient
 

Additional Inherited Members

- Protected Types inherited from itk::LightObject
typedef int InternalReferenceCountType
 
- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime
 
bool m_Updating
 
- Protected Attributes inherited from itk::LightObject
InternalReferenceCountType m_ReferenceCount
 
SimpleFastMutexLock m_ReferenceCountLock
 

Detailed Description

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
class otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >

This class generate a balanced ListSample in order to have fair distribution of learning samples.

The maximum number of samples with same labels are first computed. This maximum number by the m_BalacingFactor determines the final number of samples belonging to each label.

Mean and Variance are set via the methods SetMean() and SetVariance().

See Also
ListSampleToListSampleFilter, GaussianAdditiveNoiseSampleListFilter

Definition at line 45 of file otbListSampleToBalancedListSampleFilter.h.

Member Typedef Documentation

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef itk::SmartPointer<const Self> otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::ConstPointer

Definition at line 55 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef Superclass::DataObjectPointer otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::DataObjectPointer

DataObject typedef

Definition at line 86 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef itk::ProcessObject::DataObjectPointerArraySizeType otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::DataObjectPointerArraySizeType

Definition at line 87 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef GaussianAdditiveNoiseType::Pointer otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::GaussianAdditiveNoisePointerType

Definition at line 92 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef otb::Statistics::GaussianAdditiveNoiseSampleListFilter<InputSampleListType, OutputSampleListType> otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::GaussianAdditiveNoiseType

Filter adding noise to a ListSample

Definition at line 91 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef InputSampleListType::MeasurementVectorType otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::InputMeasurementVectorType

Definition at line 67 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef InputSampleListType::ConstPointer otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::InputSampleListConstPointer

Definition at line 66 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef InputSampleListType::Pointer otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::InputSampleListPointer

Definition at line 65 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef TInputSampleList otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::InputSampleListType

InputSampleList typedefs

Definition at line 61 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef InputMeasurementVectorType::ValueType otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::InputValueType

Definition at line 68 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef LabelSampleListType::MeasurementVectorType otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::LabelMeasurementVectorType

Definition at line 74 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef LabelSampleListType::ConstPointer otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::LabelSampleListConstPointer

Definition at line 73 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef itk::DataObjectDecorator< LabelSampleListType > otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::LabelSampleListObjectType

Definition at line 76 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef LabelSampleListType::Pointer otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::LabelSampleListPointer

Definition at line 72 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef TLabelSampleList otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::LabelSampleListType

LabelSampleList typedefs

Definition at line 71 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef LabelMeasurementVectorType::ValueType otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::LabelValueType

Definition at line 75 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef OutputSampleListType::MeasurementVectorType otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::OutputMeasurementVectorType

Definition at line 82 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef OutputSampleListType::ConstPointer otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::OutputSampleListConstPointer

Definition at line 81 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef OutputSampleListType::Pointer otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::OutputSampleListPointer

Definition at line 80 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef TOutputSampleList otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::OutputSampleListType

OutputSampleList typedefs

Definition at line 79 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef OutputMeasurementVectorType::ValueType otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::OutputValueType

Definition at line 83 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef itk::SmartPointer< Self > otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::Pointer

Definition at line 54 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef ListSampleToBalancedListSampleFilter otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::Self

Standard class typedefs

Definition at line 51 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
typedef otb::Statistics::ListSampleToListSampleFilter<TInputSampleList, TOutputSampleList> otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::Superclass

Definition at line 53 of file otbListSampleToBalancedListSampleFilter.h.

Constructor & Destructor Documentation

template<class TInputSampleList , class TLabelSampleList , class TOutputSampleList >
otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::ListSampleToBalancedListSampleFilter ( )
protected
template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
virtual otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::~ListSampleToBalancedListSampleFilter ( )
inlineprotectedvirtual

Definition at line 136 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::ListSampleToBalancedListSampleFilter ( const Self )
private

Member Function Documentation

template<class TInputSampleList , class TLabelSampleList , class TOutputSampleList >
void otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::ComputeMaxSampleFrequency ( )
protected

In order to respect the fair data principle, the number of samples for each label must be the same. This method computes the label that have the higher number of sample.

Definition at line 111 of file otbListSampleToBalancedListSampleFilter.txx.

References itk::NumericTraits< T >::min().

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
virtual::itk::LightObject::Pointer otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::CreateAnother ( void  ) const
virtual

Reimplemented from itk::Object.

template<class TInputSampleList , class TLabelSampleList , class TOutputSampleList >
void otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::GenerateData ( void  )
protectedvirtual

This method causes the filter to generate its output.

Reimplemented from itk::ProcessObject.

Definition at line 186 of file otbListSampleToBalancedListSampleFilter.txx.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
virtual unsigned int otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::GetBalancingFactor ( )
virtual

Set/Get the multiplicative factor : this value is used to determine the maximum number of samples in each label in order to reach a balanced output ListSample

template<class TInputSampleList , class TLabelSampleList , class TOutputSampleList >
const ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::LabelSampleListType * otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::GetInputLabel ( ) const

Returns the label sample list

Definition at line 85 of file otbListSampleToBalancedListSampleFilter.txx.

References itk::ProcessObject::GetInput().

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
virtual const char* otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from otb::Statistics::ListSampleToListSampleFilter< TInputSampleList, TOutputSampleList >.

template<class TInputSampleList , class TLabelSampleList , class TOutputSampleList >
ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::LabelSampleListType * otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::GetOutputLabel ( )

Returns the label sample list as a data object

Definition at line 101 of file otbListSampleToBalancedListSampleFilter.txx.

References itk::ProcessObject::GetOutput().

template<class TInputSampleList , class TLabelSampleList , class TOutputSampleList >
ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::DataObjectPointer otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::MakeOutput ( DataObjectPointerArraySizeType  idx)
protectedvirtual
template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
static Pointer otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::New ( )
static

Method for creation through the object factory.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
void otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::operator= ( const Self )
private
template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::otbGetObjectMemberConstMacro ( AddGaussianNoiseFilter  ,
Mean  ,
double   
)

Set/Get the mean for the white gaussian noise to generate

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::otbGetObjectMemberConstMacro ( AddGaussianNoiseFilter  ,
Variance  ,
double   
)

Set/Get the variance for the white gaussian noise to generate

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::otbSetObjectMemberMacro ( AddGaussianNoiseFilter  ,
Mean  ,
double   
)

Set/Get the mean for the white gaussian noise to generate

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::otbSetObjectMemberMacro ( AddGaussianNoiseFilter  ,
Variance  ,
double   
)

Set/Get the variance for the white gaussian noise to generate

template<class TInputSampleList , class TLabelSampleList , class TOutputSampleList >
void otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
protectedvirtual

Reimplemented from itk::ProcessObject.

Definition at line 278 of file otbListSampleToBalancedListSampleFilter.txx.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
virtual void otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::SetBalancingFactor ( unsigned int  _arg)
virtual

Set/Get the multiplicative factor : this value is used to determine the maximum number of samples in each label in order to reach a balanced output ListSample

template<class TInputSampleList , class TLabelSampleList , class TOutputSampleList >
void otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::SetInputLabel ( const LabelSampleListType label)

Get/Set the label sample list

Definition at line 73 of file otbListSampleToBalancedListSampleFilter.txx.

References itk::ProcessObject::SetNthInput().

Member Data Documentation

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
GaussianAdditiveNoisePointerType otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::m_AddGaussianNoiseFilter
private

Definition at line 143 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
unsigned int otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::m_BalancingFactor
private

Definition at line 145 of file otbListSampleToBalancedListSampleFilter.h.

template<class TInputSampleList, class TLabelSampleList, class TOutputSampleList = TInputSampleList>
std::vector<unsigned int> otb::Statistics::ListSampleToBalancedListSampleFilter< TInputSampleList, TLabelSampleList, TOutputSampleList >::m_MultiplicativeCoefficient
private

Definition at line 144 of file otbListSampleToBalancedListSampleFilter.h.


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