Depth map from a face-vertex mesh, shape from shading and matlab mesh tools?

I am currently implementing "3D Face Reconstruction from a Single Image using a Single Reference Face Shape" by Ira Kemelmacher-Shlizerman, Ronen Basri.
It uses shape from shading but with help of reference model in reconstruction of surface. I am currently working depth recovery step. Recovery is done by help of three parameters
  1. z_ref - depth of reference model zref(x,y)
  2. p_ref - albedo of reference model pref(x,y)
  3. n_ref - normals of reference model nref(x,y)
I am using Matlab Mesh Toolkit. Which helps in calculation of surface normals through compute_normal(vertex, face). Which returns normal for each vertex of mesh (face-vertex mesh). I have input images of size 640x480 so maximum x is 640 and maximum y is 480 for all functions. But the surface normals are in form of 3xNumberOfVertices matrix. I am unable to map it with other functions I have in prior steps for example z(x,y) - z_ref(x,y) in equation 6, How such type of representation mappings can be made?
Secondly, I need depth map of face-vertex mesh in form z(x,y) [parametric surface] for mentioned size of images?
Any help is appreciated
Thanks in advance.

2 Comments

Hello, I am myself trying to implement this algorithm in matlab; Did you find the answers to your questions? Did you manage to successfully implement it?

Sign in to comment.

Answers (0)

Products

Asked:

on 25 Mar 2013

Commented:

on 8 Mar 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!