File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# upsamplingCloudPCL
22Upsampling method for upsampling an input cloud using mls method of PCL 1.9.1
3+
4+ ## Input file structure support
5+
6+ * .pcd
7+ * .ply
8+ * .txt
9+ * .xyz
10+
11+ ## Output file structure (.pcd)
12+
13+ * umsampled_cloud.pcd
14+
15+ ## Example
16+ <img src =" ./example/scan1.png " align =" center " height =" 400 " width =" 720 " ><br >
17+
18+ -------------------
19+ ## Compilation
20+ * Set "YOUR OWN" PCL Build DIR in CMakeList.txt e.g: ** /opt/pcl-1.8.1/build** and save it.
21+ * Create a "build" folder
22+
23+ in the main folder:
24+
25+ - cd build
26+ - cmake ../
27+ - make
28+
29+
30+ ### Test
31+
32+ cd /build
33+ ./upsampling_cloud <cloud file>
34+
35+ ## Note
36+
37+ You can set different params for get better results
38+
39+ mls.setComputeNormals(true);
40+ mls.setInputCloud(input_cloud);
41+ mls.setSearchMethod(kd_tree);
42+ mls.setSearchRadius(search_radius);
43+ mls.setUpsamplingMethod(pcl::MovingLeastSquares<pcl::PointXYZRGB, pcl::PointXYZRGB>::UpsamplingMethod::SAMPLE_LOCAL_PLANE);
44+ mls.setUpsamplingRadius(sampling_radius);
45+ mls.setUpsamplingStepSize(step_size);
46+ mls.setPolynomialOrder(pol_order);
47+ mls.setSqrGaussParam(gauss_param);// (the square of the search radius works best in general)
48+ mls.setCacheMLSResults(true);//Set whether the mls results should be stored for each point in the input cloud.
49+ mls.setNumberOfThreads(num_threats);
50+
You can’t perform that action at this time.
0 commit comments