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

Realsense Depth map visualization problem #10473

Closed
liu52020 opened this issue May 5, 2022 · 3 comments
Closed

Realsense Depth map visualization problem #10473

liu52020 opened this issue May 5, 2022 · 3 comments

Comments

@liu52020
Copy link

liu52020 commented May 5, 2022

After getting a depth map of the scene using the Realsense depth camera, I want to visualize it.
But the 16-bit depth map (0-65535) shows up as a black mass and cannot be seen clearly.
image
How can I achieve a visualization like realsense-viewer, thank you!
image

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented May 6, 2022

Hi @liu52020 The RealSense Viewer depth image looks different because the Viewer applies a range of depth colorization and color scheme settings by default using a colorizer. When creating your own application, these settings are not enabled by default and have to be programmed into the scripting.

If you are using the Python language, resources for Python color scheme and color preset programming can also be found at #7767 (comment)

If you are using OpenCV code then there is also the possibility that your depth shading is reversed and the near distance is being rendered as black instead of white, making the image very dark. #9304 explains how to correct this.

@MartyG-RealSense
Copy link
Collaborator

Hi @liu52020 Do you require further assistance with this case, please? 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
Projects
None yet
Development

No branches or pull requests

2 participants