Point Cloud Library (PCL)
1.11.1-dev
|
43 #include <pcl/people/person_cluster.h>
44 #include <pcl/people/hog.h>
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>
std::vector< float > SVM_weights_
SVM weights vector.
void resize(PointCloudPtr &input_image, PointCloudPtr &output_image, int width, int height)
Resize an image represented by a pointcloud containing RGB information.
typename PointCloud::Ptr PointCloudPtr
double evaluate(float height, float xc, float yc, PointCloudPtr &image)
Classify the given portion of image.
void setSVM(int window_height, int window_width, std::vector< float > SVM_weights, float SVM_offset)
Set trained SVM for person confidence estimation.
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.
shared_ptr< PointCloud< PointT > > Ptr
float SVM_offset_
SVM offset.
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_height_
Height of the image patch to classify.
PersonClassifier()
Constructor.
virtual ~PersonClassifier()
Destructor.
int window_width_
Width of the image patch to classify.
bool loadSVMFromFile(std::string svm_filename)
Load SVM parameters from a text file.