open3d

how to accelerate the numpy for-loop, for coloring point-cloud by its intensity

how to accelerate the numpy for-loop, for coloring point-cloud by its intensity Question: enter code hereI want to color a point-cloud by its intensity. currently I use the following for-loop to apply a colormap function to the intensity(4th-dim) of points: import numpy as np points = np.random.random([128*1200,4]) points_colors = np.zeros([points.shape[0], 3]) for idx, p_c in …

Total answers: 1

Python: TypeError: draw_geometries(): incompatible function arguments

Python: TypeError: draw_geometries(): incompatible function arguments Question: I am trying to implement an Open3D model to generate point cloud from a monocular depth map. Referred to this YouTube video – https://youtu.be/teHGdlGhQZo OpenCV == 4.4.0 Open3D == 0.15.1 BGR Image – 640x480x3 Depth Image – 640x480x3 Code – import open3d as o3d import numpy as np …

Total answers: 1

How to create a basic gui with pointcloud updates using Open3D?

How to create a basic gui with pointcloud updates using Open3D? Question: I’m updating a point cloud from a depth camera stream and I’d like to create a basic UI for a bounding box to crop the point cloud. I’ve made progress using open3d.visualization.VisualizerWithKeyCallback but I haven’t figured out a way to get access to …

Total answers: 1

UnsatisfiableError while installing open3d with conda

UnsatisfiableError while installing open3d with conda Question: I’m trying to install open3d into my conda environment. This is what I did: conda create –name env python=3.9 -y conda activate env conda install -c open3d-admin open3d But the last command fails with this output: Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. …

Total answers: 1

Can not downsample a point cloud in open3D

Can not downsample a point cloud in open3D Question: I am new to open3D pythong binding. I am trying to downsample a point clout and I have this code: import open3d as o3d input_file=’mypoints.ply’ pcd = o3d.io.read_point_cloud(input_file) voxel_down_pcd = o3d.geometry.voxel_down_sample(pcd, voxel_size=0.02) o3d.visualization.draw_geometries([voxel_down_pcd]) but when I run the code I am getting this error: module ‘open3d.cpu.pybind.geometry’ …

Total answers: 2

Obtaining a vector of coordinates from a vector of indexes from a point cloud

Obtaining a vector of coordinates from a vector of indexes from a point cloud Question: I was tinkering around with open3d and I got to the point where I found myself having a vector made from the index of each point I got from a radius search and it looks somewhat like this: [1500, 1497, …

Total answers: 1

how to make an open stl file watertight

how to make an open stl file watertight Question: Newbie here! I have an STL file which is not watertight and the gap is quite big to repair with the close vertex of the trimesh. I tried with open3d by following this but I have the following error: "ValueError: vector too long".. Is there any …

Total answers: 1

how to import o3dtut in open3d

how to import o3dtut in open3d Question: I am a beginner in open3d. I want to try some examples in the document. But I can’t find any information about how to import o3dtut. mesh = o3dtut.get_bunny_mesh() pcd = mesh.sample_points_poisson_disk(750) o3d.visualization.draw_geometries([pcd]) alpha = 0.03 print(f"alpha={alpha:.3f}") mesh = o3d.geometry.TriangleMesh.create_from_point_cloud_alpha_shape( pcd, alpha) mesh.compute_vertex_normals() o3d.visualization.draw_geometries([mesh], mesh_show_back_face=True) the code was …

Total answers: 2

How can I output the open3d geometry PointCloud as .pcd file?

How can I output the open3d geometry PointCloud as .pcd file? Question: I am converting a lidar data (in .bin format) into .pcd format with the following code with open (“lidar_velodyne64.bin”, “rb”) as f: byte = f.read(size_float*4) while byte: x,y,z,intensity = struct.unpack(“ffff”, byte) list_pcd.append([x, y, z]) byte = f.read(size_float*4) np_pcd = np.asarray(list_pcd) pcd = o3d.geometry.PointCloud() …

Total answers: 1