Elo329
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' 'defines'
cv_yuv_codebook.h
Ir a la documentaciĆ³n de este archivo.
1 #ifndef CVYUV_CB
2 #define CVYUV_CB
3 
4 
5 #include <cv.h> // define all of the opencv classes etc.
6 #include <highgui.h>
7 #include <cxcore.h>
8 
9 #define CHANNELS 3
10 
11 typedef struct ce {
12  uchar learnHigh[CHANNELS]; //High side threshold for learning
13  uchar learnLow[CHANNELS]; //Low side threshold for learning
14  uchar max[CHANNELS]; //High side of box boundary
15  uchar min[CHANNELS]; //Low side of box boundary
16  int t_last_update; //This is book keeping to allow us to kill stale entries
17  int stale; //max negative run (biggest period of inactivity)
18 } code_element;
19 
20 typedef struct code_book {
23  int t; //count every access
24 } codeBook;
25 
40 int cvupdateCodeBook(uchar *p, codeBook &c, unsigned *cbBounds, int numChannels = 3);
41 
57 uchar cvbackgroundDiff(uchar *p, codeBook &c, int numChannels, int *minMod, int *maxMod);
58 
59 
60 
70 /
87 int cvcountSegmentation(codeBook *c, IplImage *I, int numChannels, int *minMod, int *maxMod);
88 
102 void cvconnectedComponents(IplImage *mask, int poly1_hull0=1, float perimScale=4.0,
103  int *num=NULL, CvRect *bbs=NULL, CvPoint *centers=NULL, int nClose=0);
104 
105 #endif
106