Depth map from calibrated image and triangular mesh using OpenCV and Matlab
I want to extract a depth map from a calibrated image and triangular mesh using OpenCV called from Matlab 2014b (using the OpenCV bindings). I am a regular user of Matlab but am new to OpenCV. I have the following inputs: im - an undistorted RGB image of the scene or - camera position vector R - rotation matrix describing camera pose points - nx3 triangular mesh vertex list representing the scene faces - mx3 triangular mesh face list EFL - image effective focal length in pixels I have written a native Matlab ray tracing engine to extract a depth map from these inputs, but this is quite slow