21 #ifndef otbCorrectPolygonFunctor_h 22 #define otbCorrectPolygonFunctor_h 41 template <
class TPolygon>
59 inline PolygonPointerType
operator()(
const TPolygon* input)
62 SimplifyFunctorType simplifyFunctor;
63 CloseFunctorType closeFunctor;
68 return closeFunctor(simplifyFunctor(input));
PolygonPointerType operator()(const TPolygon *input)
void SetTolerance(double Tolerance)
PolygonType::Pointer PolygonPointerType
otb::SimplifyPathFunctor< PolygonType, PolygonType > SimplifyFunctorType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
This filter close the input path, making the last point equal to the first one.
This filter simplify and close the input polygon, making the last point equal to the first one...
This filter performs a simplification of the input path.
ClosePathFunctor< PolygonType, PolygonType > CloseFunctorType