Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PointCloud class support conert to open3d #102

Open
HowcanoeWang opened this issue May 17, 2023 · 1 comment
Open

PointCloud class support conert to open3d #102

HowcanoeWang opened this issue May 17, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@HowcanoeWang
Copy link
Member

in some cases, need to use open3d for further processing

@HowcanoeWang HowcanoeWang self-assigned this May 17, 2023
@HowcanoeWang HowcanoeWang added the enhancement New feature or request label May 17, 2023
@HowcanoeWang HowcanoeWang added this to the 2.0.0 milestone May 17, 2023
@HowcanoeWang
Copy link
Member Author

def to_open3d(idp_pcd):
    final_pcd = o3d.geometry.PointCloud()
    final_pcd.points = o3d.utility.Vector3dVector(idp_pcd._points)
    color_np = idp_pcd.colors/255
    # color_np = np.insert(color_np, 2, 0.5, axis=1)
    # print(color_np)
    final_pcd.colors = o3d.utility.Vector3dVector(color_np)
    return final_pcd

@HowcanoeWang HowcanoeWang modified the milestones: 2.0.0, 2.1.0, 2.0.1 May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant