aboutsummaryrefslogtreecommitdiff
path: root/pdp_opencv.c
blob: 59a2ea946a6ad1f9fa0affadb0711e91534eb6e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
 *   Pure Data Packet system implementation: setup code
 *   Copyright (c) by Tom Schouten <pdp@zzz.kotnet.org>
 *
 *   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 <stdio.h>
#include <m_pd.h>

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);
void pdp_opencv_dft_setup(void);
void pdp_opencv_knear_setup(void);
void pdp_opencv_hu_moments_setup(void);
void pdp_opencv_hu_compare_setup(void);
void pdp_opencv_pgh_compare_setup(void);
void pdp_opencv_bgstats_setup(void);
void pdp_opencv_surf_setup(void);
void pdp_opencv_lk_setup(void);
void pdp_opencv_athreshold_setup(void);
void pdp_opencv_channels_setup(void);
void pdp_opencv_hough_lines_setup(void);
void pdp_opencv_hough_circles_setup(void);
void pdp_opencv_camshift_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_dft_setup();
    pdp_opencv_knear_setup();
    pdp_opencv_hu_moments_setup();
    pdp_opencv_hu_compare_setup();
    pdp_opencv_pgh_compare_setup();
    pdp_opencv_bgstats_setup();
    pdp_opencv_surf_setup();
    pdp_opencv_lk_setup();
    pdp_opencv_athreshold_setup();
    pdp_opencv_channels_setup();
    pdp_opencv_hough_lines_setup();
    pdp_opencv_hough_circles_setup();
    pdp_opencv_camshift_setup();

    pdp_opencv_initialized++;


}

#ifdef __cplusplus
}
#endif