Texture Mapping on Triangular Segment

How can I do texture mapping on a triangular segment from a triangular segment of a picture. Provided that I have the 3d coordinates of the points.