3D点云数据增强
寫在前面的話:做數據增強一定要注意:不要固定seed,不然每次random的數都是一樣的
付費文章,請勿轉載!
本文將介紹以下幾種數據增強的方法: Jitter, Flip, Rotation,Offset, Elastic, Crop.并附上代碼。 我們使用ScannetV2中的‘scene0332_01’作為例子進行處理,如下圖所示:
繪圖代碼如下所示,注意所需matplotlib版本為2.2.0
# # matplotlib == 2.2.0 def get_ptcloud_img(xyz, rgb, title):fig = plt.figure(figsize=(5, 5))x, y, z = xyz[:, 0], xyz[:, 1], xyz[:, 2]ax = Axes3D(fig)ax.view_init(90, -90) # view angle# ax.axis('off')# plot point# max, min = np.max(xyz), np.min(xyz)max_x, min_x = np.max(x), np.min(x)max_y,總結
- 上一篇: 《你的灯亮着吗》阅读笔记(三)
- 下一篇: qt下载慢怎么办?