![]() |
OTB
9.1.1
Orfeo Toolbox
|
#include <otbPeriodicSOM.h>
Inheritance diagram for otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >:
Collaboration diagram for otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >:Public Types | |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef MapType::IndexType | IndexType |
| typedef ListSampleType::Pointer | ListSamplePointerType |
| typedef TListSample | ListSampleType |
| typedef MapType::Pointer | MapPointerType |
| typedef TMap | MapType |
| typedef MapType::PixelType | NeuronType |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef MapType::RegionType | RegionType |
| typedef PeriodicSOM | Self |
| typedef MapType::SizeType | SizeType |
| typedef SOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor > | Superclass |
| typedef NeuronType::ValueType | ValueType |
Public Types inherited from otb::SOM< TListSample, TMap, Functor::CzihoSOMLearningBehaviorFunctor, Functor::CzihoSOMNeighborhoodBehaviorFunctor > | |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef MapType::IndexType | IndexType |
| typedef ListSampleType::Pointer | ListSamplePointerType |
| typedef TListSample | ListSampleType |
| typedef MapType::Pointer | MapPointerType |
| typedef TMap | MapType |
| typedef MapType::PixelType | NeuronType |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef MapType::RegionType | RegionType |
| typedef SOM | Self |
| typedef MapType::SizeType | SizeType |
| typedef Functor::CzihoSOMLearningBehaviorFunctor | SOMLearningBehaviorFunctorType |
| typedef Functor::CzihoSOMNeighborhoodBehaviorFunctor | SOMNeighborhoodBehaviorFunctorType |
| typedef itk::ImageSource< TMap > | Superclass |
| typedef NeuronType::ValueType | ValueType |
Public Member Functions | |
| virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
| virtual const char * | GetNameOfClass () const |
Public Member Functions inherited from otb::SOM< TListSample, TMap, Functor::CzihoSOMLearningBehaviorFunctor, Functor::CzihoSOMNeighborhoodBehaviorFunctor > | |
| virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
| virtual const char * | GetNameOfClass () const |
| virtual void | SetNumberOfIterations (unsigned int _arg) |
| virtual unsigned int | GetNumberOfIterations () |
| virtual void | SetBetaInit (double _arg) |
| virtual double | GetBetaInit () |
| virtual void | SetBetaEnd (double _arg) |
| virtual double | GetBetaEnd () |
| virtual void | SetMinWeight (ValueType _arg) |
| virtual ValueType | GetMinWeight () |
| virtual void | SetMaxWeight (ValueType _arg) |
| virtual ValueType | GetMaxWeight () |
| virtual void | SetMapSize (SizeType _arg) |
| virtual SizeType | GetMapSize () |
| virtual void | SetNeighborhoodSizeInit (SizeType _arg) |
| virtual SizeType | GetNeighborhoodSizeInit () |
| virtual void | SetRandomInit (bool _arg) |
| virtual bool | GetRandomInit () |
| virtual void | SetSeed (unsigned int _arg) |
| virtual unsigned int | GetSeed () |
| itkGetObjectMacro (ListSample, ListSampleType) | |
| virtual void | SetListSample (ListSampleType *_arg) |
| void | SetBetaFunctor (const SOMLearningBehaviorFunctorType &functor) |
| void | SetNeighborhoodSizeFunctor (const SOMNeighborhoodBehaviorFunctorType &functor) |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from otb::SOM< TListSample, TMap, Functor::CzihoSOMLearningBehaviorFunctor, Functor::CzihoSOMNeighborhoodBehaviorFunctor > | |
| static Pointer | New () |
Protected Member Functions | |
| void | AllocateOutputs () override |
| void | GenerateData (void) override |
| void | GenerateOutputInformation () override |
| PeriodicSOM () | |
| void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
| void | Step (unsigned int currentIteration) override |
| void | UpdateMap (const NeuronType &sample, double beta, SizeType &radius) override |
| ~PeriodicSOM () override | |
Protected Member Functions inherited from otb::SOM< TListSample, TMap, Functor::CzihoSOMLearningBehaviorFunctor, Functor::CzihoSOMNeighborhoodBehaviorFunctor > | |
| SOM () | |
| ~SOM () override | |
| void | GenerateOutputInformation () override |
| void | AllocateOutputs () override |
| void | GenerateData (void) override |
| void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
Private Member Functions | |
| void | operator= (const Self &)=delete |
| PeriodicSOM (const Self &)=delete | |
Additional Inherited Members | |
Static Public Attributes inherited from otb::SOM< TListSample, TMap, Functor::CzihoSOMLearningBehaviorFunctor, Functor::CzihoSOMNeighborhoodBehaviorFunctor > | |
| static const unsigned int | MapDimension |
This class is responsible for the learning of a self organizing map when considered as a torus.
This class extends the SOM object which implements the Self Organizing Map (or Kohonen map) learning.
The learning process iteratively select the best-response neuron for each input vector, enhancing its response and the response of its neighbors with respect to a certain radius, computed from an initial radius, and to a certain learning factor, decreasing at each iteration.
The behavior of the neighborhood is given by a functor (templated) which parameter is the current iteration. It returns a neighborhood of type
.
The behavior of the learning factor (hold by a beta variable) is given by an other functor which parameter is the current iteration. It returns a beta value of type
.
The SOMMap produced as output can be either initialized with a constant custom value or randomly generated following a normal law. The seed for the random initialization can be modified.
Definition at line 61 of file otbPeriodicSOM.h.
| typedef itk::SmartPointer<const Self> otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::ConstPointer |
Definition at line 69 of file otbPeriodicSOM.h.
| typedef MapType::IndexType otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::IndexType |
Definition at line 82 of file otbPeriodicSOM.h.
| typedef ListSampleType::Pointer otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::ListSamplePointerType |
Definition at line 78 of file otbPeriodicSOM.h.
| typedef TListSample otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::ListSampleType |
Definition at line 75 of file otbPeriodicSOM.h.
| typedef MapType::Pointer otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::MapPointerType |
Definition at line 85 of file otbPeriodicSOM.h.
| typedef TMap otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::MapType |
Definition at line 79 of file otbPeriodicSOM.h.
| typedef MapType::PixelType otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::NeuronType |
Definition at line 80 of file otbPeriodicSOM.h.
| typedef itk::SmartPointer<Self> otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::Pointer |
Definition at line 68 of file otbPeriodicSOM.h.
| typedef MapType::RegionType otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::RegionType |
Definition at line 84 of file otbPeriodicSOM.h.
| typedef PeriodicSOM otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::Self |
Standard typedefs
Definition at line 66 of file otbPeriodicSOM.h.
| typedef MapType::SizeType otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::SizeType |
Definition at line 83 of file otbPeriodicSOM.h.
| typedef SOM<TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor> otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::Superclass |
Definition at line 67 of file otbPeriodicSOM.h.
| typedef NeuronType::ValueType otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::ValueType |
Definition at line 81 of file otbPeriodicSOM.h.
|
inlineprotected |
Constructor
Definition at line 89 of file otbPeriodicSOM.h.
|
inlineoverrideprotected |
Destructor
Definition at line 94 of file otbPeriodicSOM.h.
|
privatedelete |
|
inlineoverrideprotected |
Output allocation redefinition
Definition at line 105 of file otbPeriodicSOM.h.
| virtual::itk::LightObject::Pointer otb::PeriodicSOM< TListSample, TMap, TSOMLearningBehaviorFunctor, TSOMNeighborhoodBehaviorFunctor >::CreateAnother | ( | void | ) | const |
|
inlineoverrideprotected |
Main computation method
Definition at line 111 of file otbPeriodicSOM.h.
|
inlineoverrideprotected |
Output information redefinition
Definition at line 99 of file otbPeriodicSOM.h.
|
virtual |
Runtime information macro
|
static |
Creation through object factory macro
|
privatedelete |
|
inlineoverrideprotected |
PrintSelf method
Definition at line 133 of file otbPeriodicSOM.h.
|
inlineoverrideprotectedvirtual |
Step one iteration.
Reimplemented from otb::SOM< TListSample, TMap, Functor::CzihoSOMLearningBehaviorFunctor, Functor::CzihoSOMNeighborhoodBehaviorFunctor >.
Definition at line 127 of file otbPeriodicSOM.h.
|
overrideprotectedvirtual |
Update the output map with a new sample.
| sample | The new sample to learn, |
| beta | The learning coefficient, |
| radius | The radius of the nieghbourhood. |
Update the output map with a new sample.
| sample | The new sample to learn, |
| beta | The learning coefficient, |
| radius | The radius of the neighbourhood. |
Reimplemented from otb::SOM< TListSample, TMap, Functor::CzihoSOMLearningBehaviorFunctor, Functor::CzihoSOMNeighborhoodBehaviorFunctor >.
Definition at line 41 of file otbPeriodicSOM.hxx.
1.8.17