隐式形状模型识别方法(一):训练阶段
1.代码
#include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/features/normal_3d.h>
#include <pcl/features/feature.h>
#include <pcl/visualization/cloud_viewer.h>
#include <pcl/features/fpfh.h>
#include <pcl/features/impl/fpfh.hpp>
#include <pcl/recognition/implicit_shape_model.h>
int
main(int argc, char** argv)
{
if (argc == 0)
{
std::cout << std::endl;
std::cout << "Usage: " << argv[0] << "class1.pcd class1_label(int) class2.pcd class2_label" << std::endl << std::endl;
return (-1);
}
unsigned int number_of_training_clouds = (argc - 1) /