Texture mapping from image

Hello all,

Does anybody know how to map an 2d image to 3d coordinates (basically a 3d shape) if I know some (only a subset, e.g 8 out of 1000) corresponding points in both the image and the 3d model!

Thank you very much.

Best regards,
Chris