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

How can I save .ply file with both rgb color & vertex normals at the same time? #6802

Closed
usarawgi911 opened this issue Jul 10, 2020 · 3 comments
Labels

Comments

@usarawgi911
Copy link

As described in #6194 we found

  1. ply with vertex normals, not with rgb color (like in export_to_ply.py)
  2. ply with color, not with vertex normal (like the code below)

frames = pipe.wait_for_frames()
aligned_frames = align.process(frames)
aligned_depth_frame = aligned_frames.get_depth_frame()
color_frame = aligned_frames.get_color_frame()
pc.map_to(color_frame)
points = pc.calculate(aligned_depth_frame)
print("Saving to 1.ply...")
points.export_to_ply("1.ply", color_frame)
print("Done")

How can we save .ply file with both rgb color and vertex normals at the same time?
Thank you, really appreciate any help!

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jul 10, 2020

Hi @usarawgi911 There was a RealSense user who used C++ and PCL to save a ply with voxels instead of vertexes. Would this meet your needs, please?

#6411

Voxel graphics will typically have more 'boxy' points. The image below is of a voxelized point cloud (not generated by this particular script):

image

@MartyG-RealSense
Copy link
Collaborator

Hi @usarawgi911 Do you still require assistance with this case please, or can it be closed? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants