//****************************************************************************** // Rblti, Copyright 2005,2006 by Michael Neuroth and Heri Andria // $Id$ //****************************************************************************** //%include utils.i %module rblti %include utils.i %include dep.i %import basedata.i %include base_functors_imported.i // Points, Contours and Shape Manipulation HANDLE_FUNCTOR_WITH_PARAMETERS( borderExtrema, "ltiBorderExtrema.h") HANDLE_FUNCTOR_WITH_PARAMETERS( interpolator, "ltiInterpolator.h") HANDLE_FUNCTOR_WITH_PARAMETERS( variablySpacedSamplesInterpolator, "ltiVariablySpacedSamplesInterpolator.h") //HANDLE_FUNCTOR_WITH_PARAMETERS( cubicSpline, "ltiCubicSpline.h") // Template Klasse !!! // %{ // %template(icubicSpline) cubicSpline; // %} //TODO HANDLE_FUNCTOR_WITH_PARAMETERS( boundingBox, "ltiBoundingBox.h") // Template Klasse !!! HANDLE_FUNCTOR_WITH_PARAMETERS( polygonApproximation, "ltiPolygonApproximation.h") HANDLE_FUNCTOR_WITH_PARAMETERS( convexHull, "ltiConvexHull.h") //%ignore genericMatrix::castFrom(const genericMatrix &); namespace lti{ %ignore regionsPolygonizer::apply(const matrix &, const int, std::vector &) const; %ignore regionsPolygonizer::apply(const matrix &, const int, std::vector &, std::vector &, matrix &) const; } HANDLE_FUNCTOR_WITH_PARAMETERS( regionsPolygonizer, "ltiRegionsPolygonizer.h") %extend lti::regionsPolygonizer{ bool apply(const matrix& imat, std::vector& poly)const { return self->apply(imat,imat.maximum(), poly); } bool apply(const matrix& imat, std::vector& poly, std::vector& border, matrix& neigh) const { return self->apply(imat,imat.maximum(), poly, border, neigh); } }