#include <ros/ros.h>#include <image_transport/image_transport.h>#include <opencv/cvwimage.h>#include <opencv/highgui.h>#include <cv_bridge/cv_bridge.h>#include <sensor_msgs/image_encodings.h>#include <cv.h>#include <ros/package.h>#include <boost/filesystem.hpp>#include <iostream>#include <iterator>#include <algorithm>#include <vector>#include <math.h>#include "opencv/ml.h"#include <fstream>#include <cstdlib>

Go to the source code of this file.
| Classes | |
| struct | FtrParams2 | 
| struct | PedRoi | 
| Defines | |
| #define | CHANNELNR 10 | 
| #define | DWHEIGHT 128 | 
| #define | DWWIDTH 64 | 
| #define | MAXAREAHEIGHT 48 | 
| #define | MAXAREAWIDTH 64 | 
| #define | MINAREA 8 | 
| #define | NOCTUP 0 | 
| #define | NRFEATURE 15000 | 
| #define | NRFEATURE2 NRFEATURE/CHANNELNR | 
| #define | PI 3.14159265359 | 
| #define | SCALEPOCT 8 | 
| #define | SEED 1234 | 
| #define | STEP 4 | 
| #define | THRESHOLD 11 | 
| Typedefs | |
| typedef vector< vec10d > | d10Vector | 
| typedef vector< float > | DVector | 
| typedef vector< FtrParams2 > | FtrVecParams2 | 
| typedef vector< Mat > | MatVector | 
| typedef vector< PedRoi > | PedRoiVec | 
| typedef vector< path > | PVector | 
| typedef Vec< float, CHANNELNR > | vec10d | 
| Functions | |
| void | ComputeChannels (Mat Image, Mat &MergedChannels) | 
| void | GetChnFtrsOverImage (Mat IntegralChannels, CvRect ®ion, vector< float > &features, vector< DVector > &WindowFtrs, FtrVecParams2 Params) | 
| void | GetChnFtrsOverImage (Mat IntegralChannels, CvRect ®ion, vector< float > &features, FtrVecParams2 Params, PedRoiVec &PedRect, CvBoost &boost_classifier) | 
| void | GetChnFtrsOverImagePyramid (Mat Image, CvRect ®ion, vector< float > &features, vector< DVector > &WindowFtrs, int nOctUp, Size minSize, int nPerOct, FtrVecParams2 Params) | 
| void | GetChnFtrsOverImagePyramid (Mat Image, CvRect ®ion, vector< float > &features, int nOctUp, Size minSize, int nPerOct, FtrVecParams2 Params, PedRoiVec &PedRect, CvBoost &boost_classifier) | 
| void | GetChnFtrsOverWindow (Mat IntegralChannels, vector< float > &features, vector< DVector > &WindowFtrs, FtrVecParams2 Params) | 
| void | GetChnFtrsOverWindow (Mat IntegralChannels, vector< float > &features, FtrVecParams2 Params, CvRect region, PedRoiVec &PedRect) | 
| void | GetChnFtrsOverWindow (Mat IntegralChannels, vector< float > &features, vector< DVector > &WindowFtrs, FtrVecParams2 Params, CvRect region) | 
| void | GetChnFtrsOverWindow (Mat IntegralChannels, vector< float > &features, FtrVecParams2 Params, CvRect region, PedRoiVec &PedRect, CvBoost &boost_classifier) | 
| void | GetFileList (string folder_path, PVector &dest_vect) | 
| void | GetIntegralSum (Mat IntegralChannels, vector< float > &features, FtrParams2 Params, CvRect region) | 
| void | GetRandParams (int seed, int NrFtrs, FtrVecParams2 &RandParams, Rect region) | 
| Mat | GradientMagnitude (Mat xsobel, Mat ysobel) | 
| Mat | GradientMagnitude (Mat src) | 
| MatVector | LUVcolourchannels (Mat Img) | 
| MatVector | OrientedGradientsDiagram (Mat GradMag, Mat xsobel, Mat ysobel) | 
| void | PostProcess (Mat Img, vector< Rect > PedRect, FtrVecParams2 randparams, CvBoost &boost_classifier, PedRoiVec &PedRect_Post) | 
| #define CHANNELNR 10 | 
Definition at line 47 of file peddetect.h.
| #define DWHEIGHT 128 | 
Definition at line 51 of file peddetect.h.
| #define DWWIDTH 64 | 
Definition at line 52 of file peddetect.h.
| #define MAXAREAHEIGHT 48 | 
Definition at line 56 of file peddetect.h.
| #define MAXAREAWIDTH 64 | 
Definition at line 55 of file peddetect.h.
| #define MINAREA 8 | 
Definition at line 54 of file peddetect.h.
| #define NOCTUP 0 | 
Definition at line 58 of file peddetect.h.
| #define NRFEATURE 15000 | 
Definition at line 49 of file peddetect.h.
| #define NRFEATURE2 NRFEATURE/CHANNELNR | 
Definition at line 50 of file peddetect.h.
| #define PI 3.14159265359 | 
Definition at line 46 of file peddetect.h.
| #define SCALEPOCT 8 | 
Definition at line 59 of file peddetect.h.
| #define SEED 1234 | 
Definition at line 53 of file peddetect.h.
| #define STEP 4 | 
Definition at line 48 of file peddetect.h.
| #define THRESHOLD 11 | 
Definition at line 57 of file peddetect.h.
Definition at line 91 of file peddetect.h.
| typedef vector<float> DVector | 
Definition at line 93 of file peddetect.h.
| typedef vector<FtrParams2> FtrVecParams2 | 
Definition at line 92 of file peddetect.h.
| typedef vector<Mat> MatVector | 
Definition at line 89 of file peddetect.h.
Definition at line 87 of file peddetect.h.
| typedef vector<path> PVector | 
Definition at line 88 of file peddetect.h.
| typedef Vec<float, CHANNELNR> vec10d | 
Definition at line 90 of file peddetect.h.
| void ComputeChannels | ( | Mat | Image, | |
| Mat & | MergedChannels | |||
| ) | 
Definition at line 186 of file pedfuncs.cpp.
| void GetChnFtrsOverImage | ( | Mat | IntegralChannels, | |
| CvRect & | region, | |||
| vector< float > & | features, | |||
| vector< DVector > & | WindowFtrs, | |||
| FtrVecParams2 | Params | |||
| ) | 
Definition at line 441 of file pedfuncs.cpp.
| void GetChnFtrsOverImage | ( | Mat | IntegralChannels, | |
| CvRect & | region, | |||
| vector< float > & | features, | |||
| FtrVecParams2 | Params, | |||
| PedRoiVec & | PedRect, | |||
| CvBoost & | boost_classifier | |||
| ) | 
Definition at line 388 of file pedfuncs.cpp.
| void GetChnFtrsOverImagePyramid | ( | Mat | Image, | |
| CvRect & | region, | |||
| vector< float > & | features, | |||
| vector< DVector > & | WindowFtrs, | |||
| int | nOctUp, | |||
| Size | minSize, | |||
| int | nPerOct, | |||
| FtrVecParams2 | Params | |||
| ) | 
Definition at line 330 of file pedfuncs.cpp.
| void GetChnFtrsOverImagePyramid | ( | Mat | Image, | |
| CvRect & | region, | |||
| vector< float > & | features, | |||
| int | nOctUp, | |||
| Size | minSize, | |||
| int | nPerOct, | |||
| FtrVecParams2 | Params, | |||
| PedRoiVec & | PedRect, | |||
| CvBoost & | boost_classifier | |||
| ) | 
Definition at line 273 of file pedfuncs.cpp.
| void GetChnFtrsOverWindow | ( | Mat | IntegralChannels, | |
| vector< float > & | features, | |||
| vector< DVector > & | WindowFtrs, | |||
| FtrVecParams2 | Params | |||
| ) | 
| void GetChnFtrsOverWindow | ( | Mat | IntegralChannels, | |
| vector< float > & | features, | |||
| FtrVecParams2 | Params, | |||
| CvRect | region, | |||
| PedRoiVec & | PedRect | |||
| ) | 
| void GetChnFtrsOverWindow | ( | Mat | IntegralChannels, | |
| vector< float > & | features, | |||
| vector< DVector > & | WindowFtrs, | |||
| FtrVecParams2 | Params, | |||
| CvRect | region | |||
| ) | 
Definition at line 583 of file pedfuncs.cpp.
| void GetChnFtrsOverWindow | ( | Mat | IntegralChannels, | |
| vector< float > & | features, | |||
| FtrVecParams2 | Params, | |||
| CvRect | region, | |||
| PedRoiVec & | PedRect, | |||
| CvBoost & | boost_classifier | |||
| ) | 
Definition at line 514 of file pedfuncs.cpp.
| void GetFileList | ( | string | folder_path, | |
| PVector & | dest_vect | |||
| ) | 
Definition at line 153 of file pedfuncs.cpp.
| void GetIntegralSum | ( | Mat | IntegralChannels, | |
| vector< float > & | features, | |||
| FtrParams2 | Params, | |||
| CvRect | region | |||
| ) | 
Definition at line 493 of file pedfuncs.cpp.
| void GetRandParams | ( | int | seed, | |
| int | NrFtrs, | |||
| FtrVecParams2 & | RandParams, | |||
| Rect | region | |||
| ) | 
Definition at line 216 of file pedfuncs.cpp.
| Mat GradientMagnitude | ( | Mat | xsobel, | |
| Mat | ysobel | |||
| ) | 
Definition at line 50 of file pedfuncs.cpp.
| Mat GradientMagnitude | ( | Mat | src | ) | 
Definition at line 30 of file pedfuncs.cpp.
| MatVector LUVcolourchannels | ( | Mat | Img | ) | 
Definition at line 136 of file pedfuncs.cpp.
| MatVector OrientedGradientsDiagram | ( | Mat | GradMag, | |
| Mat | xsobel, | |||
| Mat | ysobel | |||
| ) | 
Definition at line 66 of file pedfuncs.cpp.
| void PostProcess | ( | Mat | Img, | |
| vector< Rect > | PedRect, | |||
| FtrVecParams2 | randparams, | |||
| CvBoost & | boost_classifier, | |||
| PedRoiVec & | PedRect_Post | |||
| ) | 
Definition at line 606 of file pedfuncs.cpp.