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 get the normal from the SDK or realsense-viewer #5120

Closed
ss2lyf opened this issue Oct 24, 2019 · 5 comments
Closed

How can I get the normal from the SDK or realsense-viewer #5120

ss2lyf opened this issue Oct 24, 2019 · 5 comments

Comments

@ss2lyf
Copy link

ss2lyf commented Oct 24, 2019

Required Info
Camera Model { D435i }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version {Win (8.1/10) &ubuntu 16.04
Kernel Version (Linux Only) (e.g. 4.14.13)
Platform PC
SDK Version 2.29
Language {C/C#/labview/nodejs/opencv/pcl/python/unity }
Segment {Robot/Smartphone/VR/AR/others }

Issue Description

<Describe your issue / question / feature request / etc..>

Hi, I want to get the normal of each point , how can I get the normal from the SDK or realsense-viewer, could you show me an example?The export_to_ply generate the mesh file , how can I get the raw point cloud, I mean each point from the depth map ,RGB and normal information. I think it is different from the mesh. The mesh is cacluated by the some surface algrithm. Vertices dosent equal to the raw point. Am I right?
This may relate to my issue.
#4906

@dorodnic
Copy link
Contributor

Upcoming release of the RealSense Viewer is going to include an option to include normals in PLY exporter, but generally speaking, I would export PLY and calculate normals externally using MeshLab.

@cdb0y511
Copy link

Hi,@dorodnic
Compute normal of each point by meshlab or cloudcompare is pretty slow, especially when the point cloud is dense. I think some stereo algorithm ,like patchmatch, compute normal and depth simultaneously. I guess the normal calculation is done by the VPU of D400. When can I get this function? Dose the development branch have include this function yet?
I find #4906 have been approved.
Thanks.

@lramati
Copy link
Contributor

lramati commented Oct 28, 2019

As you can see by inspecting #4906 (specifically here) normals are calculated in the viewer and not on the D400's VPU. This is why we recommend using Meshlab or similar as their code is likely more optimized for calculating vertex normals on large meshes

@cdb0y511
Copy link

@lramati
Thanks

@RealSenseCustomerSupport
Copy link
Collaborator


Please let us know if further assistance is needed for this topic.
Thank you.

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

No branches or pull requests

5 participants