Closed arunumd closed 11 months ago
Hello,
Any idea why does the reflectivity matrix have mostly zeros in its entries? When I std::cout
the intensity_img
, it looks like this. Mostly overwhelmed by zeroes. So the image looks mostly black.
There might be different issues with your code:
Hope this helps!
No response, marking the issue as done.
Describe your question
The Ouster Studio has the feature of viewing the 2D intensity image on the screen. This image looks very realistic. It shows the environment of the LiDAR like a photograph. So I am trying to reproduce the same kind of image through some C++ and OpenCV code by following the docs, provided examples and inventing some more things of my own. The code below is what I have produced for performing this operation.
However the image I get is nothing like what I get from Ouster Studio. Please see the snapshots below for comparison.
Screenshots
What I get from Ouster Studio intensity image:![ouster_studio_op](https://github.com/ouster-lidar/ouster_example/assets/32076623/b868e685-2fcf-4ffd-8b5c-edb5fbcc46a2)
What I get from my C++ code using OpenCV and Ouster SDK:![ouster_opencv_cpp_image](https://github.com/ouster-lidar/ouster_example/assets/32076623/16c6ffdd-4fdd-4e75-b0c6-59c5d0621139)
It seems as though something is wrong with this code in terms of how I try to get the reflectivity array for the environment. I am wondering what is wrong?
Platform (please complete the following information):