forked from neka-nat/cupoch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Getting Started | ||
|
||
As an introduction, let's try to process the point cloud. | ||
The point cloud file used as a sample is located `examples/testdata/fragment.pcd`. | ||
|
||
The first step is to import `cupoch`. | ||
We will name it `cph` for short and use it in the following. | ||
|
||
```py | ||
import cupoch as cph | ||
``` | ||
|
||
Before we get into the actual program, let's check if CUDA is available. | ||
If you get `True` when executing the following function, CUDA is available. | ||
|
||
```py | ||
cph.utility.is_cuda_available() | ||
# True or False | ||
``` | ||
|
||
If the check is `True`, try to read the point cloud file. | ||
|
||
```py | ||
pointcloud = cph.io.read_point_cloud("examples/testdata/fragment.pcd") | ||
``` | ||
|
||
Once successfully loaded, try to display the loaded point cloud. | ||
Use visualizer as follows. | ||
|
||
```py | ||
cph.visualization.draw_geometries([pointcloud]) | ||
``` | ||
|
||
If the following window appears, you have succeeded. | ||
|
||
 | ||
|
||
Close the window and then downsample. | ||
Call the function that performs downsampling as follows. | ||
|
||
```py | ||
downsampled = pointcloud.voxel_down_sample(0.05) | ||
``` | ||
|
||
Draw the point cloud after downsampling. | ||
|
||
 | ||
|
||
That concludes our introduction! | ||
There's plenty of other features you can use and experiment with! |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.