charlesq34 / pointnet

PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation
Other
4.73k stars 1.45k forks source link

Will it support for LiDAR data specifically LAS format and PCD format? #96

Open niranjanreddy891 opened 6 years ago

charlesq34 commented 6 years ago

I think one can easily convert those data types to raw point clouds as N by C arrays. You are welcomed to post your converting code (link) here if you'd like to.

niranjanreddy891 commented 6 years ago

@charlesq34, will Pointnet will support for processing LAS files and PCD files?

DBobkov commented 6 years ago

One can easily convert PCD and LAS format to .txt format and then to hdf5 or similar using Python or Matlab. See https://stackoverflow.com/questions/44408141/how-to-convert-las-file-to-ply-file?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa for more info. Liblas library for python can also do the job for las https://www.liblas.org/tutorial/python.html or for pcd https://github.com/dimatura/pypcd

Jaiy commented 6 years ago

@niranjanreddy891 Hello, have you made any progress about the PCD files? I'm interested of the project, could you give me some advices?

niranjanreddy891 commented 6 years ago

I am focusing on raw format i.e., las/ laz files. :) On Tuesday, July 31, 2018, Jaiy notifications@github.com wrote:

@niranjanreddy891 https://github.com/niranjanreddy891 Hello, have you made any progress about the PCD files? I'm interested of the project, could you give me some advices?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/charlesq34/pointnet/issues/96#issuecomment-409085482, or mute the thread https://github.com/notifications/unsubscribe-auth/AgSVaSuxnAlNxAtJkhwBLcKmCSkevryRks5uL9PAgaJpZM4TNo1D .

maryumjam commented 5 years ago

Hi I am wondering how did you go about las/laz files. I have unlabelled asci files and las/laz files. I have converted them to hdf5 files should i sample them to 2048 randomly and what should I do about data labels.

rohitrameshrao commented 4 years ago

@maryumjam were you able to prepare data from las/laz?

zazgf commented 3 years ago

Read pcd file to arrays

import numpy as np 
import open3d as o3d
pcd = o3d.io.read_point_cloud("pointcloud_path.pcd")
out_arr = np.asarray(pcd.points)  

worked.