Skip to content
Advertisement

Open3d(Python), How to remove points from .ply

I get pointcloud from my Intel RealSense depth camera. And I want to remove extra points that are far away, how do I put a condition in the code?

Code for getting pointcloud:

JavaScript

Code for viewing pointcloud:

JavaScript

That what i want delete: enter image description here

Advertisement

Answer

The question does not say what points exactly are to be removed. Assuming you can provide a sphere of known radius and center location, the following code will remove any points outside that sphere:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement