OTB
9.0.0
Orfeo Toolbox
|
#include <otbPolygonCompacityFunctor.h>
Public Member Functions | |
double | GetThreshold (void) const |
bool | operator() (const TInput1 &input) |
PolygonCompacityFunctor () | |
void | SetThreshold (double threshold) |
~PolygonCompacityFunctor () | |
Private Attributes | |
double | m_Threshold |
Select polygons according to their compacity.
This functor compute the compacity of a polygon and return true is the distance is above the threshold, false otherwise.
The compacity is defined as:
where is the area (obtained by the method GetArea() ) and the perimeter (obtained by the method GetLength() ).
Definition at line 47 of file otbPolygonCompacityFunctor.h.
|
inline |
Definition at line 59 of file otbPolygonCompacityFunctor.h.
References otb::PolygonCompacityFunctor< TInput1 >::m_Threshold.
|
inline |
Definition at line 63 of file otbPolygonCompacityFunctor.h.
|
inline |
Definition at line 54 of file otbPolygonCompacityFunctor.h.
References otb::PolygonCompacityFunctor< TInput1 >::m_Threshold.
|
inline |
Definition at line 67 of file otbPolygonCompacityFunctor.h.
References otb::CONST_PI, and otb::PolygonCompacityFunctor< TInput1 >::m_Threshold.
|
inline |
Definition at line 50 of file otbPolygonCompacityFunctor.h.
References otb::PolygonCompacityFunctor< TInput1 >::m_Threshold.
|
private |
Definition at line 82 of file otbPolygonCompacityFunctor.h.
Referenced by otb::PolygonCompacityFunctor< TInput1 >::GetThreshold(), otb::PolygonCompacityFunctor< TInput1 >::operator()(), otb::PolygonCompacityFunctor< TInput1 >::PolygonCompacityFunctor(), and otb::PolygonCompacityFunctor< TInput1 >::SetThreshold().