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