OTB  9.0.0
Orfeo Toolbox
Public Types | List of all members
otb::CorrectPolygonFunctor< TPolygon > Class Template Reference

#include <otbCorrectPolygonFunctor.h>

Public Types

typedef PolygonType::Pointer PolygonPointerType
 
typedef TPolygon PolygonType
 
typedef otb::SimplifyPathFunctor< PolygonType, PolygonTypeSimplifyFunctorType
 
typedef ClosePathFunctor< PolygonType, PolygonTypeCloseFunctorType
 
 CorrectPolygonFunctor ()
 
 ~CorrectPolygonFunctor ()
 
PolygonPointerType operator() (const TPolygon *input)
 

Detailed Description

template<class TPolygon>
class otb::CorrectPolygonFunctor< TPolygon >

This filter simplify and close the input polygon, making the last point equal to the first one.

This filter may be useful when a truly closed polygon is needed (to draw it for example)

See also
UnaryFunctorObjectListFilter

Definition at line 42 of file otbCorrectPolygonFunctor.h.

Member Typedef Documentation

◆ CloseFunctorType

template<class TPolygon >
typedef ClosePathFunctor<PolygonType, PolygonType> otb::CorrectPolygonFunctor< TPolygon >::CloseFunctorType

Some typedefs specific to functors

Definition at line 50 of file otbCorrectPolygonFunctor.h.

◆ PolygonPointerType

template<class TPolygon >
typedef PolygonType::Pointer otb::CorrectPolygonFunctor< TPolygon >::PolygonPointerType

Definition at line 46 of file otbCorrectPolygonFunctor.h.

◆ PolygonType

template<class TPolygon >
typedef TPolygon otb::CorrectPolygonFunctor< TPolygon >::PolygonType

Definition at line 45 of file otbCorrectPolygonFunctor.h.

◆ SimplifyFunctorType

Some typedefs specific to functors

Definition at line 49 of file otbCorrectPolygonFunctor.h.

Constructor & Destructor Documentation

◆ CorrectPolygonFunctor()

template<class TPolygon >
otb::CorrectPolygonFunctor< TPolygon >::CorrectPolygonFunctor ( )
inline

Some typedefs specific to functors

Definition at line 51 of file otbCorrectPolygonFunctor.h.

◆ ~CorrectPolygonFunctor()

template<class TPolygon >
otb::CorrectPolygonFunctor< TPolygon >::~CorrectPolygonFunctor ( )
inline

Some typedefs specific to functors

Definition at line 54 of file otbCorrectPolygonFunctor.h.

Member Function Documentation

◆ operator()()

template<class TPolygon >
PolygonPointerType otb::CorrectPolygonFunctor< TPolygon >::operator() ( const TPolygon *  input)
inline

create functors

Erase aligned points and close polygon

Definition at line 59 of file otbCorrectPolygonFunctor.h.

References otb::SimplifyPathFunctor< TInput, TOutput >::SetTolerance().


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