You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to get an aligned 3-channel normal map while getting the aligned color and depth images. Each pixel position on this normal map stores the xyz normal direction of the object surface relative to the camera position.
Is there an officially recommended way to achieve this in the current version and time point? Better in python, thank you!
The text was updated successfully, but these errors were encountered:
@MartyG-RealSense Thanks for your reply!The script you mentioned is a kind of numerical calculation method based entirely on depth image, and its accuracy is worrying.
The viewer can export .ply file in the 3D mode, which has an option of normals output. May I ask how do the normals calculated here?
The save_to_ply() .ply file export function has a setting called OPTION_PLY_NORMALS that exports normals when set to true. The code for controlling this function is in the librealsense SDK file 'rs_export.hpp'
If you do a web browser 'find' operation on this page for the word normals then it will highlight the sections of code related to normals calculation.
The easiest way to export a ply with normals included is to use the Export option in the 3D pointcloud mode of the RealSense Viewer tool. You can also use Python code though. The SDK's export_ply_example.py ply export Python example program uses save_to_ply() and sets normals export to true.
I want to get an aligned 3-channel normal map while getting the aligned color and depth images. Each pixel position on this normal map stores the xyz normal direction of the object surface relative to the camera position.
Is there an officially recommended way to achieve this in the current version and time point? Better in python, thank you!
The text was updated successfully, but these errors were encountered: