slicing point cloud #6343
Replies: 9 comments
-
The way i'm doing this is by down sampling the original_pcd and then also create a voxelgrid from the original_pcd.
to change the slice direction you need to adjust the coord[0] number, but i can't remember which was which. I hope that helps |
Beta Was this translation helpful? Give feedback.
-
Try below code. The coordinate frame helps in visualizing X,Y,Z directions. Here I have used bounding box to crop the pointcloud but can also edit pointcloud points and colors field directly. Convert to numpy array and then back.
|
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply. Actually I'm trying to slice the 3D point cloud into 2D sectional area. Is it possible like that? Thank you |
Beta Was this translation helpful? Give feedback.
-
Could you explain what you mean by slicing? |
Beta Was this translation helpful? Give feedback.
-
Hello, Actually I have a project on how to create a simple 3D model from 3D point cloud data. For this time, I use simple 3D point cloud object for example a box. Slicing means that I cut the 3D point cloud data in horizontal and vertical axis depend on the object. I'm still new with this and I hope anyone have idea to help me with this. Thank you |
Beta Was this translation helpful? Give feedback.
-
@lurunawjan Well, my above comment should address your need, but for complex scenarious, you can directly work with pcd.points and pcd.colors. PCD.points -> convert to numpy array -> Do your transforms -> convert to PCD.points Just remember that you will have to do same operation for colors as well. If you drop half vertices in points array, you will have to drop half vertices in color array as well. |
Beta Was this translation helpful? Give feedback.
-
If you mean cropping, here is a minimal example: |
Beta Was this translation helpful? Give feedback.
-
pcd = o3d.io.read_point_cloud(pcd_file_path) # your point cloud |
Beta Was this translation helpful? Give feedback.
-
There are multiple good answers. Marking this as solved |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
master
branch).My Question
Hello, I wanted to ask, is there a way to slice point cloud either in horizontally or vertically?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions