-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.hpp
60 lines (47 loc) · 2.29 KB
/
main.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
// Created by Yu Sun on 11/14/18.
//
#pragma once
#include <iostream>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/common/transforms.h>
#include <pcl/features/normal_3d_omp.h>
#include <pcl/recognition/cg/geometric_consistency.h>
#include <pcl/features/shot_omp.h>
#include "src/sample.h"
#include "src/shot.h"
#include "src/grid.h"
#include "src/search.h"
#include "src/shot_lrf.h"
#include "util/utilityCore.hpp"
using namespace std;
bool showKeyPoints = false;
bool toggled_keypoints = false;
bool showNormals = false;
bool toggled_normals = false;
bool showCorresp = true;
bool toggled_corresp = false;
int iter = 0;
boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer;
void display(const pcl::PointCloud<PointType>::ConstPtr &model,
const pcl::PointCloud<PointType >::ConstPtr &model_keypoints,
const pcl::PointCloud<PointType>::ConstPtr &scene,
const pcl::PointCloud<PointType >::ConstPtr &scene_keypoints,
const pcl::PointCloud<pcl::Normal>::ConstPtr &scene_normals,
const pcl::CorrespondencesConstPtr &model_scene_corrs,
const std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f> > &rototranslations,
const std::vector<pcl::Correspondences> &clustered_corrs);
void detectionInit(const pcl::PointCloud<PointType>::ConstPtr &model,
const pcl::PointCloud<PointType >::Ptr &model_keypoints,
const pcl::PointCloud<pcl::Normal>::Ptr &model_normals,
const pcl::PointCloud<pcl::SHOT352>::Ptr &model_descriptors);
void detect(const pcl::PointCloud<pcl::SHOT352>::ConstPtr &model_descriptors,
const pcl::PointCloud<PointType>::ConstPtr &scene,
const pcl::PointCloud<PointType >::Ptr &scene_keypoints,
const pcl::PointCloud<pcl::Normal>::Ptr &scene_normals,
const pcl::PointCloud<pcl::SHOT352>::Ptr &scene_descriptors,
const pcl::CorrespondencesPtr &model_scene_corrs);
void computeDescriptor(const pcl::PointCloud<PointType>::ConstPtr &model,
const pcl::PointCloud<PointType >::Ptr &model_keypoints,
const pcl::PointCloud<pcl::Normal>::Ptr &model_normals,
const pcl::PointCloud<pcl::SHOT352>::Ptr &model_descriptors);