Signal Processing Stack Exchange is a question and answer site for practitioners of the art and science of signal, image and video processing. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 3D points (xyz) of a face image and I have 2D face image of the same person.

The 3D points of the face are such that If I project the points to 2D plane, it matches with the 2D face image.

I want to map the color information on to the 3D image. So after mapping I will have the texture of each point. I want to do it using Matlab/OpenCV.

Can anyone suggest any algorithm or refer some source for me to start.

share|improve this question

What you're trying to do is more in the image synthesis / computer graphics domain (technically, it's "texture mapping") than it is in the image-processing domain, so it's not obvious that Matlab/OpenCV are going to have any relevant supporting functionality.

If I had the same problem in my (preferred) Python/SciPy/Matplotlib world, I'd probably see if mplot3d's surface plotting was up to the job (passing the 2D image as the facecolors parameter). However general experience is that it doesn't deal well with 100s x 100s size grids, only a few 10s x 10s. Sorry, I don't know what Matlab's equivalent is. (And if mplot3d wasn't up to the job I'd be looking at the mlab VTK wrapping's texture mapping support).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.