I have two PIL images and two sets of corresponding 2D points that make a triangle.
For example:
image1:
100x100 pixels
points = [(10,10), (20,20), (10,20)]
image2:
250x250 pixels
points = [(35,30), (75,19), (50,90)]
I want to copy the triangular region from image1 and transform it to fit into the corresponding triangular region of image2. Is there any way to do this with PIL without having to copy pixel by pixel and calculate the transformation myself?