Skip to content

Commit b4a33be

Browse files
author
Daniel
authored
Update README.md
1 parent a963911 commit b4a33be

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,50 @@
11
# upsamplingCloudPCL
22
Upsampling 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+

0 commit comments

Comments
 (0)