depth image
Hi, someone can tell me how to display a depth image with opencv?
Hi, someone can tell me how to display a depth image with opencv?
I think the simpler is the following: In order to make a mat of type CV_64F
CV_32F
or CV_16U
visualize properly you must normalize it before and then convert it to CV_8U
which is the best case for imshow()
to show it, thought from my experience imshow()
can handle the other types quite nicely as well. In any case the following should do the trick:
cv::Mat depth_src; // your original depth image of type CV_64F, CV_32F or CV_16U
cv::Mat depth_vis; // destination image for visualization
cv::normalize(depth_src, depth_vis, 0, 255, CV_MINMAX);
depth_vis.convertTo(depth_vis, CV_8UC3);
This will transform depth image so that all values are between 0 and 255. Then you just transform it into 8-bit and visualize it.
I did not understand anything from what you said, what is the spin image? why you want to obtain a relationship between two points? What is actually the thing that you want to do? If you can try to explain better and give some more information, I think it will be helpful.
@roxy89 please resize your image or put it in an external source because it destroys all the website template. Regarding what you want to do, unfortunately I cannot help you on that. I need to go through the paper in order to understand what you want to do and at the moment I do not have the time. But if you can try to explain what exactly you want to do here on in another thread then there might be someone willing to help.
Asked: 2016-03-22 12:26:58 -0600
Seen: 4,085 times
Last updated: Mar 23 '16
Object Identification in 2D image
A question about registration function in Opencv2.4.2
How to use Kinect with OpenCV?
opencv_traincascade with same size negatives (as positives)
Missing depth attribute on images
phase correlation for image registration(image stitching)
Does OpenCV provide Connected Component labeling method for binary image?