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
|
#include "m_pd.h"
extern "C" {
typedef struct pix_opencv
{
t_object x_ob;
} t_pix_opencv;
t_class *pix_opencv_class;
/* this is called when a new "pix_opencv" object is created. */
void *pix_opencv_new(void)
{
t_pix_opencv *x = (t_pix_opencv *)pd_new(pix_opencv_class);
return (void *)x;
}
void pix_opencv_setup(void)
{
verbose(-1,"pix_opencv %s library by Antoine Villeret 2012-2014",VERSION);
verbose(-1,"\tbased on work by Yves Degoyon and Lluis Gomez i Bigorda");
verbose(-1,"\tbuilt on %s",__DATE__);
#if HAVE_LIBOPENCV_NONFREE
verbose(-1,"\twith non-free features");
#else
verbose(-1,"\twithout non-free features");
#endif
#ifdef HAVE_FACETRACKER
verbose(-1,"\twith FaceTracker.");
#else
verbose(-1,"\tand without FaceTracker.");
#endif
pix_opencv_class = class_new(gensym("pix_opencv"), (t_newmethod)pix_opencv_new, 0,
sizeof(t_pix_opencv), 0, (t_atomtype) 0);
}
} // extern "C"
|