Answer the question
In order to leave comments, you need to log in
How to convert a stereo pair to a 3D model?
Interested in programs, textbooks, video tutorials.
Answer the question
In order to leave comments, you need to log in
I recently did this.
To begin with, you will need the code from OpenCV - StereoBM , which allows you to calculate the disparity - displacement map (??? I'm not very good with Russian terminology). After that, using a fairly simple geometry, you need to calculate the depth from disparity. This is done, for example, like this (information from the website of the stereo camera manufacturer Bumblebee).
If you are interested, you can take pieces of code from my project.
depth_estimator.h
depth_estimator.cpp
You are interested in the functions there, getDisparity
and getDepthFromDisparity
when you have the depth of each pixel in your hands, you can easily write them into any 3D model you like.
It is also possible that instead of doing all this by hand, you will find a ready-made solution, for example in PCL , but I don’t know about it :)
I hope this helps.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question