使用open3d的estimate_normals函数报错AttributeError
使用方法
...
xyz_pcd.estimate_normals(search_param=o3d.geometry.KDTreeSearchParamKNN(k))
...
报错
AttributeError: open3d.open3d.geometry.PointCloud object has no attribute estimate_normals
出错原因:
有的版本open3d可以使用上面的写法,但是有的版本不是,在这些版本中应该使用:
open3d.geometry.estimate_normals(xyz_pcd,search_param=o3d.geometry.KDTreeSearchParamKNN(k))
参考链接:
http://www.open3d.org/docs/0.6.0/python_api/open3d.geometry.estimate_normals.html