OTB  6.7.0
Orfeo Toolbox
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::PeriodicSampler Class Reference

#include <otbPeriodicSampler.h>

+ Inheritance diagram for otb::PeriodicSampler:
+ Collaboration diagram for otb::PeriodicSampler:

Classes

struct  Parameter
 

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef struct
otb::PeriodicSampler::Parameter 
ParameterType
 
typedef itk::SmartPointer< SelfPointer
 
typedef PeriodicSampler Self
 
typedef SamplerBase Superclass
 
- Public Types inherited from otb::SamplerBase
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef SamplerBase Self
 
typedef itk::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
 
ParameterType GetParameters ()
 
void Reset (void) override
 
bool TakeSample (void)
 
void SetParameters (const ParameterType &param)
 
- Public Member Functions inherited from otb::SamplerBase
virtual unsigned long GetChosenElements ()
 
virtual unsigned long GetNeededElements ()
 
virtual unsigned long GetProcessedElements ()
 
virtual double GetRate ()
 
virtual unsigned long GetTotalElements ()
 
void SetNumberOfElements (unsigned long needed, unsigned long total)
 
void SetRate (double rate, unsigned long total=0UL)
 
- 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 ()
 

Protected Member Functions

 PeriodicSampler ()
 
 ~PeriodicSampler () override
 
- Protected Member Functions inherited from otb::SamplerBase
 SamplerBase ()
 
 ~SamplerBase () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void PrintSelf (std::ostream &os, Indent indent) const override
 
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

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

Private Attributes

double m_JitterSize
 
std::vector< double > m_JitterValues
 
double m_OffsetValue
 
ParameterType m_Parameters
 

Additional Inherited Members

- Protected Attributes inherited from otb::SamplerBase
unsigned long m_ChosenElements
 
unsigned long m_ProcessedElements
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Detailed Description

Periodic sampler for iteration loops.

This class allows doing periodic sampling during an iteration loop.

Definition at line 38 of file otbPeriodicSampler.h.

Member Typedef Documentation

Definition at line 44 of file otbPeriodicSampler.h.

Internal parameters, only contains an offset to shift the periodic sampling

Definition at line 43 of file otbPeriodicSampler.h.

Definition at line 41 of file otbPeriodicSampler.h.

Definition at line 42 of file otbPeriodicSampler.h.

Constructor & Destructor Documentation

otb::PeriodicSampler::PeriodicSampler ( )
protected

Constructor

otb::PeriodicSampler::~PeriodicSampler ( )
inlineoverrideprotected

Destructor

Definition at line 104 of file otbPeriodicSampler.h.

otb::PeriodicSampler::PeriodicSampler ( const Self )
private

Member Function Documentation

virtual::itk::LightObject::Pointer otb::PeriodicSampler::CreateAnother ( void  ) const
virtual

Reimplemented from itk::Object.

virtual const char* otb::PeriodicSampler::GetNameOfClass ( ) const
virtual

Runtime information support.

Reimplemented from otb::SamplerBase.

ParameterType otb::PeriodicSampler::GetParameters ( void  )
inline

Getter for internal parameters

Definition at line 83 of file otbPeriodicSampler.h.

static Pointer otb::PeriodicSampler::New ( )
static

Method for creation through the object factory.

void otb::PeriodicSampler::operator= ( const Self )
private
void otb::PeriodicSampler::Reset ( void  )
overridevirtual

Method that resets the internal state of the sampler

Reimplemented from otb::SamplerBase.

void otb::PeriodicSampler::SetParameters ( const ParameterType param)
inline

Setter for internal parameters

Definition at line 72 of file otbPeriodicSampler.h.

bool otb::PeriodicSampler::TakeSample ( void  )

Method to call during iteration, returns true if the sample is selected, and false otherwise.

Member Data Documentation

double otb::PeriodicSampler::m_JitterSize
private

Internal width for jitter

Definition at line 115 of file otbPeriodicSampler.h.

std::vector<double> otb::PeriodicSampler::m_JitterValues
private

jitter offsets computed up to MaxBufferSize

Definition at line 122 of file otbPeriodicSampler.h.

double otb::PeriodicSampler::m_OffsetValue
private

Internal current offset value (either fixed, or reset each time a sample is taken)

Definition at line 119 of file otbPeriodicSampler.h.

ParameterType otb::PeriodicSampler::m_Parameters
private

Internal parameters for the sampler

Definition at line 112 of file otbPeriodicSampler.h.


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