easyidp.pointcloud.read_laz#

easyidp.pointcloud.read_laz(laz_path)#

Read the laz file

Parameters:

laz_path (str) – The path to las file

Returns:

points, colors, normals of given point cloud data

Return type:

ndarray, ndarray, ndarray

Example

>>> import easyidp as idp
>>> test_data = idp.data.TestData()

>>> test_data.pcd.lotus_ply_asc
WindowsPath('C:/Users/<User>/AppData/Local/easyidp.data/data_for_tests/pcd_test/hasu_tanashi.laz')
>>> points, colors, normals = idp.pointcloud.read_laz(test_data.pcd.lotus_laz)

>>> points
array([[-18.908312, -15.777558,  -0.77878 ],
       [-18.90828 , -15.777274,  -0.78026 ],
       [-18.907196, -15.774829,  -0.801748],
       ...,
       [-15.78929 , -17.96126 ,  -0.846867],
       [-15.788581, -17.939104,  -0.839632],
       [-15.786219, -17.936579,  -0.832714]], dtype=float32)
>>> colors
array([[123, 103,  79],
       [124, 104,  81],
       [123, 103,  80],
       ...,
       [116,  98,  80],
       [113,  95,  76],
       [115,  97,  78]], dtype=uint8)