icub-basic-demos
pf3dTrackerSupport.hpp
1 
7 #ifndef _PF3DTRACKERSUPPORT_
8 #define _PF3DTRACKERSUPPORT_
9 
10 #include <ctime>
11 #include <fstream>
12 #include <iomanip>
13 #include <iostream>
14 #include <sstream>
15 #include <string>
16 
17 #include <yarp/os/LogStream.h>
18 
19 #ifdef _CH_
20 #pragma package <opencv>
21 #endif
22 #ifndef _EiC
23 #include <opencv2/opencv.hpp>
24 #include <opencv2/highgui/highgui.hpp>
25 #include <opencv2/core/types_c.h>
26 #endif
27 
28 struct Lut
29 {
30  int y;
31  int u;
32  int v;
33 };
34 
35 void rgbToYuvBin(int &R, int &G, int &B, int &YBin, int &UBin, int &VBin);
36 
37 void rgbToYuvBinImage(IplImage *image,IplImage *yuvBinsImage);
38 
39 void rgbToYuvBinMatLut(const cv::Mat& image, cv::Mat& yuvBinsImage, Lut *lut);
40 void rgbToYuvBinImageLut(IplImage *image,IplImage *yuvBinsImage, Lut *lut);
41 
42 void setPixel(int u, int v, int r, int g, int b, IplImage *image);
43 
44 void fillLut(Lut *lut);
45 
46 #endif /* _PF3DTRACKERSUPPORT_ */
Copyright: (C) 2009 RobotCub Consortium Authors: Matteo Taiana, Ugo Pattacini CopyPolicy: Released un...