DracoPy icon indicating copy to clipboard operation
DracoPy copied to clipboard

encoding and decoding intensity values in point cloud

Open shravanbk11 opened this issue 3 years ago • 3 comments

Hi, I am trying to encode and decode, intensity values from a LIDAR along with the 3D position information (point cloud). May I know if there is any way to do that?

shravanbk11 avatar Jul 20 '22 21:07 shravanbk11

Hi, I am not sure. Your data are stored in Draco format? Do you have any idea how the intensity values are stored? This library currently only supports a subset of Draco's full feature set.

william-silversmith avatar Jul 20 '22 21:07 william-silversmith

Thank you for the quick response. The data is stored as a [N * 4] dimension NumPy array. Where the first 3 dimensions correspond to the position and the last is the intensity. As of now, I am able to encode the position as a 3D NumPy array using the Draco.encode() method. The intensity values can either be stored as integer or float values in a NumPy array which denotes the reflectance value of each point in the point cloud.

shravanbk11 avatar Jul 21 '22 19:07 shravanbk11

DracoPy 1.2.0 was just released with support for a uint8 color attribute. Try giving that a spin it might be what you're looking for. Thanks to @zeruniverse for the contribution!

william-silversmith avatar Aug 19 '22 06:08 william-silversmith