21 #ifndef otbPolygonCompacityFunctor_h
22 #define otbPolygonCompacityFunctor_h
25 #include "vcl_legacy_aliases.h"
26 #include "vnl/vnl_math.h"
48 template <
class TInput1>
71 double circularityRatio = 4 *
CONST_PI * input->GetArea() / vnl_math_sqr(input->GetLength());
Select polygons according to their compacity.
bool operator()(const TInput1 &input)
~PolygonCompacityFunctor()
void SetThreshold(double threshold)
double GetThreshold(void) const
PolygonCompacityFunctor()
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
constexpr double CONST_PI