43 #include <pcl/people/person_cluster.h>
44 #include <pcl/people/hog.h>
50 template <
typename Po
intT>
class PersonClassifier;
52 template <
typename Po
intT>
98 setSVM (
int window_height,
int window_width, std::vector<float> SVM_weights,
float SVM_offset);
109 getSVM (
int& window_height,
int& window_width, std::vector<float>& SVM_weights,
float& SVM_offset);
121 int width,
int height);
135 int xmin,
int ymin,
int width,
int height);
160 evaluate (
PointCloudPtr& image, Eigen::Vector3f& bottom, Eigen::Vector3f& top, Eigen::Vector3f& centroid,
165 #include <pcl/people/impl/person_classifier.hpp>
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< PointCloud< PointT > > Ptr
void copyMakeBorder(PointCloudPtr &input_image, PointCloudPtr &output_image, int xmin, int ymin, int width, int height)
Copies an image and makes a black border around it, where the source image is not present.
virtual ~PersonClassifier()
Destructor.
PersonClassifier()
Constructor.
double evaluate(float height, float xc, float yc, PointCloudPtr &image)
Classify the given portion of image.
int window_height_
Height of the image patch to classify.
typename PointCloud::Ptr PointCloudPtr
void setSVM(int window_height, int window_width, std::vector< float > SVM_weights, float SVM_offset)
Set trained SVM for person confidence estimation.
bool loadSVMFromFile(const std::string &svm_filename)
Load SVM parameters from a text file.
std::vector< float > SVM_weights_
SVM weights vector.
void getSVM(int &window_height, int &window_width, std::vector< float > &SVM_weights, float &SVM_offset)
Get trained SVM for person confidence estimation.
int window_width_
Width of the image patch to classify.
float SVM_offset_
SVM offset.
void resize(PointCloudPtr &input_image, PointCloudPtr &output_image, int width, int height)
Resize an image represented by a pointcloud containing RGB information.