First time here? Check out the FAQ!
answered 2016-12-21 01:00:44 -0600
you can use block-matching, (StereoBM, StereoSGBM), to generate a disparity(depth) image. from there, you can project your image pixels to 3d (e.g. using the Q matrix from the stereoRectify())
there's a sample here