Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #ifndef PCL_PEOPLE_PERSON_CLASSIFIER_H_
00042 #define PCL_PEOPLE_PERSON_CLASSIFIER_H_
00043
00044 #include <pcl/people/person_cluster.h>
00045 #include <pcl/people/hog.h>
00046
00047 namespace pcl
00048 {
00049 namespace people
00050 {
00051 template <typename PointT> class PersonClassifier;
00052
00053 template <typename PointT>
00054 class PersonClassifier
00055 {
00056 protected:
00057
00059 int window_height_;
00060
00062 int window_width_;
00063
00065 float SVM_offset_;
00066
00068 std::vector<float> SVM_weights_;
00069
00070 public:
00071
00072 typedef pcl::PointCloud<PointT> PointCloud;
00073 typedef boost::shared_ptr<PointCloud> PointCloudPtr;
00074
00076 PersonClassifier ();
00077
00079 virtual ~PersonClassifier ();
00080
00087 bool
00088 loadSVMFromFile (std::string svm_filename);
00089
00098 void
00099 setSVM (int window_height, int window_width, std::vector<float> SVM_weights, float SVM_offset);
00100
00109 void
00110 getSVM (int& window_height, int& window_width, std::vector<float>& SVM_weights, float& SVM_offset);
00111
00120 void
00121 resize (PointCloudPtr& input_image, PointCloudPtr& output_image,
00122 int width, int height);
00123
00134 void
00135 copyMakeBorder (PointCloudPtr& input_image, PointCloudPtr& output_image,
00136 int xmin, int ymin, int width, int height);
00137
00147 double
00148 evaluate (float height, float xc, float yc, PointCloudPtr& image);
00149
00160 double
00161 evaluate (PointCloudPtr& image, Eigen::Vector3f& bottom, Eigen::Vector3f& top, Eigen::Vector3f& centroid,
00162 bool vertical);
00163 };
00164 }
00165 }
00166 #include <pcl/people/impl/person_classifier.hpp>
00167 #endif