easyidp.pointcloud.read_ply#
- easyidp.pointcloud.read_ply(ply_path)#
Read the ply file
- パラメータ:
ply_path (str) -- The path to las file
- 戻り値:
points, colors, normals of given point cloud data
- 戻り値の型:
ndarray, ndarray, ndarray
サンプル
>>> 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_ascii.ply') >>> points, colors, normals = idp.pointcloud.read_ply(test_data.pcd.lotus_ply_asc) >>> 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)