From db131dd7f6e5f9c222198a74b3f11e7f99f4da70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?llu=C3=ADs=20g=C3=B3mez=20i=20bigord=C3=A0?= Date: Sun, 25 May 2008 21:32:41 +0000 Subject: First svn commit svn path=/trunk/externals/pdp_opencv/; revision=9912 --- pdp_opencv.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 pdp_opencv.c (limited to 'pdp_opencv.c') diff --git a/pdp_opencv.c b/pdp_opencv.c new file mode 100644 index 0000000..2e0dd4c --- /dev/null +++ b/pdp_opencv.c @@ -0,0 +1,81 @@ +/* + * Pure Data Packet system implementation: setup code + * Copyright (c) by Tom Schouten + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + */ + +#include +#include + +static int pdp_opencv_initialized = 0; + +/* all symbols are C style */ +#ifdef __cplusplus +extern "C" +{ +#endif + +void pdp_opencv_edge_setup(void); +void pdp_opencv_threshold_setup(void); +void pdp_opencv_bgsubstract_setup(void); +void pdp_opencv_distrans_setup(void); +void pdp_opencv_laplace_setup(void); +void pdp_opencv_motempl_setup(void); +void pdp_opencv_morphology_setup(void); +void pdp_opencv_haarcascade_setup(void); +void pdp_opencv_floodfill_setup(void); +void pdp_opencv_contours_convexity_setup(void); +void pdp_opencv_contours_boundingrect_setup(void); +void pdp_opencv_lk_setup(void); + + +/* library setup routine */ +void pdp_opencv_setup(void){ + + if (pdp_opencv_initialized) return; + + /* babble */ +#ifdef PDP_CV_VERSION + post("PDP_opencv: pure data packet openCV wrapper version " PDP_CV_VERSION ); +#else + post ("PDP_opencv: pure data packet openCV wrapper"); +#endif + + + /* setup pdp_opencv system */ + pdp_opencv_edge_setup(); + pdp_opencv_threshold_setup(); + pdp_opencv_bgsubstract_setup(); + pdp_opencv_distrans_setup(); + pdp_opencv_laplace_setup(); + pdp_opencv_motempl_setup(); + pdp_opencv_morphology_setup(); + pdp_opencv_haarcascade_setup(); + pdp_opencv_floodfill_setup(); + pdp_opencv_contours_convexity_setup(); + pdp_opencv_contours_boundingrect_setup(); + pdp_opencv_lk_setup(); + + + pdp_opencv_initialized++; + + +} + +#ifdef __cplusplus +} +#endif -- cgit v1.2.1